ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TransitionRadiationPhysics.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TransitionRadiationPhysics.cc
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
28 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
29 
31 #include "DetectorConstruction.hh"
32 #include "G4VXTRenergyLoss.hh"
33 #include "G4ProcessManager.hh"
34 #include "G4Electron.hh"
35 #include "G4Positron.hh"
36 
37 #include "G4VXTRenergyLoss.hh"
38 #include "G4RegularXTRadiator.hh"
40 #include "G4GammaXTRadiator.hh"
41 #include "G4StrawTubeXTRadiator.hh"
42 
43 #include "G4XTRGammaRadModel.hh"
44 #include "G4XTRRegularRadModel.hh"
47 
50 
51 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
52 
55  : G4VPhysicsConstructor("XTR"),
56  fDetector(ptr),
57  fVerbose(verb),
58  fXTRModel("transpM")
59 {}
60 
61 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
62 
64 {}
65 
66 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67 
69 {
70  if("dummy" == fXTRModel) { return; }
71  if(0 < fVerbose) {
72  G4cout<< "TransitionRadiationPhysics: XTR model <" << fXTRModel
73  << ">" <<G4endl;
74  }
76 
77  if(fXTRModel == "gammaR" ) {
78 
79  fXTRProcess = new G4GammaXTRadiator(rDescription->fLogicalVolume,
80  100., 100.,
81  rDescription->fFoilMaterial,
82  rDescription->fGasMaterial,
83  rDescription->fFoilThickness,
84  rDescription->fGasThickness,
85  rDescription->fFoilNumber,
86  "GammaXTRadiator");
87  }
88  else if(fXTRModel == "gammaM" )
89  {
90  fXTRProcess = new G4XTRGammaRadModel(rDescription->fLogicalVolume,
91  100., 100.,
92  rDescription->fFoilMaterial,
93  rDescription->fGasMaterial,
94  rDescription->fFoilThickness,
95  rDescription->fGasThickness,
96  rDescription->fFoilNumber,
97  "GammaXTRadiator");
98  }
99  else if(fXTRModel == "strawR" )
100  {
102  rDescription->fFoilMaterial,
103  rDescription->fGasMaterial,
104  0.53,
105  3.14159,
107  true,
108  "strawXTRadiator");
109  }
110  else if(fXTRModel == "regR" )
111  {
112  fXTRProcess = new G4RegularXTRadiator(rDescription->fLogicalVolume,
113  rDescription->fFoilMaterial,
114  rDescription->fGasMaterial,
115  rDescription->fFoilThickness,
116  rDescription->fGasThickness,
117  rDescription->fFoilNumber,
118  "RegularXTRadiator");
119  }
120  else if(fXTRModel == "transpR" )
121  {
122  // G4TransparentRegXTRadiator*
124  rDescription->fFoilMaterial,
125  rDescription->fGasMaterial,
126  rDescription->fFoilThickness,
127  rDescription->fGasThickness,
128  rDescription->fFoilNumber,
129  "RegularXTRadiator");
130  }
131  else if(fXTRModel == "regM" )
132  {
133  fXTRProcess = new G4XTRRegularRadModel(rDescription->fLogicalVolume,
134  rDescription->fFoilMaterial,
135  rDescription->fGasMaterial,
136  rDescription->fFoilThickness,
137  rDescription->fGasThickness,
138  rDescription->fFoilNumber,
139  "RegularXTRadiator");
140 
141  }
142  else if(fXTRModel == "transpM" )
143  {
145  rDescription->fFoilMaterial,
146  rDescription->fGasMaterial,
147  rDescription->fFoilThickness,
148  rDescription->fGasThickness,
149  rDescription->fFoilNumber,
150  "RegularXTRadiator");
151  }
152  if(!fXTRProcess) {
153  if(0 < fVerbose) {
154  G4cout<< "TransitionRadiationPhysics: XTR model <" << fXTRModel
155  << "> is not known - no XTR process defined" <<G4endl;
156  }
157  return;
158  }
159 
161 
163  G4ProcessManager* manager = elec->GetProcessManager();
165 
167  manager = posi->GetProcessManager();
169 }
170 
171 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
172