30 #include "B2bDetectorConstruction.hh"
31 #include "B2bDetectorMessenger.hh"
32 #include "B2bChamberParameterisation.hh"
33 #include "B2TrackerSD.hh"
65 fLogicTarget(NULL), fLogicChamber(NULL),
66 fTargetMaterial(NULL), fChamberMaterial(NULL),
123 G4int NbOfChambers = 5;
129 G4double trackerLength = (NbOfChambers+1)*chamberSpacing;
131 G4double worldLength = 1.2 * (2*targetLength + trackerLength);
133 G4double targetRadius = 0.5*targetLength;
134 targetLength = 0.5*targetLength;
135 G4double trackerSize = 0.5*trackerLength;
143 G4cout <<
"Computed tolerance = "
149 worldLength/2,worldLength/2,worldLength/2);
174 =
new G4Tubs(
"target",0.,targetRadius,targetLength,0.*
deg,360.*
deg);
186 G4cout <<
"Target is " << 2*targetLength/
cm <<
" cm of "
194 =
new G4Tubs(
"tracker",0,trackerSize,trackerSize, 0.*
deg, 360.*
deg);
216 G4double firstPosition = -trackerSize + chamberSpacing;
217 G4double firstLength = trackerLength/10;
218 G4double lastLength = trackerLength;
239 G4cout <<
"There are " << NbOfChambers <<
" chambers in the tracker region. "
240 <<
"\nThe chambers are " << chamberWidth/
cm <<
" cm of "
242 << chamberSpacing/
cm <<
" cm" <<
G4endl;
261 G4double maxStep = 0.5*chamberWidth;
284 G4String trackerChamberSDname =
"B2/TrackerChamberSD";
286 "TrackerHitsCollection");
308 if ( pttoMaterial ) {
311 G4cout <<
"\n----> The target is made of " << materialName <<
G4endl;
313 G4cout <<
"\n--> WARNING from SetTargetMaterial : "
314 << materialName <<
" not found" <<
G4endl;
329 if ( pttoMaterial ) {
332 G4cout <<
"\n----> The chambers are made of " << materialName <<
G4endl;
334 G4cout <<
"\n--> WARNING from SetChamberMaterial : "
335 << materialName <<
" not found" <<
G4endl;