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

#include <CMSEmNoDeltaRay.h>

Inheritance diagram for CMSEmNoDeltaRay:

Public Member Functions

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

Private Attributes

std::string region
 
G4int verbose
 

Detailed Description

Definition at line 9 of file CMSEmNoDeltaRay.h.

Constructor & Destructor Documentation

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

Definition at line 64 of file CMSEmNoDeltaRay.cc.

64  :
65  G4VPhysicsConstructor(name), verbose(ver), region(reg) {
66  G4LossTableManager::Instance();
67 }
std::string region
CMSEmNoDeltaRay::~CMSEmNoDeltaRay ( )
virtual

Definition at line 69 of file CMSEmNoDeltaRay.cc.

69 {}

Member Function Documentation

void CMSEmNoDeltaRay::ConstructParticle ( )
virtual

Definition at line 71 of file CMSEmNoDeltaRay.cc.

References Gamma.

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

Definition at line 117 of file CMSEmNoDeltaRay.cc.

References region.

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

Member Data Documentation

std::string CMSEmNoDeltaRay::region
private

Definition at line 20 of file CMSEmNoDeltaRay.h.

Referenced by ConstructProcess().

G4int CMSEmNoDeltaRay::verbose
private

Definition at line 19 of file CMSEmNoDeltaRay.h.