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 72 of file CMSEmNoDeltaRay.cc.

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

Definition at line 83 of file CMSEmNoDeltaRay.cc.

83 {}

Member Function Documentation

void CMSEmNoDeltaRay::ConstructParticle ( )
override

Definition at line 85 of file CMSEmNoDeltaRay.cc.

References VtxSmearedParameters_cfi::Alpha, and nanoDQM_cff::Electron.

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

Definition at line 131 of file CMSEmNoDeltaRay.cc.

References AnalysisDataFormats_SUSYBSMObjects::msc, HiggsValidation_cfi::particleName, EmParticleList::PartNames(), region, and TableParser::table.

131  {
132  // Add standard EM Processes
133  G4Region* reg = nullptr;
134  if (region != " ") {
135  G4RegionStore* regStore = G4RegionStore::GetInstance();
136  reg = regStore->GetRegion(region, false);
137  }
138 
139  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
140  EmParticleList emList;
141  for (const auto& particleName : emList.PartNames()) {
142  G4ParticleDefinition* particle = table->FindParticle(particleName);
143  G4ProcessManager* pmanager = particle->GetProcessManager();
144  if (verbose > 1)
145  edm::LogVerbatim("PhysicsList") << "### " << GetPhysicsName() << " instantiates for " << particleName;
146 
147  if (particleName == "gamma") {
148  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
149  pmanager->AddDiscreteProcess(new G4ComptonScattering);
150  pmanager->AddDiscreteProcess(new G4GammaConversion);
151 
152  } else if (particleName == "e-") {
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, 1);
162  pmanager->AddProcess(new G4eBremsstrahlung, -1, -3, 2);
163 
164  } else if (particleName == "e+") {
165  G4eMultipleScattering* msc = new G4eMultipleScattering;
166  msc->SetStepLimitType(fMinimal);
167  if (reg != nullptr) {
168  G4UrbanMscModel* msc_pos = new G4UrbanMscModel();
169  msc_pos->SetRangeFactor(0.04);
170  msc->AddEmModel(0, msc_pos, reg);
171  }
172  pmanager->AddProcess(msc, -1, 1, -1);
173  pmanager->AddProcess(new G4hhIonisation, -1, 2, -1);
174  pmanager->AddProcess(new G4eBremsstrahlung, -1, -3, 1);
175  pmanager->AddProcess(new G4eplusAnnihilation, 0, -1, 2);
176 
177  } else if (particleName == "mu+" || particleName == "mu-") {
178  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, -1);
179  pmanager->AddProcess(new G4hhIonisation, -1, 2, -1);
180  pmanager->AddProcess(new G4MuBremsstrahlung, -1, -3, 1);
181  pmanager->AddProcess(new G4MuPairProduction, -1, -4, 2);
182 
183  } else if (particleName == "alpha" || particleName == "He3" || particleName == "GenericIon") {
184  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, -1);
185  pmanager->AddProcess(new G4hhIonisation, -1, 2, -1);
186 
187  } else if (particleName == "pi+" || particleName == "kaon+" || particleName == "kaon-" ||
188  particleName == "proton" || particleName == "pi-") {
189  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, -1);
190  pmanager->AddProcess(new G4hhIonisation, -1, 2, -1);
191  pmanager->AddProcess(new G4hBremsstrahlung(), -1, -3, 1);
192  pmanager->AddProcess(new G4hPairProduction(), -1, -4, 2);
193 
194  } else if (particle->GetPDGCharge() != 0.0) {
195  pmanager->AddProcess(new G4hMultipleScattering, -1, 1, -1);
196  pmanager->AddProcess(new G4hhIonisation, -1, 2, -1);
197  }
198  }
199 }
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 19 of file CMSEmNoDeltaRay.h.

Referenced by ConstructProcess().

G4int CMSEmNoDeltaRay::verbose
private

Definition at line 18 of file CMSEmNoDeltaRay.h.