Geant4  10.02.p03
ExN01DetectorConstruction Class Reference

#include <ExN01DetectorConstruction.hh>

Inheritance diagram for ExN01DetectorConstruction:
Collaboration diagram for ExN01DetectorConstruction:

Public Member Functions

 ExN01DetectorConstruction ()
 
 ~ExN01DetectorConstruction ()
 
G4VPhysicalVolumeConstruct ()
 
- Public Member Functions inherited from G4VUserDetectorConstruction
 G4VUserDetectorConstruction ()
 
virtual ~G4VUserDetectorConstruction ()
 
virtual void ConstructSDandField ()
 
virtual void CloneSD ()
 
virtual void CloneF ()
 
void RegisterParallelWorld (G4VUserParallelWorld *)
 
G4int ConstructParallelGeometries ()
 
void ConstructParallelSD ()
 
G4int GetNumberOfParallelWorld () const
 
G4VUserParallelWorldGetParallelWorld (G4int i) const
 

Private Attributes

G4LogicalVolumeexperimentalHall_log
 
G4LogicalVolumetracker_log
 
G4LogicalVolumecalorimeterBlock_log
 
G4LogicalVolumecalorimeterLayer_log
 
G4VPhysicalVolumeexperimentalHall_phys
 
G4VPhysicalVolumecalorimeterLayer_phys
 
G4VPhysicalVolumecalorimeterBlock_phys
 
G4VPhysicalVolumetracker_phys
 

Additional Inherited Members

- Protected Member Functions inherited from G4VUserDetectorConstruction
void SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
 
void SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD)
 

Detailed Description

Definition at line 48 of file ExN01DetectorConstruction.hh.

Constructor & Destructor Documentation

◆ ExN01DetectorConstruction()

ExN01DetectorConstruction::ExN01DetectorConstruction ( )

◆ ~ExN01DetectorConstruction()

ExN01DetectorConstruction::~ExN01DetectorConstruction ( )

Definition at line 59 of file ExN01DetectorConstruction.cc.

61 {
62 }

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * ExN01DetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 65 of file ExN01DetectorConstruction.cc.

67 {
68  //------------------------------------------------------ materials
69  G4double a; // atomic mass
70  G4double z; // atomic number
72 
73  G4Material* Ar =
74  new G4Material("ArgonGas", z= 18., a= 39.95*g/mole, density= 1.782*mg/cm3);
75 
76  G4Material* Al =
77  new G4Material("Aluminum", z= 13., a= 26.98*g/mole, density= 2.7*g/cm3);
78 
79  G4Material* Pb =
80  new G4Material("Lead", z= 82., a= 207.19*g/mole, density= 11.35*g/cm3);
81 
82  //------------------------------------------------------ volumes
83 
84  //------------------------------ experimental hall (world volume)
85  //------------------------------ beam line along x axis
86 
87  G4double expHall_x = 3.0*m;
88  G4double expHall_y = 1.0*m;
89  G4double expHall_z = 1.0*m;
90  G4Box* experimentalHall_box
91  = new G4Box("expHall_box",expHall_x,expHall_y,expHall_z);
92  experimentalHall_log = new G4LogicalVolume(experimentalHall_box,
93  Ar,"expHall_log",0,0,0);
96  "expHall",0,false,0);
97 
98  //------------------------------ a tracker tube
99 
100  G4double innerRadiusOfTheTube = 0.*cm;
101  G4double outerRadiusOfTheTube = 60.*cm;
102  G4double hightOfTheTube = 50.*cm;
103  G4double startAngleOfTheTube = 0.*deg;
104  G4double spanningAngleOfTheTube = 360.*deg;
105  G4Tubs* tracker_tube = new G4Tubs("tracker_tube",innerRadiusOfTheTube,
106  outerRadiusOfTheTube,hightOfTheTube,
107  startAngleOfTheTube,
108  spanningAngleOfTheTube);
109  tracker_log = new G4LogicalVolume(tracker_tube,Al,"tracker_log",0,0,0);
110  G4double trackerPos_x = -1.0*m;
111  G4double trackerPos_y = 0.*m;
112  G4double trackerPos_z = 0.*m;
113  tracker_phys = new G4PVPlacement(0,
114  G4ThreeVector(trackerPos_x,trackerPos_y,trackerPos_z),
115  tracker_log,"tracker",experimentalHall_log,false,0);
116 
117  //------------------------------ a calorimeter block
118 
119  G4double block_x = 1.0*m;
120  G4double block_y = 50.0*cm;
121  G4double block_z = 50.0*cm;
122  G4Box* calorimeterBlock_box = new G4Box("calBlock_box",block_x,
123  block_y,block_z);
124  calorimeterBlock_log = new G4LogicalVolume(calorimeterBlock_box,
125  Pb,"caloBlock_log",0,0,0);
126  G4double blockPos_x = 1.0*m;
127  G4double blockPos_y = 0.0*m;
128  G4double blockPos_z = 0.0*m;
130  G4ThreeVector(blockPos_x,blockPos_y,blockPos_z),
131  calorimeterBlock_log,"caloBlock",experimentalHall_log,false,0);
132 
133  //------------------------------ calorimeter layers
134 
135  G4double calo_x = 1.*cm;
136  G4double calo_y = 40.*cm;
137  G4double calo_z = 40.*cm;
138  G4Box* calorimeterLayer_box = new G4Box("caloLayer_box",
139  calo_x,calo_y,calo_z);
140  calorimeterLayer_log = new G4LogicalVolume(calorimeterLayer_box,
141  Al,"caloLayer_log",0,0,0);
142  for(G4int i=0;i<19;i++) // loop for 19 layers
143  {
144  G4double caloPos_x = (i-9)*10.*cm;
145  G4double caloPos_y = 0.0*m;
146  G4double caloPos_z = 0.0*m;
148  G4ThreeVector(caloPos_x,caloPos_y,caloPos_z),
149  calorimeterLayer_log,"caloLayer",calorimeterBlock_log,false,i);
150  }
151 
152  //------------------------------------------------------------------
153 
154  return experimentalHall_phys;
155 }
static const double cm
Definition: G4SIunits.hh:118
G4VPhysicalVolume * calorimeterBlock_phys
CLHEP::Hep3Vector G4ThreeVector
Definition: G4Box.hh:64
Definition: G4Tubs.hh:85
static const double mg
Definition: G4SIunits.hh:181
int G4int
Definition: G4Types.hh:78
G4double density
Definition: TRTMaterials.hh:39
function g(Y1, Y2, PT2)
Definition: hijing1.383.f:5206
G4VPhysicalVolume * experimentalHall_phys
static const double deg
Definition: G4SIunits.hh:151
static const double cm3
Definition: G4SIunits.hh:120
static const double mole
Definition: G4SIunits.hh:283
static const double m
Definition: G4SIunits.hh:128
double G4double
Definition: G4Types.hh:76
G4VPhysicalVolume * calorimeterLayer_phys
G4Material * Al
Definition: TRTMaterials.hh:74
Here is the call graph for this function:

Member Data Documentation

◆ calorimeterBlock_log

G4LogicalVolume* ExN01DetectorConstruction::calorimeterBlock_log
private

Definition at line 61 of file ExN01DetectorConstruction.hh.

◆ calorimeterBlock_phys

G4VPhysicalVolume* ExN01DetectorConstruction::calorimeterBlock_phys
private

Definition at line 68 of file ExN01DetectorConstruction.hh.

◆ calorimeterLayer_log

G4LogicalVolume* ExN01DetectorConstruction::calorimeterLayer_log
private

Definition at line 62 of file ExN01DetectorConstruction.hh.

◆ calorimeterLayer_phys

G4VPhysicalVolume* ExN01DetectorConstruction::calorimeterLayer_phys
private

Definition at line 67 of file ExN01DetectorConstruction.hh.

◆ experimentalHall_log

G4LogicalVolume* ExN01DetectorConstruction::experimentalHall_log
private

Definition at line 59 of file ExN01DetectorConstruction.hh.

◆ experimentalHall_phys

G4VPhysicalVolume* ExN01DetectorConstruction::experimentalHall_phys
private

Definition at line 66 of file ExN01DetectorConstruction.hh.

◆ tracker_log

G4LogicalVolume* ExN01DetectorConstruction::tracker_log
private

Definition at line 60 of file ExN01DetectorConstruction.hh.

◆ tracker_phys

G4VPhysicalVolume* ExN01DetectorConstruction::tracker_phys
private

Definition at line 69 of file ExN01DetectorConstruction.hh.


The documentation for this class was generated from the following files: