CMS 3D CMS Logo

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

#include <CMSEmStandardPhysics95msc93.h>

Inheritance diagram for CMSEmStandardPhysics95msc93:

Public Member Functions

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

Private Attributes

std::string region
 
G4int verbose
 

Detailed Description

Definition at line 9 of file CMSEmStandardPhysics95msc93.h.

Constructor & Destructor Documentation

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

Definition at line 73 of file CMSEmStandardPhysics95msc93.cc.

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

Definition at line 87 of file CMSEmStandardPhysics95msc93.cc.

87 {}

Member Function Documentation

void CMSEmStandardPhysics95msc93::ConstructParticle ( )
override

Definition at line 89 of file CMSEmStandardPhysics95msc93.cc.

References nanoDQM_cff::Electron, and Gamma.

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

Definition at line 135 of file CMSEmStandardPhysics95msc93.cc.

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

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

Member Data Documentation

std::string CMSEmStandardPhysics95msc93::region
private

Definition at line 20 of file CMSEmStandardPhysics95msc93.h.

G4int CMSEmStandardPhysics95msc93::verbose
private

Definition at line 19 of file CMSEmStandardPhysics95msc93.h.