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
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 69 of file CMSEmStandardPhysics95.cc.

69  :
70  G4VPhysicsConstructor(name), verbose(ver), region(reg) {
71  G4LossTableManager::Instance();
72 }
CMSEmStandardPhysics95::~CMSEmStandardPhysics95 ( )
virtual

Definition at line 74 of file CMSEmStandardPhysics95.cc.

74 {}

Member Function Documentation

void CMSEmStandardPhysics95::ConstructParticle ( )
virtual

Definition at line 76 of file CMSEmStandardPhysics95.cc.

References Gamma.

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

Definition at line 122 of file CMSEmStandardPhysics95.cc.

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

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.