CMS 3D CMS Logo

G4PiKBuilder_WP Class Reference

#include <SimG4Core/GFlash/interface/G4PiKBuilder_WP.h>

List of all members.

Public Member Functions

void Build ()
 G4PiKBuilder_WP ()
void RegisterMe (G4VPiKBuilder *aB)
virtual ~G4PiKBuilder_WP ()

Private Attributes

G4KaonMinusInelasticProcess * theKaonMinusInelastic
G4KaonPlusInelasticProcess * theKaonPlusInelastic
G4KaonZeroLInelasticProcess * theKaonZeroLInelastic
G4KaonZeroSInelasticProcess * theKaonZeroSInelastic
std::vector< G4VPiKBuilder * > theModelCollections
G4PionMinusInelasticProcess * thePionMinusInelastic
G4PionPlusInelasticProcess * thePionPlusInelastic
GflashHadronWrapperProcesstheWrappedPionMinusInelastic
GflashHadronWrapperProcesstheWrappedPionPlusInelastic
G4bool wasActivated


Detailed Description

Definition at line 53 of file G4PiKBuilder_WP.h.


Constructor & Destructor Documentation

G4PiKBuilder_WP::G4PiKBuilder_WP (  ) 

Definition at line 49 of file G4PiKBuilder_WP.cc.

References theKaonMinusInelastic, theKaonPlusInelastic, theKaonZeroLInelastic, theKaonZeroSInelastic, thePionMinusInelastic, thePionPlusInelastic, theWrappedPionMinusInelastic, and theWrappedPionPlusInelastic.

00049                  : wasActivated(false) 
00050 {  
00051   thePionPlusInelastic=new G4PionPlusInelasticProcess;
00052   thePionMinusInelastic=new G4PionMinusInelasticProcess;
00053   theKaonPlusInelastic=new G4KaonPlusInelasticProcess;
00054   theKaonMinusInelastic=new G4KaonMinusInelasticProcess;
00055   theKaonZeroLInelastic=new G4KaonZeroLInelasticProcess;
00056   theKaonZeroSInelastic=new G4KaonZeroSInelasticProcess;
00057 
00058   theWrappedPionPlusInelastic=new GflashHadronWrapperProcess("G4PionPlusInelasticProcess");
00059   theWrappedPionMinusInelastic=new GflashHadronWrapperProcess("G4PionMinusInelasticProcess");
00060 }

G4PiKBuilder_WP::~G4PiKBuilder_WP (  )  [virtual]

Definition at line 63 of file G4PiKBuilder_WP.cc.

References theKaonMinusInelastic, theKaonPlusInelastic, theKaonZeroLInelastic, theKaonZeroSInelastic, thePionMinusInelastic, and thePionPlusInelastic.

00063                   {
00064   delete thePionPlusInelastic;
00065   delete thePionMinusInelastic;
00066   delete theKaonPlusInelastic;
00067   delete theKaonMinusInelastic;
00068   delete theKaonZeroLInelastic;
00069   delete theKaonZeroSInelastic;
00070 
00071   //  delete theWrappedPionPlusInelastic;
00072   //  delete theWrappedPionMinusInelastic;
00073 }


Member Function Documentation

void G4PiKBuilder_WP::Build (  ) 

Definition at line 76 of file G4PiKBuilder_WP.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), i, theKaonMinusInelastic, theKaonPlusInelastic, theKaonZeroLInelastic, theKaonZeroSInelastic, theModelCollections, thePionMinusInelastic, thePionPlusInelastic, theWrappedPionMinusInelastic, theWrappedPionPlusInelastic, and wasActivated.

Referenced by HadronPhysicsQGSP_WP::ConstructProcess(), and HadronPhysicsQGSP_BERT_WP::ConstructProcess().

00077 {
00078   wasActivated = true;
00079 
00080   std::vector<G4VPiKBuilder *>::iterator i;
00081   for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
00082   {
00083     (*i)->Build(thePionPlusInelastic);
00084     (*i)->Build(thePionMinusInelastic);
00085     (*i)->Build(theKaonPlusInelastic);
00086     (*i)->Build(theKaonMinusInelastic);
00087     (*i)->Build(theKaonZeroLInelastic);
00088     (*i)->Build(theKaonZeroSInelastic);
00089   }
00090   G4ProcessManager * theProcMan;
00091   theProcMan = G4PionPlus::PionPlus()->GetProcessManager();
00092   //  theProcMan->AddDiscreteProcess(thePionPlusInelastic);
00093   std::cout << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4PionPlusInelasticProcess" << std::endl;
00094   theWrappedPionPlusInelastic->RegisterProcess(thePionPlusInelastic);
00095   theProcMan->AddDiscreteProcess(theWrappedPionPlusInelastic);
00096   
00097   theProcMan = G4PionMinus::PionMinus()->GetProcessManager();
00098   //  theProcMan->AddDiscreteProcess(thePionMinusInelastic);
00099   std::cout << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4PionMinusInelasticProcess" << std::endl;
00100   theWrappedPionMinusInelastic->RegisterProcess(thePionMinusInelastic);
00101   theProcMan->AddDiscreteProcess(theWrappedPionMinusInelastic);
00102   
00103   theProcMan = G4KaonPlus::KaonPlus()->GetProcessManager();
00104   theProcMan->AddDiscreteProcess(theKaonPlusInelastic);
00105   
00106   theProcMan = G4KaonMinus::KaonMinus()->GetProcessManager();
00107   theProcMan->AddDiscreteProcess(theKaonMinusInelastic);
00108   
00109   theProcMan = G4KaonZeroLong::KaonZeroLong()->GetProcessManager();
00110   theProcMan->AddDiscreteProcess(theKaonZeroLInelastic);
00111   
00112   theProcMan = G4KaonZeroShort::KaonZeroShort()->GetProcessManager();
00113   theProcMan->AddDiscreteProcess(theKaonZeroSInelastic);
00114 }

void G4PiKBuilder_WP::RegisterMe ( G4VPiKBuilder *  aB  )  [inline]

Definition at line 61 of file G4PiKBuilder_WP.h.

References theModelCollections.

Referenced by HadronPhysicsQGSP_BERT_WP::CreateModels(), and HadronPhysicsQGSP_WP::CreateModels().

00061 {theModelCollections.push_back(aB);}


Member Data Documentation

G4KaonMinusInelasticProcess* G4PiKBuilder_WP::theKaonMinusInelastic [private]

Definition at line 67 of file G4PiKBuilder_WP.h.

Referenced by Build(), G4PiKBuilder_WP(), and ~G4PiKBuilder_WP().

G4KaonPlusInelasticProcess* G4PiKBuilder_WP::theKaonPlusInelastic [private]

Definition at line 66 of file G4PiKBuilder_WP.h.

Referenced by Build(), G4PiKBuilder_WP(), and ~G4PiKBuilder_WP().

G4KaonZeroLInelasticProcess* G4PiKBuilder_WP::theKaonZeroLInelastic [private]

Definition at line 68 of file G4PiKBuilder_WP.h.

Referenced by Build(), G4PiKBuilder_WP(), and ~G4PiKBuilder_WP().

G4KaonZeroSInelasticProcess* G4PiKBuilder_WP::theKaonZeroSInelastic [private]

Definition at line 69 of file G4PiKBuilder_WP.h.

Referenced by Build(), G4PiKBuilder_WP(), and ~G4PiKBuilder_WP().

std::vector<G4VPiKBuilder *> G4PiKBuilder_WP::theModelCollections [private]

Definition at line 74 of file G4PiKBuilder_WP.h.

Referenced by Build(), and RegisterMe().

G4PionMinusInelasticProcess* G4PiKBuilder_WP::thePionMinusInelastic [private]

Definition at line 65 of file G4PiKBuilder_WP.h.

Referenced by Build(), G4PiKBuilder_WP(), and ~G4PiKBuilder_WP().

G4PionPlusInelasticProcess* G4PiKBuilder_WP::thePionPlusInelastic [private]

Definition at line 64 of file G4PiKBuilder_WP.h.

Referenced by Build(), G4PiKBuilder_WP(), and ~G4PiKBuilder_WP().

GflashHadronWrapperProcess* G4PiKBuilder_WP::theWrappedPionMinusInelastic [private]

Definition at line 72 of file G4PiKBuilder_WP.h.

Referenced by Build(), and G4PiKBuilder_WP().

GflashHadronWrapperProcess* G4PiKBuilder_WP::theWrappedPionPlusInelastic [private]

Definition at line 71 of file G4PiKBuilder_WP.h.

Referenced by Build(), and G4PiKBuilder_WP().

G4bool G4PiKBuilder_WP::wasActivated [private]

Definition at line 76 of file G4PiKBuilder_WP.h.

Referenced by Build().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:21:08 2009 for CMSSW by  doxygen 1.5.4