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 53 of file G4PiKBuilder_WP.h.

Constructor & Destructor Documentation

G4PiKBuilder_WP::G4PiKBuilder_WP ( )

Definition at line 51 of file G4PiKBuilder_WP.cc.

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

51  : wasActivated(false)
52 {
53  thePionPlusInelastic=new G4PionPlusInelasticProcess;
54  thePionMinusInelastic=new G4PionMinusInelasticProcess;
55  theKaonPlusInelastic=new G4KaonPlusInelasticProcess;
56  theKaonMinusInelastic=new G4KaonMinusInelasticProcess;
57  theKaonZeroLInelastic=new G4KaonZeroLInelasticProcess;
58  theKaonZeroSInelastic=new G4KaonZeroSInelasticProcess;
59 
60  theWrappedPionPlusInelastic=new GflashHadronWrapperProcess("G4PionPlusInelasticProcess");
61  theWrappedPionMinusInelastic=new GflashHadronWrapperProcess("G4PionMinusInelasticProcess");
62  theWrappedKaonPlusInelastic=new GflashHadronWrapperProcess("G4KaonPlusInelasticProcess");
63  theWrappedKaonMinusInelastic=new GflashHadronWrapperProcess("G4KaonMinusInelasticProcess");
64 }
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 67 of file G4PiKBuilder_WP.cc.

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

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

Member Function Documentation

void G4PiKBuilder_WP::Build ( )

Definition at line 80 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().

81 {
82  wasActivated = true;
83 
84  std::vector<G4VPiKBuilder *>::iterator i;
85  for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
86  {
87  (*i)->Build(thePionPlusInelastic);
88  (*i)->Build(thePionMinusInelastic);
89  (*i)->Build(theKaonPlusInelastic);
90  (*i)->Build(theKaonMinusInelastic);
91  (*i)->Build(theKaonZeroLInelastic);
92  (*i)->Build(theKaonZeroSInelastic);
93  }
94  G4ProcessManager * theProcMan;
95  theProcMan = G4PionPlus::PionPlus()->GetProcessManager();
96  // theProcMan->AddDiscreteProcess(thePionPlusInelastic);
97  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4PionPlusInelasticProcess";
99  theProcMan->AddDiscreteProcess(theWrappedPionPlusInelastic);
100 
101  theProcMan = G4PionMinus::PionMinus()->GetProcessManager();
102  // theProcMan->AddDiscreteProcess(thePionMinusInelastic);
103  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4PionMinusInelasticProcess";
105  theProcMan->AddDiscreteProcess(theWrappedPionMinusInelastic);
106 
107  theProcMan = G4KaonPlus::KaonPlus()->GetProcessManager();
108  // theProcMan->AddDiscreteProcess(theKaonPlusInelastic);
109  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4KaonPlusInelasticProcess";
111  theProcMan->AddDiscreteProcess(theWrappedKaonPlusInelastic);
112 
113  theProcMan = G4KaonMinus::KaonMinus()->GetProcessManager();
114  // theProcMan->AddDiscreteProcess(theKaonMinusInelastic);
115  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4KaonMinusInelasticProcess";
117  theProcMan->AddDiscreteProcess(theWrappedKaonMinusInelastic);
118 
119  theProcMan = G4KaonZeroLong::KaonZeroLong()->GetProcessManager();
120  theProcMan->AddDiscreteProcess(theKaonZeroLInelastic);
121 
122  theProcMan = G4KaonZeroShort::KaonZeroShort()->GetProcessManager();
123  theProcMan->AddDiscreteProcess(theKaonZeroSInelastic);
124 }
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 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 76 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::theWrappedKaonMinusInelastic
private

Definition at line 74 of file G4PiKBuilder_WP.h.

Referenced by Build(), and G4PiKBuilder_WP().

GflashHadronWrapperProcess* G4PiKBuilder_WP::theWrappedKaonPlusInelastic
private

Definition at line 73 of file G4PiKBuilder_WP.h.

Referenced by Build(), 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 78 of file G4PiKBuilder_WP.h.

Referenced by Build().