G4double maxLength = 2*trackerLength, maxTime = 0.1*ns, minEkin = 10*MeV; trackerLV->SetUserLimits(new G4UserLimits(maxStep, maxLength, maxTime, minEkin));
130 G4double worldLength = 1.2 * (2*targetLength + trackerLength);
132 G4double targetRadius = 0.5*targetLength;
133 targetLength = 0.5*targetLength;
134 G4double trackerSize = 0.5*trackerLength;
142 G4cout <<
"Computed tolerance = " 148 worldLength/2,worldLength/2,worldLength/2);
173 =
new G4Tubs(
"target",0.,targetRadius,targetLength,0.*
deg,360.*
deg);
185 G4cout <<
"Target is " << 2*targetLength/
cm <<
" cm of " 193 =
new G4Tubs(
"tracker",0,trackerSize,trackerSize, 0.*
deg, 360.*
deg);
218 <<
"The chambers are " << chamberWidth/
cm <<
" cm of " 220 <<
"The distance between chamber is " << chamberSpacing/
cm <<
" cm" 223 G4double firstPosition = -trackerSize + chamberSpacing;
224 G4double firstLength = trackerLength/10;
225 G4double lastLength = trackerLength;
227 G4double halfWidth = 0.5*chamberWidth;
228 G4double rmaxFirst = 0.5 * firstLength;
233 if (chamberSpacing < chamberWidth) {
234 G4Exception(
"B2aDetectorConstruction::DefineVolumes()",
242 G4double Zposition = firstPosition + copyNo * chamberSpacing;
243 G4double rmax = rmaxFirst + copyNo * rmaxIncr;
246 =
new G4Tubs(
"Chamber_solid", 0, rmax, halfWidth, 0.*
deg, 360.*
deg);
271 G4double maxStep = 0.5*chamberWidth;
G4Material * fTargetMaterial
CLHEP::Hep3Vector G4ThreeVector
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
void SetUserLimits(G4UserLimits *pULimits)
G4LogicalVolume * fLogicTarget
G4double GetSurfaceTolerance() const
void SetWorldMaximumExtent(G4double worldExtent)
G4Material * fChamberMaterial
G4GLOB_DLL std::ostream G4cout
G4UserLimits * fStepLimit
static G4GeometryManager * GetInstance()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4LogicalVolume ** fLogicChamber
const G4String & GetName() const
void SetVisAttributes(const G4VisAttributes *pVA)
static G4GeometryTolerance * GetInstance()