35 #include "SensitiveDetector.hh"
36 #include "Materials.hh"
56 : fRadiatorDescription(0)
83 G4double foilGasRatio = radThickness/(radThickness+gasGap);
108 G4double totDensity = foilDensity*foilGasRatio
109 + gasDensity*(1.0-foilGasRatio);
111 G4double fractionFoil = foilDensity*foilGasRatio/totDensity;
112 G4double fractionGas = gasDensity*(1.0-foilGasRatio)/totDensity;
114 radiatorMat->AddMaterial(mylar, fractionFoil);
115 radiatorMat->AddMaterial(air, fractionGas);
132 =
new G4Box(
"World", worldSizeR, worldSizeR, worldSizeZ/2.);
142 G4double radThick = foilNumber*(radThickness + gasGap) - gasGap + detGap;
143 G4double radZ = startZ + 0.5*radThick;
146 =
new G4Box(
"Radiator", 1.1*absorberRadius, 1.1*absorberRadius, 0.5*radThick);
154 "Radiator", logicRadiator, physicsWorld,
false, 0 );
161 G4double windowZ = startZ + radThick + windowThick/2. + 15.0*
mm;
163 G4double gapZ = windowZ + windowThick/2. + gapThick/2. + 0.01*
mm;
165 G4double electrodeZ = gapZ + gapThick/2. + electrodeThick/2. + 0.01*
mm;
169 G4double absorberZ = electrodeZ + electrodeThick/2.
170 + absorberThickness/2. + 0.01*
mm;
173 =
new G4Box(
"Absorber", absorberRadius, absorberRadius, absorberThickness/2.);
179 "Absorber", logicAbsorber, physicsWorld,
false, 0);
192 G4cout <<
"\n The WORLD is made of "
193 << worldSizeZ/
mm <<
"mm of " << worldMaterial->
GetName();
194 G4cout <<
", the transverse size (R) of the world is "
195 << worldSizeR/
mm <<
" mm. " <<
G4endl;
196 G4cout <<
" The ABSORBER is made of "
197 << absorberThickness/
mm <<
"mm of " << absorberMaterial->
GetName();
198 G4cout <<
", the transverse size (R) is "
199 << absorberRadius/
mm <<
" mm. " <<
G4endl;
200 G4cout <<
" Z position of the (middle of the) absorber "
201 << absorberZ/
mm <<
" mm." <<
G4endl;
208 G4cout <<
"fRadiatorMat = " << radiatorMat->GetName() <<
G4endl;
void AddRootLogicalVolume(G4LogicalVolume *lv)
static constexpr double micrometer
CLHEP::Hep3Vector G4ThreeVector
G4Material * GetMaterial(const G4String &)
static constexpr double mm
void AddNewDetector(G4VSensitiveDetector *aSD)
RadiatorDescription * fRadiatorDescription
Definition of the DetectorHarris73 class.
G4VPhysicalVolume * Construct()
static Materials * GetInstance()
const G4String & GetName() const
G4Material * fFoilMaterial
G4Material * fGasMaterial
static G4SDManager * GetSDMpointer()
G4LogicalVolume * fLogicalVolume
static constexpr double cm
G4GLOB_DLL std::ostream G4cout
G4double GetDensity() const
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)