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, const std::string &reg)
 
void ConstructParticle () override
 
void ConstructProcess () override
 
 ~CMSEmStandardPhysics95 () override
 

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,
const std::string &  reg 
)

Definition at line 73 of file CMSEmStandardPhysics95.cc.

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

Definition at line 86 of file CMSEmStandardPhysics95.cc.

86 {}

Member Function Documentation

void CMSEmStandardPhysics95::ConstructParticle ( )
override

Definition at line 88 of file CMSEmStandardPhysics95.cc.

References nanoDQM_cff::Electron, and Gamma.

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

Definition at line 134 of file CMSEmStandardPhysics95.cc.

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

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