CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
G4PiKBuilder_WP Class Reference

#include <G4PiKBuilder_WP.h>

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
 
GflashHadronWrapperProcesstheWrappedKaonMinusInelastic
 
GflashHadronWrapperProcesstheWrappedKaonPlusInelastic
 
GflashHadronWrapperProcesstheWrappedPionMinusInelastic
 
GflashHadronWrapperProcesstheWrappedPionPlusInelastic
 
G4bool wasActivated
 

Detailed Description

Definition at line 52 of file G4PiKBuilder_WP.h.

Constructor & Destructor Documentation

G4PiKBuilder_WP::G4PiKBuilder_WP ( )

Definition at line 50 of file G4PiKBuilder_WP.cc.

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

50  : wasActivated(false)
51 {
52  thePionPlusInelastic=new G4PionPlusInelasticProcess;
53  thePionMinusInelastic=new G4PionMinusInelasticProcess;
54  theKaonPlusInelastic=new G4KaonPlusInelasticProcess;
55  theKaonMinusInelastic=new G4KaonMinusInelasticProcess;
56  theKaonZeroLInelastic=new G4KaonZeroLInelasticProcess;
57  theKaonZeroSInelastic=new G4KaonZeroSInelasticProcess;
58 
59  theWrappedPionPlusInelastic=new GflashHadronWrapperProcess("G4PionPlusInelasticProcess");
60  theWrappedPionMinusInelastic=new GflashHadronWrapperProcess("G4PionMinusInelasticProcess");
61  theWrappedKaonPlusInelastic=new GflashHadronWrapperProcess("G4KaonPlusInelasticProcess");
62  theWrappedKaonMinusInelastic=new GflashHadronWrapperProcess("G4KaonMinusInelasticProcess");
63 }
G4KaonZeroSInelasticProcess * theKaonZeroSInelastic
G4KaonZeroLInelasticProcess * theKaonZeroLInelastic
G4KaonPlusInelasticProcess * theKaonPlusInelastic
G4PionPlusInelasticProcess * thePionPlusInelastic
GflashHadronWrapperProcess * theWrappedKaonPlusInelastic
G4KaonMinusInelasticProcess * theKaonMinusInelastic
G4PionMinusInelasticProcess * thePionMinusInelastic
GflashHadronWrapperProcess * theWrappedKaonMinusInelastic
GflashHadronWrapperProcess * theWrappedPionPlusInelastic
GflashHadronWrapperProcess * theWrappedPionMinusInelastic
G4PiKBuilder_WP::~G4PiKBuilder_WP ( )
virtual

Definition at line 66 of file G4PiKBuilder_WP.cc.

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

66  {
67  delete thePionPlusInelastic;
68  delete thePionMinusInelastic;
69  delete theKaonPlusInelastic;
70  delete theKaonMinusInelastic;
71  delete theKaonZeroLInelastic;
72  delete theKaonZeroSInelastic;
73 
74  // delete theWrappedPionPlusInelastic;
75  // delete theWrappedPionMinusInelastic;
76 }
G4KaonZeroSInelasticProcess * theKaonZeroSInelastic
G4KaonZeroLInelasticProcess * theKaonZeroLInelastic
G4KaonPlusInelasticProcess * theKaonPlusInelastic
G4PionPlusInelasticProcess * thePionPlusInelastic
G4KaonMinusInelasticProcess * theKaonMinusInelastic
G4PionMinusInelasticProcess * thePionMinusInelastic

Member Function Documentation

void G4PiKBuilder_WP::Build ( )

Definition at line 79 of file G4PiKBuilder_WP.cc.

References i, theKaonMinusInelastic, theKaonPlusInelastic, theKaonZeroLInelastic, theKaonZeroSInelastic, theModelCollections, thePionMinusInelastic, thePionPlusInelastic, theWrappedKaonMinusInelastic, theWrappedKaonPlusInelastic, theWrappedPionMinusInelastic, theWrappedPionPlusInelastic, and wasActivated.

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

80 {
81  wasActivated = true;
82 
83  std::vector<G4VPiKBuilder *>::iterator i;
84  for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
85  {
86  (*i)->Build(thePionPlusInelastic);
87  (*i)->Build(thePionMinusInelastic);
88  (*i)->Build(theKaonPlusInelastic);
89  (*i)->Build(theKaonMinusInelastic);
90  (*i)->Build(theKaonZeroLInelastic);
91  (*i)->Build(theKaonZeroSInelastic);
92  }
93  G4ProcessManager * theProcMan;
94  theProcMan = G4PionPlus::PionPlus()->GetProcessManager();
95  // theProcMan->AddDiscreteProcess(thePionPlusInelastic);
96  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4PionPlusInelasticProcess";
98  theProcMan->AddDiscreteProcess(theWrappedPionPlusInelastic);
99 
100  theProcMan = G4PionMinus::PionMinus()->GetProcessManager();
101  // theProcMan->AddDiscreteProcess(thePionMinusInelastic);
102  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4PionMinusInelasticProcess";
104  theProcMan->AddDiscreteProcess(theWrappedPionMinusInelastic);
105 
106  theProcMan = G4KaonPlus::KaonPlus()->GetProcessManager();
107  // theProcMan->AddDiscreteProcess(theKaonPlusInelastic);
108  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4KaonPlusInelasticProcess";
110  theProcMan->AddDiscreteProcess(theWrappedKaonPlusInelastic);
111 
112  theProcMan = G4KaonMinus::KaonMinus()->GetProcessManager();
113  // theProcMan->AddDiscreteProcess(theKaonMinusInelastic);
114  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4KaonMinusInelasticProcess";
116  theProcMan->AddDiscreteProcess(theWrappedKaonMinusInelastic);
117 
118  theProcMan = G4KaonZeroLong::KaonZeroLong()->GetProcessManager();
119  theProcMan->AddDiscreteProcess(theKaonZeroLInelastic);
120 
121  theProcMan = G4KaonZeroShort::KaonZeroShort()->GetProcessManager();
122  theProcMan->AddDiscreteProcess(theKaonZeroSInelastic);
123 }
int i
Definition: DBlmapReader.cc:9
G4KaonZeroSInelasticProcess * theKaonZeroSInelastic
G4KaonZeroLInelasticProcess * theKaonZeroLInelastic
G4KaonPlusInelasticProcess * theKaonPlusInelastic
G4PionPlusInelasticProcess * thePionPlusInelastic
GflashHadronWrapperProcess * theWrappedKaonPlusInelastic
G4KaonMinusInelasticProcess * theKaonMinusInelastic
G4PionMinusInelasticProcess * thePionMinusInelastic
std::vector< G4VPiKBuilder * > theModelCollections
GflashHadronWrapperProcess * theWrappedKaonMinusInelastic
GflashHadronWrapperProcess * theWrappedPionPlusInelastic
GflashHadronWrapperProcess * theWrappedPionMinusInelastic
void G4PiKBuilder_WP::RegisterMe ( G4VPiKBuilder *  aB)
inline

Member Data Documentation

G4KaonMinusInelasticProcess* G4PiKBuilder_WP::theKaonMinusInelastic
private

Definition at line 66 of file G4PiKBuilder_WP.h.

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

G4KaonPlusInelasticProcess* G4PiKBuilder_WP::theKaonPlusInelastic
private

Definition at line 65 of file G4PiKBuilder_WP.h.

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

G4KaonZeroLInelasticProcess* G4PiKBuilder_WP::theKaonZeroLInelastic
private

Definition at line 67 of file G4PiKBuilder_WP.h.

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

G4KaonZeroSInelasticProcess* G4PiKBuilder_WP::theKaonZeroSInelastic
private

Definition at line 68 of file G4PiKBuilder_WP.h.

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

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

Definition at line 75 of file G4PiKBuilder_WP.h.

Referenced by Build(), and RegisterMe().

G4PionMinusInelasticProcess* G4PiKBuilder_WP::thePionMinusInelastic
private

Definition at line 64 of file G4PiKBuilder_WP.h.

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

G4PionPlusInelasticProcess* G4PiKBuilder_WP::thePionPlusInelastic
private

Definition at line 63 of file G4PiKBuilder_WP.h.

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

GflashHadronWrapperProcess* G4PiKBuilder_WP::theWrappedKaonMinusInelastic
private

Definition at line 73 of file G4PiKBuilder_WP.h.

Referenced by Build(), and G4PiKBuilder_WP().

GflashHadronWrapperProcess* G4PiKBuilder_WP::theWrappedKaonPlusInelastic
private

Definition at line 72 of file G4PiKBuilder_WP.h.

Referenced by Build(), and G4PiKBuilder_WP().

GflashHadronWrapperProcess* G4PiKBuilder_WP::theWrappedPionMinusInelastic
private

Definition at line 71 of file G4PiKBuilder_WP.h.

Referenced by Build(), and G4PiKBuilder_WP().

GflashHadronWrapperProcess* G4PiKBuilder_WP::theWrappedPionPlusInelastic
private

Definition at line 70 of file G4PiKBuilder_WP.h.

Referenced by Build(), and G4PiKBuilder_WP().

G4bool G4PiKBuilder_WP::wasActivated
private

Definition at line 77 of file G4PiKBuilder_WP.h.

Referenced by Build().