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 (  ) 

Definition at line 43 of file G4QProtonBuilder.cc.

References G4Proton::Proton().

00043                                   : wasActivated(false)  
00044 {
00045   theProtonInelastic = new G4ProtonInelasticProcess;
00046   theCHIPSInelastic  = new G4QInelastic;
00047   const G4String& processName = "MixedProtonInelasticProcess";
00048   const G4ParticleDefinition* proj = G4Proton::Proton();
00049   theProcessMixer= new G4QDiscProcessMixer(processName, proj);
00050 }

G4QProtonBuilder::~G4QProtonBuilder (  )  [virtual]

Definition at line 52 of file G4QProtonBuilder.cc.

00053 {
00054   delete theProcessMixer;
00055   delete theCHIPSInelastic;
00056   delete theProtonInelastic;
00057 }


Member Function Documentation

void G4QProtonBuilder::Build (  ) 

Definition at line 59 of file G4QProtonBuilder.cc.

References G4ProcessManager::AddDiscreteProcess(), G4QDiscProcessMixer::AddDiscreteProcess(), G4ParticleDefinition::GetProcessManager(), and G4Proton::Proton().

Referenced by HadronPhysicsQGSC_CHIPS::ConstructProcess().

00060 {
00061   wasActivated = true;
00062   std::vector<G4VProtonBuilder *>::iterator i;
00063   for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
00064   {
00065     (*i)->Build(theProtonInelastic);
00066   }
00067   G4ProcessManager * theProcMan = G4Proton::Proton()->GetProcessManager();
00068   theProcessMixer->AddDiscreteProcess(theProtonInelastic, 1.E8); // the second part is fake
00069   theProcessMixer->AddDiscreteProcess(theCHIPSInelastic, 290*megaelectronvolt);
00070   theProcMan->AddDiscreteProcess(theProcessMixer);
00071 }

void G4QProtonBuilder::RegisterMe ( G4VProtonBuilder aB  )  [inline]

Definition at line 63 of file G4QProtonBuilder.hh.

00063 {theModelCollections.push_back(aB);}


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:14 2013 for Geant4 by  doxygen 1.4.7