30 #include "B2bDetectorConstruction.hh"
31 #include "B2bDetectorMessenger.hh"
32 #include "B2bChamberParameterisation.hh"
33 #include "B2TrackerSD.hh"
64 fLogicTarget(NULL), fLogicChamber(NULL),
65 fTargetMaterial(NULL), fChamberMaterial(NULL),
120 G4int NbOfChambers = 5;
126 G4double trackerLength = (NbOfChambers+1)*chamberSpacing;
128 G4double worldLength = 1.2 * (2*targetLength + trackerLength);
130 G4double targetRadius = 0.5*targetLength;
131 targetLength = 0.5*targetLength;
132 G4double trackerSize = 0.5*trackerLength;
140 G4cout <<
"Computed tolerance = "
146 worldLength/2,worldLength/2,worldLength/2);
171 =
new G4Tubs(
"target",0.,targetRadius,targetLength,0.*
deg,360.*
deg);
183 G4cout <<
"Target is " << 2*targetLength/
cm <<
" cm of "
191 =
new G4Tubs(
"tracker",0,trackerSize,trackerSize, 0.*
deg, 360.*
deg);
213 G4double firstPosition = -trackerSize + chamberSpacing;
214 G4double firstLength = trackerLength/10;
215 G4double lastLength = trackerLength;
236 G4cout <<
"There are " << NbOfChambers <<
" chambers in the tracker region. "
238 <<
"The chambers are " << chamberWidth/
cm <<
" cm of "
240 <<
"The distance between chamber is " << chamberSpacing/
cm <<
" cm"
260 G4double maxStep = 0.5*chamberWidth;
283 G4String trackerChamberSDname =
"B2/TrackerChamberSD";
285 "TrackerHitsCollection");
310 if ( pttoMaterial ) {
315 <<
"----> The target is made of " << materialName <<
G4endl;
319 <<
"--> WARNING from SetTargetMaterial : "
320 << materialName <<
" not found" <<
G4endl;
335 if ( pttoMaterial ) {
340 <<
"----> The chambers are made of " << materialName <<
G4endl;
344 <<
"--> WARNING from SetChamberMaterial : "
345 << materialName <<
" not found" <<
G4endl;