107 if (materialName==
"steel1")
111 steel1 -> AddElement(elFe, 0.935);
112 steel1 -> AddElement(elS,0.01);
113 steel1 -> AddElement(elMn,0.05);
114 steel1 -> AddElement(elC,0.005);
117 else if (materialName==
"steel2")
121 steel2 -> AddElement(elFe, 0.759);
122 steel2 -> AddElement(elNi, 0.11);
123 steel2 -> AddElement(elSi,0.01);
124 steel2 -> AddElement(elCr,0.12);
125 steel2 -> AddElement(elP,0.001);
128 else if (materialName==
"steel3")
132 steel3 -> AddElement(elFe, 0.69);
133 steel3 -> AddElement(elNi, 0.1);
134 steel3 -> AddElement(elSi,0.01);
135 steel3 -> AddElement(elCr,0.18);
136 steel3 -> AddElement(elMn,0.02);
139 else if (materialName==
"EZcut")
143 EZcut20 -> AddElement(elFe, 0.98);
144 EZcut20 -> AddElement(elMn,0.02);
147 else if (materialName==
"W")
151 W -> AddElement(elW, 1.);
199 G4Box* targetA_box =
new G4Box(
"targetA_box",targetADim_x,targetADim_y,targetADim_z);
206 "targetA",targetA_log,
PVWorld,
false,0);
211 G4Box* targetB_box =
new G4Box(
"targetB_box",targetBDim_x,targetBDim_y,targetBDim_z);
218 "targetB",targetB_log,
PVWorld,
false,0);
276 G4Tubs* UpperCollimator =
new G4Tubs(
"UpperCollimator",innerRadiusOfTheTubeEx,
277 outerRadiusOfTheTubeEx,hightOfTheTubeEx,
278 startAngleOfTheTubeEx,spanningAngleOfTheTubeEx);
286 UpperCollimatorPosZ),
"UpperCollimator",
287 UpperCollimator_log,
PVWorld,
false,0);
301 G4Cons* collim_cone =
new G4Cons(
"collim_cone",pRmin1,pRmax1,pRmin2,
302 pRmax2,hightOfTheCone,startAngleOfTheCone,
303 spanningAngleOfTheCone);
312 G4Tubs* tracker_tube =
new G4Tubs(
"tracker_tube",innerRadiusOfTheTube,
313 outerRadiusOfTheTube,hightOfTheTube,
314 startAngleOfTheTube,spanningAngleOfTheTube);
319 tracker_tube,collim_cone);
326 "CylMinusCone",CylMinusCone_log,
PVWorld,
false,0);
394 regVol=
new G4Region(
"flatfilterR");
404 centre.
set(0.,0.,z0);
443 regVol=
new G4Region(
"ionizationChamber");
448 G4Tubs* ICTubeW =
new G4Tubs(
"ionizationChamberTube", 0., 2.*2.54*10.*
mm, 0.016*25.4*
mm, 0.*
deg, 360.*
deg);
449 G4Tubs* ICTubeP =
new G4Tubs(
"ionizationChamberTube", 0., 2.*2.54*10.*
mm, 0.010*25.4*
mm, 0.*
deg, 360.*
deg);
453 centre.
set(0.,0.,157.*
mm);
464 centre.
set(0.,0.,158.*
mm);
475 centre.
set(0.,0.,159.*
mm);
486 centre.
set(0.,0.,160.*
mm);
497 centre.
set(0.,0.,161.*
mm);
508 centre.
set(0.,0.,162.*
mm);
566 centre.
set(
z*sin(theta)+dx*cos(theta),
y,
z*cos(theta)-dx*sin(theta));
575 halfSize.
set(fabs(dx*cos(theta)+dz*sin(theta)), fabs(dy), fabs(dz*cos(theta)+dx*sin(theta)));
578 centre.
set(-(
z*sin(theta)+dx*cos(theta)),
y,
z*cos(theta)-dx*sin(theta));
587 halfSize.
set(fabs(dx*cos(theta)+dz*sin(theta)), fabs(dy), fabs(dz*cos(theta)+dx*sin(theta)));
590 centre.
set(
x,
z*sin(theta)+dy*cos(theta),
z*cos(theta)-dy*sin(theta));
599 halfSize.
set(fabs(dx), fabs(dy*cos(theta)+dz*sin(theta)), fabs(dz*cos(theta)+dy*sin(theta)));
602 centre.
set(
x, -(
z*sin(theta)+dy*cos(theta)),
z*cos(theta)-dy*sin(theta));
611 halfSize.
set(fabs(dx), fabs(dy*cos(theta)+dz*sin(theta)), fabs(dz*cos(theta)+dy*sin(theta)));
629 centre.
set(0.,0.,(320.+80./2.)*
mm);
642 logVol->SetRegion(regVol);
649 logVol->SetVisAttributes(simpleAlSVisAtt);
665 centre.
set(0.,0.,(320.+80./2.)*
mm);
678 logVol->SetRegion(regVol);
685 logVol->SetVisAttributes(simpleAlSVisAtt);
701 centre.
set(0.,0.,(230.+80./2.)*
mm);
714 logVol->SetRegion(regVol);
721 logVol->SetVisAttributes(simpleAlSVisAtt);
737 centre.
set(0.,0.,(230.+80./2.)*
mm);
751 logVol->SetRegion(regVol);
758 logVol->SetVisAttributes(simpleAlSVisAtt);
779 centreStart.
set(0.,0.,(330.+600.)/2.*
mm);
781 boxSize.
set(6./2.*
mm, 180./2.*
mm, 50./2.*
mm);
792 leafLVA->SetVisAttributes(simpleAlSVisAtt);
793 leafLVA->SetRegion(regVol);
814 sprintf(appo,
"%d",i);
828 sprintf(appo,
"%d",i);
G4VPhysicalVolume * BeWTubePV
void AddRootLogicalVolume(G4LogicalVolume *lv)
void set(double x, double y, double z)
void SetProductionCut(G4double cut, G4int index=-1)
G4VPhysicalVolume * phVol2X
CLHEP::Hep3Vector G4ThreeVector
std::vector< G4double > leavesA
G4VPhysicalVolume * phVol2Y
static constexpr double mm
G4VPhysicalVolume * PCUtubeW2PV
CLHEP::HepRotation G4RotationMatrix
void SetJawAperture(G4int idJaw, G4ThreeVector ¢re, G4ThreeVector halfSize, G4double aperture, G4RotationMatrix *cRotation)
G4VPhysicalVolume * phVol1Y
static CML2Acc1 * GetInstance(void)
G4VPhysicalVolume * PCUtubeW1PV
G4VPhysicalVolume * leafPhys
void setIsoCentre(G4double val)
G4VPhysicalVolume * PCUtubeP2PV
void SetProductionCuts(G4ProductionCuts *cut)
G4VPhysicalVolume * FFL2_1PV
G4Material * otherMaterials(const G4String materialName)
static constexpr double g
static constexpr double m
static constexpr double deg
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
double A(double temperature)
G4VPhysicalVolume * PCUtubeP3PV
static CML2Acc1 * instance
G4VPhysicalVolume * PCUtubeW3PV
void SetVisAttributes(const G4VisAttributes *pVA)
void SetRegion(G4Region *reg)
G4VPhysicalVolume * MirrorTubePV
static G4Colour Magenta()
void SetVisibility(G4bool=true)
G4VPhysicalVolume * CylMinusCone_phys
HepRotation & rotateY(double delta)
G4VPhysicalVolume * targetB_phys
void Construct(G4VPhysicalVolume *PVWorld, G4double isoCentre)
static constexpr double cm
G4VPhysicalVolume * FFL1A_1PV
CML2Acc1Messenger * acc1Messenger
G4VPhysicalVolume * UpperCollimator_phys
static constexpr double mole
G4VPhysicalVolume * targetA_phys
static constexpr double cm3
HepRotation & rotateX(double delta)
G4VPhysicalVolume * PVWorld
std::vector< G4double > leavesB
G4VPhysicalVolume * PCUtubeP1PV
static G4NistManager * Instance()
G4VPhysicalVolume * phVol1X