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

Definition at line 85 of file CMSEmStandardPhysics95.cc.

85 {}

Member Function Documentation

void CMSEmStandardPhysics95::ConstructParticle ( )
override

Definition at line 87 of file CMSEmStandardPhysics95.cc.

References nanoDQM_cff::Electron, and Gamma.

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

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

G4int CMSEmStandardPhysics95::verbose
private

Definition at line 18 of file CMSEmStandardPhysics95.h.