Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QProtonBuilder Class Reference

#include <G4QProtonBuilder.hh>

Public Member Functions

 G4QProtonBuilder ()
 
virtual ~G4QProtonBuilder ()
 
void Build ()
 
void RegisterMe (G4VProtonBuilder *aB)
 

Detailed Description

Definition at line 55 of file G4QProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4QProtonBuilder()

G4QProtonBuilder::G4QProtonBuilder ( )

Definition at line 43 of file G4QProtonBuilder.cc.

43 : wasActivated(false)
44{
45 theProtonInelastic = new G4ProtonInelasticProcess;
46 theCHIPSInelastic = new G4QInelastic;
47 const G4String& processName = "MixedProtonInelasticProcess";
49 theProcessMixer= new G4QDiscProcessMixer(processName, proj);
50}
static G4Proton * Proton()
Definition: G4Proton.cc:93

◆ ~G4QProtonBuilder()

G4QProtonBuilder::~G4QProtonBuilder ( )
virtual

Definition at line 52 of file G4QProtonBuilder.cc.

53{
54 delete theProcessMixer;
55 delete theCHIPSInelastic;
56 delete theProtonInelastic;
57}

Member Function Documentation

◆ Build()

void G4QProtonBuilder::Build ( )

Definition at line 59 of file G4QProtonBuilder.cc.

60{
61 wasActivated = true;
62 std::vector<G4VProtonBuilder *>::iterator i;
63 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
64 {
65 (*i)->Build(theProtonInelastic);
66 }
68 theProcessMixer->AddDiscreteProcess(theProtonInelastic, 1.E8); // the second part is fake
69 theProcessMixer->AddDiscreteProcess(theCHIPSInelastic, 290*megaelectronvolt);
70 theProcMan->AddDiscreteProcess(theProcessMixer);
71}
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
void AddDiscreteProcess(G4VDiscreteProcess *DP, G4double MaxE)

Referenced by HadronPhysicsQGSC_CHIPS::ConstructProcess().

◆ RegisterMe()

void G4QProtonBuilder::RegisterMe ( G4VProtonBuilder aB)
inline

Definition at line 63 of file G4QProtonBuilder.hh.

63{theModelCollections.push_back(aB);}

The documentation for this class was generated from the following files: