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 65 of file CMSEmStandardPhysicsLPM.cc.

65  :
66  G4VPhysicsConstructor(name), verbose(ver) {
67  G4LossTableManager::Instance();
68 }
CMSEmStandardPhysicsLPM::~CMSEmStandardPhysicsLPM ( )
virtual

Definition at line 70 of file CMSEmStandardPhysicsLPM.cc.

70 {}

Member Function Documentation

void CMSEmStandardPhysicsLPM::ConstructParticle ( )
virtual

Definition at line 72 of file CMSEmStandardPhysicsLPM.cc.

References Gamma.

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

Definition at line 118 of file CMSEmStandardPhysicsLPM.cc.

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

Member Data Documentation

G4int CMSEmStandardPhysicsLPM::verbose
private

Definition at line 18 of file CMSEmStandardPhysicsLPM.h.