34 #include "DetectorConstruction.hh"
35 #include "DetectorMessenger.hh"
106 G4double density, temperature, pressure;
107 G4int ncomponents, natoms;
118 BuildMaterialWithNewDensity(
"Water_1.05",
"G4_WATER",1.05*
g/
cm3);
125 density = 1.e-5*
g/
cm3;
126 pressure = 2.e-2*
bar;
134 temperature = 2.73*
kelvin;
151 sWorld =
new G4Box(
"World",
170 sAbsor =
new G4Box(
"Absorber",
222 G4cout <<
"\n---------------------------------------------------------\n";
225 G4cout <<
"\n---------------------------------------------------------\n";
227 if (fTallyNumber > 0) {
228 G4cout <<
"---> There are " << fTallyNumber <<
" tallies : " <<
G4endl;
230 G4cout <<
"fTally " << j <<
": "
237 G4cout <<
"\n---------------------------------------------------------\n";
324 fTallyNumber =
value;
326 G4cout <<
"### DetectorConstruction::SetTallyNumber WARNING: wrong tally "
327 <<
"number " << value <<
" is ignored" <<
G4endl;
338 G4cout <<
"### DetectorConstruction::SetTallyNumber WARNING: wrong tally "
339 <<
"number " << j <<
" is ignored" <<
G4endl;
350 G4cout <<
"### DetectorConstruction::SetTallyPosition WARNING: wrong tally "
351 <<
"number " << j <<
" is ignored" <<
G4endl;
360 G4cout <<
"### DetectorConstruction::GetTallyMass WARNING: wrong tally "
361 <<
"number " << j <<
" is ignored" <<
G4endl;
371 G4cout <<
"### DetectorConstruction::GetLOgicalTally WARNING: wrong tally "
372 <<
"number " << j <<
" is ignored" <<
G4endl;
static constexpr double kelvin
static G4RunManager * GetRunManager()
CLHEP::Hep3Vector G4ThreeVector
std::vector< ExP01TrackerHit * > a
G4ThreeVector fTallyPosition[kMaxTally]
static constexpr double STP_Temperature
static G4MaterialTable * GetMaterialTable()
G4LogicalVolume * fLAbsor
G4Material * fAbsorMaterial[kMaxAbsor]
G4VPhysicalVolume * Construct()
void SetMeanExcitationEnergy(G4double value)
void SetTallyNumber(G4int)
static constexpr double universe_mean_density
G4ThreeVector fTallySize[kMaxTally]
G4double GetTallyMass(G4int n) const
G4bool SetDetectorField(G4Field *detectorField, int failMode=0)
void CreateChordFinder(G4MagneticField *detectorMagField)
const G4String & GetName() const
void SetWorldMaterial(const G4String &materialName)
static constexpr double g
G4FieldManager * GetFieldManager() const
const XML_Char int const XML_Char * value
G4LogicalVolume * fLTally[kMaxTally]
G4UniformMagField * fMagField
void SetTallyPosition(G4int, const G4ThreeVector &)
static constexpr double mg
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
G4double fTallyMass[kMaxTally]
static constexpr double eV
void SetTallySize(G4int, const G4ThreeVector &)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static G4TransportationManager * GetTransportationManager()
void SetMagField(G4double)
G4LogicalVolume * fLWorld
void AddElement(G4Element *element, G4int nAtoms)
G4IonisParamMat * GetIonisation() const
void PhysicsHasBeenModified()
G4GLOB_DLL std::ostream G4cout
static constexpr double cm
const G4LogicalVolume * GetLogicalTally(G4int n) const
DetectorMessenger * fDetectorMessenger
void SetMaterial(G4Material *pMaterial)
G4Material * fWorldMaterial
static constexpr double mole
void AddMaterial(G4Material *material, G4double fraction)
static constexpr double bar
static constexpr double cm3
void SetMaterial(G4String)
static G4NistManager * Instance()
G4double GetDensity() const