98 new G4Material(
"Galactic", z=1., a=1.01*
g/
mole,density= universe_mean_density,
115 G4double layerThickness = absoThickness + gapThickness;
117 G4double worldSizeXY = 1.2 * calorSizeXY;
118 G4double worldSizeZ = 1.2 * calorThickness;
125 if ( ! defaultMaterial || ! absorberMaterial || ! gapMaterial ) {
127 msg <<
"Cannot retrieve materials already defined.";
128 G4Exception(
"B4DetectorConstruction::DefineVolumes()",
137 worldSizeXY/2, worldSizeXY/2, worldSizeZ/2);
160 =
new G4Box(
"Calorimeter",
161 calorSizeXY/2, calorSizeXY/2, calorThickness/2);
184 calorSizeXY/2, calorSizeXY/2, layerThickness/2);
205 calorSizeXY/2, calorSizeXY/2, absoThickness/2);
228 calorSizeXY/2, calorSizeXY/2, gapThickness/2);
249 G4cout <<
"\n------------------------------------------------------------"
250 <<
"\n---> The calorimeter is " <<
fNofLayers <<
" layers of: [ "
251 << absoThickness/
mm <<
"mm of " << absorberMaterial->
GetName()
253 << gapThickness/
mm <<
"mm of " << gapMaterial->
GetName() <<
" ] "
254 <<
"\n------------------------------------------------------------\n";
void SetVerboseLevel(G4int verboseLevel)
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
virtual void ConstructSDandField()
std::ostringstream G4ExceptionDescription
CLHEP::Hep3Vector G4ThreeVector
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
const G4String & GetName() const
void SetVisibility(G4bool)
static G4MaterialTable * GetMaterialTable()
virtual G4VPhysicalVolume * Construct()
static G4NistManager * Instance()
virtual ~B4cDetectorConstruction()
Definition of the B4cCalorimeterSD class.
B4cDetectorConstruction()
static G4ThreadLocal G4GlobalMagFieldMessenger * fMagFieldMessenger
G4GLOB_DLL std::ostream G4cout
Definition of the B4cDetectorConstruction class.
G4VPhysicalVolume * DefineVolumes()
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static const double kelvin
static const G4VisAttributes Invisible
Calorimeter sensitive detector class.
void SetVisAttributes(const G4VisAttributes *pVA)