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
CMSEmStandardPhysicsLPM Class Reference

#include <CMSEmStandardPhysicsLPM.h>

Inheritance diagram for CMSEmStandardPhysicsLPM:

Public Member Functions

 CMSEmStandardPhysicsLPM (const G4String &name, G4int ver)
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
virtual ~CMSEmStandardPhysicsLPM ()
 

Private Attributes

G4int verbose
 

Detailed Description

Definition at line 8 of file CMSEmStandardPhysicsLPM.h.

Constructor & Destructor Documentation

CMSEmStandardPhysicsLPM::CMSEmStandardPhysicsLPM ( const G4String &  name,
G4int  ver 
)

Definition at line 70 of file CMSEmStandardPhysicsLPM.cc.

70  :
71  G4VPhysicsConstructor(name), verbose(ver) {
72  G4LossTableManager::Instance();
73 }
CMSEmStandardPhysicsLPM::~CMSEmStandardPhysicsLPM ( )
virtual

Definition at line 75 of file CMSEmStandardPhysicsLPM.cc.

75 {}

Member Function Documentation

void CMSEmStandardPhysicsLPM::ConstructParticle ( )
virtual

Definition at line 77 of file CMSEmStandardPhysicsLPM.cc.

References Gamma.

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

Definition at line 123 of file CMSEmStandardPhysicsLPM.cc.

References conv, and text2workspace::mod.

124 {
125  // Add standard EM Processes
126 
127  theParticleIterator->reset();
128  while( (*theParticleIterator)() ){
129  G4ParticleDefinition* particle = theParticleIterator->value();
130  G4ProcessManager* pmanager = particle->GetProcessManager();
131  G4String particleName = particle->GetParticleName();
132  if(verbose > 1)
133  G4cout << "### " << GetPhysicsName() << " instantiates for "
134  << particleName << " at " << particle << G4endl;
135 
136  if (particleName == "gamma") {
137 
138  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
139  pmanager->AddDiscreteProcess(new G4ComptonScattering);
140  G4GammaConversion* conv = new G4GammaConversion();
141  G4PairProductionRelModel* mod = new G4PairProductionRelModel();
142  mod->SetLowEnergyLimit(100*GeV);
143  conv->AddEmModel(0, mod);
144  pmanager->AddDiscreteProcess(conv);
145 
146  } else if (particleName == "e-") {
147 
148  G4eIonisation* eioni = new G4eIonisation();
149  eioni->SetStepFunction(0.8, 1.0*mm);
150  G4eMultipleScattering* msc = new G4eMultipleScattering;
151  msc->SetStepLimitType(fMinimal);
152  msc->AddEmModel(0,new CMSUrbanMscModel93());
153 
154  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
155  ebrem->SetEmModel(new G4SeltzerBergerModel95(), 1);
156  ebrem->SetEmModel(new G4eBremsstrahlungRelModel95(), 2);
157  ebrem->EmModel(2)->SetLowEnergyLimit(GeV);
158 
159  pmanager->AddProcess(msc, -1, 1, 1);
160  pmanager->AddProcess(eioni, -1, 2, 2);
161  pmanager->AddProcess(ebrem, -1,-3, 3);
162 
163  } else if (particleName == "e+") {
164 
165  G4eIonisation* eioni = new G4eIonisation();
166  eioni->SetStepFunction(0.8, 1.0*mm);
167  G4eMultipleScattering* msc = new G4eMultipleScattering;
168  msc->SetStepLimitType(fMinimal);
169  msc->AddEmModel(0,new CMSUrbanMscModel93());
170 
171  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
172  ebrem->SetEmModel(new G4SeltzerBergerModel95(), 1);
173  ebrem->SetEmModel(new G4eBremsstrahlungRelModel95(), 2);
174  ebrem->EmModel(2)->SetLowEnergyLimit(GeV);
175 
176  pmanager->AddProcess(msc, -1, 1, 1);
177  pmanager->AddProcess(eioni, -1, 2, 2);
178  pmanager->AddProcess(ebrem, -1,-3, 3);
179  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
180 
181  } else if (particleName == "mu+" ||
182  particleName == "mu-" ) {
183 
184  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
185  pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
186  pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
187  pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
188 
189  } else if (particleName == "alpha" ||
190  particleName == "He3" ||
191  particleName == "GenericIon") {
192 
193  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
194  pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
195 
196  } else if (particleName == "pi+" ||
197  particleName == "kaon+" ||
198  particleName == "kaon-" ||
199  particleName == "proton" ||
200  particleName == "pi-" ) {
201 
202  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
203  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
204  pmanager->AddProcess(new G4hBremsstrahlung(), -1,-3, 3);
205  pmanager->AddProcess(new G4hPairProduction(), -1,-4, 4);
206 
207  } else if (particleName == "B+" ||
208  particleName == "B-" ||
209  particleName == "D+" ||
210  particleName == "D-" ||
211  particleName == "Ds+" ||
212  particleName == "Ds-" ||
213  particleName == "anti_lambda_c+" ||
214  particleName == "anti_omega-" ||
215  particleName == "anti_proton" ||
216  particleName == "anti_sigma_c+" ||
217  particleName == "anti_sigma_c++" ||
218  particleName == "anti_sigma+" ||
219  particleName == "anti_sigma-" ||
220  particleName == "anti_xi_c+" ||
221  particleName == "anti_xi-" ||
222  particleName == "deuteron" ||
223  particleName == "lambda_c+" ||
224  particleName == "omega-" ||
225  particleName == "sigma_c+" ||
226  particleName == "sigma_c++" ||
227  particleName == "sigma+" ||
228  particleName == "sigma-" ||
229  particleName == "tau+" ||
230  particleName == "tau-" ||
231  particleName == "triton" ||
232  particleName == "xi_c+" ||
233  particleName == "xi-" ) {
234 
235  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
236  pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
237  }
238  }
239 
240  // Setup options
241  //
242  G4EmProcessOptions opt;
243  opt.SetVerbose(verbose);
244  // ApplyCuts
245  //
246  opt.SetApplyCuts(true);
247 
248  // Physics tables
249  //
250  opt.SetMinEnergy(100.*eV);
251  opt.SetMaxEnergy(10.*TeV);
252  opt.SetDEDXBinning(77);
253  opt.SetLambdaBinning(77);
254 
255 }
static HepMC::IO_HEPEVT conv
list mod
Load physics model.

Member Data Documentation

G4int CMSEmStandardPhysicsLPM::verbose
private

Definition at line 18 of file CMSEmStandardPhysicsLPM.h.