59 :solidWorld(0), logicWorld(0), physiWorld(0),
60 solidTarget(0), logicTarget(0), physiTarget(0),
61 solidTracker(0),logicTracker(0),physiTracker(0),
62 solidChamber(0),logicChamber(0),physiChamber(0),
63 TargetMater(0), ChamberMater(0),fpMagField(0),
64 fWorldLength(0.), fTargetLength(0.), fTrackerLength(0.),
65 NbOfChambers(0) , ChamberWidth(0.), ChamberSpacing(0.)
76 delete detectorMessenger;
114 ChamberWidth = 20*
cm;
115 ChamberSpacing = 80*
cm;
117 fTrackerLength = (NbOfChambers+1)*ChamberSpacing;
118 fTargetLength = 5.0 *
cm;
121 ChamberMater = Xenon;
123 fWorldLength= 1.2 *(fTargetLength+fTrackerLength);
125 G4double targetSize = 0.5*fTargetLength;
126 G4double trackerSize = 0.5*fTrackerLength;
134 G4double HalfWorldLength = 0.5*fWorldLength;
136 solidWorld=
new G4Box(
"world",HalfWorldLength,HalfWorldLength,HalfWorldLength);
155 solidTarget =
new G4Box(
"target",targetSize,targetSize,targetSize);
156 logicTarget =
new G4LogicalVolume(solidTarget,TargetMater,
"Target",0,0,0);
165 G4cout <<
"Target is " << fTargetLength/
cm <<
" cm of "
174 solidTracker =
new G4Box(
"tracker",trackerSize,trackerSize,trackerSize);
175 logicTracker =
new G4LogicalVolume(solidTracker , Air,
"Tracker",0,0,0);
191 solidChamber =
new G4Box(
"chamber", 100*
cm, 100*
cm, 10*
cm);
192 logicChamber =
new G4LogicalVolume(solidChamber,ChamberMater,
"Chamber",0,0,0);
194 G4double firstPosition = -trackerSize + 0.5*ChamberWidth;
195 G4double firstLength = fTrackerLength/10;
196 G4double lastLength = fTrackerLength;
216 G4cout <<
"There are " << NbOfChambers <<
" chambers in the tracker region. "
217 <<
"The chambers are " << ChamberWidth/
mm <<
" mm of "
218 << ChamberMater->
GetName() <<
"\n The distance between chamber is "
219 << ChamberSpacing/
cm <<
" cm" <<
G4endl;
227 G4String trackerChamberSDname =
"ExP01/TrackerChamberSD";
250 G4double maxStep = 0.5*ChamberWidth;
269 {TargetMater = pttoMaterial;
271 G4cout <<
"\n----> The target is " << fTargetLength/
cm <<
" cm of "
272 << materialName <<
G4endl;
283 {ChamberMater = pttoMaterial;
285 G4cout <<
"\n----> The chambers are " << ChamberWidth/
cm <<
" cm of "
286 << materialName <<
G4endl;