CMS 3D CMS Logo

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, const std::string &reg)
 
void ConstructParticle () override
 
void ConstructProcess () override
 
 ~CMSEmNoDeltaRay () override
 

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,
const std::string &  reg 
)

Definition at line 69 of file CMSEmNoDeltaRay.cc.

69  :
70  G4VPhysicsConstructor(name), verbose(ver), region(reg) {
71  G4EmParameters* param = G4EmParameters::Instance();
72  param->SetDefaults();
73  param->SetVerbose(verbose);
74  param->SetApplyCuts(true);
75  param->SetMscRangeFactor(0.2);
76  param->SetMscStepLimitType(fMinimal);
77  SetPhysicsType(bElectromagnetic);
78 }
std::string region
CMSEmNoDeltaRay::~CMSEmNoDeltaRay ( )
override

Definition at line 80 of file CMSEmNoDeltaRay.cc.

80 {}

Member Function Documentation

void CMSEmNoDeltaRay::ConstructParticle ( )
override

Definition at line 82 of file CMSEmNoDeltaRay.cc.

References nanoDQM_cff::Electron, and Gamma.

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

Definition at line 128 of file CMSEmNoDeltaRay.cc.

References ecalTB2006H4_GenSimDigiReco_cfg::G4cout, AnalysisDataFormats_SUSYBSMObjects::msc, HiggsValidation_cfi::particleName, EmParticleList::PartNames(), and region.

128  {
129  // Add standard EM Processes
130  G4Region* reg = nullptr;
131  if (region != " ") {
132  G4RegionStore* regStore = G4RegionStore::GetInstance();
133  reg = regStore->GetRegion(region, true);
134  }
135 
136  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
137  EmParticleList emList;
138  for(const auto& particleName : emList.PartNames()) {
139  G4ParticleDefinition* particle = table->FindParticle(particleName);
140  G4ProcessManager* pmanager = particle->GetProcessManager();
141  if(verbose > 1)
142  G4cout << "### " << GetPhysicsName() << " instantiates for "
143  << particleName << " at " << particle << G4endl;
144 
145  if (particleName == "gamma") {
146 
147  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
148  pmanager->AddDiscreteProcess(new G4ComptonScattering);
149  pmanager->AddDiscreteProcess(new G4GammaConversion);
150 
151  } else if (particleName == "e-") {
152 
153  G4eMultipleScattering* msc = new G4eMultipleScattering;
154  msc->SetStepLimitType(fMinimal);
155  if (reg != nullptr) {
156  G4UrbanMscModel* msc_el = new G4UrbanMscModel();
157  msc_el->SetRangeFactor(0.04);
158  msc->AddEmModel(0,msc_el,reg);
159  }
160  pmanager->AddProcess(msc, -1, 1, 1);
161  pmanager->AddProcess(new G4hhIonisation, -1, 2, 2);
162  pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
163 
164  } else if (particleName == "e+") {
165 
166  // G4eIonisation* eioni = new G4eIonisation();
167  // eioni->SetStepFunction(0.8, 1.0*mm);
168  G4eMultipleScattering* msc = new G4eMultipleScattering;
169  msc->SetStepLimitType(fMinimal);
170  if (reg != nullptr) {
171  G4UrbanMscModel* msc_pos = new G4UrbanMscModel();
172  msc_pos->SetRangeFactor(0.04);
173  msc->AddEmModel(0,msc_pos,reg);
174  }
175  pmanager->AddProcess(msc, -1, 1, 1);
176  pmanager->AddProcess(new G4hhIonisation, -1, 2, 2);
177  pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
178  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
179 
180  } else if (particleName == "mu+" ||
181  particleName == "mu-" ) {
182 
183  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
184  pmanager->AddProcess(new G4hhIonisation, -1, 2, 2);
185  pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
186  pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
187 
188  } else if (particleName == "alpha" ||
189  particleName == "He3" ||
190  particleName == "GenericIon") {
191 
192  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
193  pmanager->AddProcess(new G4hhIonisation, -1, 2, 2);
194 
195  } else if (particleName == "pi+" ||
196  particleName == "kaon+" ||
197  particleName == "kaon-" ||
198  particleName == "proton" ||
199  particleName == "pi-" ) {
200 
201  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
202  pmanager->AddProcess(new G4hhIonisation, -1, 2, 2);
203  pmanager->AddProcess(new G4hBremsstrahlung(), -1,-3, 3);
204  pmanager->AddProcess(new G4hPairProduction(), -1,-4, 4);
205 
206  } else if (particleName == "B+" ||
207  particleName == "B-" ||
208  particleName == "D+" ||
209  particleName == "D-" ||
210  particleName == "Ds+" ||
211  particleName == "Ds-" ||
212  particleName == "anti_lambda_c+" ||
213  particleName == "anti_omega-" ||
214  particleName == "anti_proton" ||
215  particleName == "anti_sigma_c+" ||
216  particleName == "anti_sigma_c++" ||
217  particleName == "anti_sigma+" ||
218  particleName == "anti_sigma-" ||
219  particleName == "anti_xi_c+" ||
220  particleName == "anti_xi-" ||
221  particleName == "deuteron" ||
222  particleName == "lambda_c+" ||
223  particleName == "omega-" ||
224  particleName == "sigma_c+" ||
225  particleName == "sigma_c++" ||
226  particleName == "sigma+" ||
227  particleName == "sigma-" ||
228  particleName == "tau+" ||
229  particleName == "tau-" ||
230  particleName == "triton" ||
231  particleName == "xi_c+" ||
232  particleName == "xi-" ) {
233 
234  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
235  pmanager->AddProcess(new G4hhIonisation, -1, 2, 2);
236  }
237  }
238 }
const std::vector< G4String > & PartNames() const
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
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.