G4KaonBuilder Class Reference

#include <G4KaonBuilder.hh>


Public Member Functions

 G4KaonBuilder ()
virtual ~G4KaonBuilder ()
void Build ()
void RegisterMe (G4VKaonBuilder *aB)


Detailed Description

Definition at line 51 of file G4KaonBuilder.hh.


Constructor & Destructor Documentation

G4KaonBuilder::G4KaonBuilder (  ) 

Definition at line 45 of file G4KaonBuilder.cc.

00045                : wasActivated(false) 
00046 {  
00047   theKaonPlusInelastic=new G4KaonPlusInelasticProcess;
00048   theKaonMinusInelastic=new G4KaonMinusInelasticProcess;
00049   theKaonZeroLInelastic=new G4KaonZeroLInelasticProcess;
00050   theKaonZeroSInelastic=new G4KaonZeroSInelasticProcess;
00051 }

G4KaonBuilder::~G4KaonBuilder (  )  [virtual]

Definition at line 54 of file G4KaonBuilder.cc.

00054                 {
00055   delete theKaonPlusInelastic;
00056   delete theKaonMinusInelastic;
00057   delete theKaonZeroLInelastic;
00058   delete theKaonZeroSInelastic;
00059 }


Member Function Documentation

void G4KaonBuilder::Build (  ) 

Definition at line 62 of file G4KaonBuilder.cc.

References G4ProcessManager::AddDiscreteProcess(), G4ParticleDefinition::GetProcessManager(), G4KaonMinus::KaonMinus(), G4KaonPlus::KaonPlus(), G4KaonZeroLong::KaonZeroLong(), and G4KaonZeroShort::KaonZeroShort().

Referenced by HadronPhysicsFTF_BIC::ConstructProcess().

00063 {
00064   wasActivated = true;
00065 
00066   std::vector<G4VKaonBuilder *>::iterator i;
00067   for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
00068   {
00069     (*i)->Build(theKaonPlusInelastic);
00070     (*i)->Build(theKaonMinusInelastic);
00071     (*i)->Build(theKaonZeroLInelastic);
00072     (*i)->Build(theKaonZeroSInelastic);
00073   }
00074   G4ProcessManager * theProcMan;
00075  
00076   theProcMan = G4KaonPlus::KaonPlus()->GetProcessManager();
00077   theProcMan->AddDiscreteProcess(theKaonPlusInelastic);
00078   
00079   theProcMan = G4KaonMinus::KaonMinus()->GetProcessManager();
00080   theProcMan->AddDiscreteProcess(theKaonMinusInelastic);
00081   
00082   theProcMan = G4KaonZeroLong::KaonZeroLong()->GetProcessManager();
00083   theProcMan->AddDiscreteProcess(theKaonZeroLInelastic);
00084   
00085   theProcMan = G4KaonZeroShort::KaonZeroShort()->GetProcessManager();
00086   theProcMan->AddDiscreteProcess(theKaonZeroSInelastic);
00087 }

void G4KaonBuilder::RegisterMe ( G4VKaonBuilder aB  )  [inline]

Definition at line 59 of file G4KaonBuilder.hh.

00059 {theModelCollections.push_back(aB);}


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