CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CMSEmStandardPhysics95 Class Reference

#include <CMSEmStandardPhysics95.h>

Inheritance diagram for CMSEmStandardPhysics95:

Public Member Functions

 CMSEmStandardPhysics95 (const G4String &name, G4int ver, std::string reg)
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
virtual ~CMSEmStandardPhysics95 ()
 

Private Attributes

std::string region
 
G4int verbose
 

Detailed Description

Definition at line 9 of file CMSEmStandardPhysics95.h.

Constructor & Destructor Documentation

CMSEmStandardPhysics95::CMSEmStandardPhysics95 ( const G4String &  name,
G4int  ver,
std::string  reg 
)

Definition at line 73 of file CMSEmStandardPhysics95.cc.

73  :
74  G4VPhysicsConstructor(name), verbose(ver), region(reg) {
75  G4EmParameters* param = G4EmParameters::Instance();
76  param->SetDefaults();
77  param->SetVerbose(verbose);
78  param->SetApplyCuts(true);
79  param->SetMscRangeFactor(0.2);
80  param->SetMscStepLimitType(fMinimal);
81  SetPhysicsType(bElectromagnetic);
82 }
CMSEmStandardPhysics95::~CMSEmStandardPhysics95 ( )
virtual

Definition at line 84 of file CMSEmStandardPhysics95.cc.

84 {}

Member Function Documentation

void CMSEmStandardPhysics95::ConstructParticle ( )
virtual

Definition at line 86 of file CMSEmStandardPhysics95.cc.

References configurableAnalysis::Electron, and Gamma.

86  {
87  // gamma
89 
90  // leptons
92  G4Positron::Positron();
93  G4MuonPlus::MuonPlus();
94  G4MuonMinus::MuonMinus();
95  G4TauMinus::TauMinusDefinition();
96  G4TauPlus::TauPlusDefinition();
97 
98  // mesons
99  G4PionPlus::PionPlusDefinition();
100  G4PionMinus::PionMinusDefinition();
101  G4KaonPlus::KaonPlusDefinition();
102  G4KaonMinus::KaonMinusDefinition();
103  G4DMesonMinus::DMesonMinusDefinition();
104  G4DMesonPlus::DMesonPlusDefinition();
105  G4BMesonMinus::BMesonMinusDefinition();
106  G4BMesonPlus::BMesonPlusDefinition();
107 
108  // barions
109  G4Proton::Proton();
110  G4AntiProton::AntiProton();
111  G4SigmaMinus::SigmaMinusDefinition();
112  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
113  G4SigmaPlus::SigmaPlusDefinition();
114  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
115  G4XiMinus::XiMinusDefinition();
116  G4AntiXiMinus::AntiXiMinusDefinition();
117  G4OmegaMinus::OmegaMinusDefinition();
118  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
119  G4LambdacPlus::LambdacPlusDefinition();
120  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
121  G4XicPlus::XicPlusDefinition();
122  G4AntiXicPlus::AntiXicPlusDefinition();
123 
124  // ions
125  G4Deuteron::Deuteron();
126  G4Triton::Triton();
127  G4He3::He3();
128  G4Alpha::Alpha();
129  G4GenericIon::GenericIonDefinition();
130 }
dbl * Gamma
Definition: mlp_gen.cc:38
void CMSEmStandardPhysics95::ConstructProcess ( )
virtual

Definition at line 132 of file CMSEmStandardPhysics95.cc.

References ecalTB2006H4_GenSimDigiReco_cfg::G4cout, kp, AnalysisDataFormats_SUSYBSMObjects::msc, HiggsValidation_cfi::particleName, EmParticleList::PartNames(), and createTree::pp.

133 {
134  // This EM builder takes default models of Geant4 10 EMV.
135  // Multiple scattering by Urban for all particles
136 
137  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
138 
139  G4MuBremsstrahlung* mub = nullptr;
140  G4MuPairProduction* mup = nullptr;
141  G4hBremsstrahlung* pib = nullptr;
142  G4hPairProduction* pip = nullptr;
143  G4hBremsstrahlung* kb = nullptr;
144  G4hPairProduction* kp = nullptr;
145  G4hBremsstrahlung* pb = nullptr;
146  G4hPairProduction* pp = nullptr;
147 
148  G4hMultipleScattering* hmsc = nullptr;
149 
150  // Add standard EM Processes
151  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
152  EmParticleList emList;
153  for(const auto& particleName : emList.PartNames()) {
154  G4ParticleDefinition* particle = table->FindParticle(particleName);
155  if(verbose > 1)
156  G4cout << "### " << GetPhysicsName() << " instantiates for "
157  << particleName << G4endl;
158 
159  if (particleName == "gamma") {
160 
161  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
162  ph->RegisterProcess(new G4ComptonScattering(), particle);
163  ph->RegisterProcess(new G4GammaConversion(), particle);
164 
165  } else if (particleName == "e-") {
166 
167  G4eIonisation* eioni = new G4eIonisation();
168  eioni->SetStepFunction(0.8, 1.0*mm);
169  G4eMultipleScattering* msc = new G4eMultipleScattering();
170  msc->SetStepLimitType(fMinimal);
171 
172  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
173 
174  ph->RegisterProcess(msc, particle);
175  ph->RegisterProcess(eioni, particle);
176  ph->RegisterProcess(ebrem, particle);
177 
178  } else if (particleName == "e+") {
179 
180  G4eIonisation* eioni = new G4eIonisation();
181  eioni->SetStepFunction(0.8, 1.0*mm);
182  G4eMultipleScattering* msc = new G4eMultipleScattering();
183  msc->SetStepLimitType(fMinimal);
184 
185  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
186 
187  ph->RegisterProcess(msc, particle);
188  ph->RegisterProcess(eioni, particle);
189  ph->RegisterProcess(ebrem, particle);
190  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
191 
192  } else if (particleName == "mu+" ||
193  particleName == "mu-" ) {
194 
195  if(nullptr == mub) {
196  mub = new G4MuBremsstrahlung();
197  mup = new G4MuPairProduction();
198  }
199  G4MuMultipleScattering* msc = new G4MuMultipleScattering();
200  ph->RegisterProcess(msc, particle);
201  ph->RegisterProcess(new G4MuIonisation(), particle);
202  ph->RegisterProcess(mub, particle);
203  ph->RegisterProcess(mup, particle);
204 
205  } else if (particleName == "alpha" ||
206  particleName == "He3" ) {
207 
208  ph->RegisterProcess(new G4hMultipleScattering(), particle);
209  ph->RegisterProcess(new G4ionIonisation(), particle);
210 
211  } else if (particleName == "GenericIon") {
212 
213  if(nullptr == hmsc) {
214  hmsc = new G4hMultipleScattering("ionmsc");
215  }
216  ph->RegisterProcess(hmsc, particle);
217  ph->RegisterProcess(new G4ionIonisation(), particle);
218 
219  } else if (particleName == "pi+" ||
220  particleName == "pi-" ) {
221 
222  if(nullptr == pib) {
223  pib = new G4hBremsstrahlung();
224  pip = new G4hPairProduction();
225  }
226  ph->RegisterProcess(new G4hMultipleScattering(), particle);
227  ph->RegisterProcess(new G4hIonisation(), particle);
228  ph->RegisterProcess(pib, particle);
229  ph->RegisterProcess(pip, particle);
230 
231  } else if (particleName == "kaon+" ||
232  particleName == "kaon-" ) {
233 
234  if(nullptr == kb) {
235  kb = new G4hBremsstrahlung();
236  kp = new G4hPairProduction();
237  }
238  ph->RegisterProcess(new G4hMultipleScattering(), particle);
239  ph->RegisterProcess(new G4hIonisation(), particle);
240  ph->RegisterProcess(kb, particle);
241  ph->RegisterProcess(kp, particle);
242 
243  } else if (particleName == "proton" ||
244  particleName == "anti_proton") {
245 
246  if(nullptr == pb) {
247  pb = new G4hBremsstrahlung();
248  pp = new G4hPairProduction();
249  }
250  ph->RegisterProcess(new G4hMultipleScattering(), particle);
251  ph->RegisterProcess(new G4hIonisation(), particle);
252  ph->RegisterProcess(pb, particle);
253  ph->RegisterProcess(pp, particle);
254 
255  } else if (particleName == "B+" ||
256  particleName == "B-" ||
257  particleName == "D+" ||
258  particleName == "D-" ||
259  particleName == "Ds+" ||
260  particleName == "Ds-" ||
261  particleName == "anti_He3" ||
262  particleName == "anti_alpha" ||
263  particleName == "anti_deuteron" ||
264  particleName == "anti_lambda_c+" ||
265  particleName == "anti_omega-" ||
266  particleName == "anti_sigma_c+" ||
267  particleName == "anti_sigma_c++" ||
268  particleName == "anti_sigma+" ||
269  particleName == "anti_sigma-" ||
270  particleName == "anti_triton" ||
271  particleName == "anti_xi_c+" ||
272  particleName == "anti_xi-" ||
273  particleName == "deuteron" ||
274  particleName == "lambda_c+" ||
275  particleName == "omega-" ||
276  particleName == "sigma_c+" ||
277  particleName == "sigma_c++" ||
278  particleName == "sigma+" ||
279  particleName == "sigma-" ||
280  particleName == "tau+" ||
281  particleName == "tau-" ||
282  particleName == "triton" ||
283  particleName == "xi_c+" ||
284  particleName == "xi-" ) {
285 
286  if(nullptr == hmsc) {
287  hmsc = new G4hMultipleScattering("ionmsc");
288  }
289  ph->RegisterProcess(hmsc, particle);
290  ph->RegisterProcess(new G4hIonisation(), particle);
291  }
292  }
293 }
const std::vector< G4String > & PartNames() const
int kp
susybsm::MuonSegmentCollection msc
Definition: classes.h:32

Member Data Documentation

std::string CMSEmStandardPhysics95::region
private

Definition at line 20 of file CMSEmStandardPhysics95.h.

G4int CMSEmStandardPhysics95::verbose
private

Definition at line 19 of file CMSEmStandardPhysics95.h.