LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ExN01DetectorConstruction Class Reference

#include "ExN01DetectorConstruction.hh"

Inheritance diagram for ExN01DetectorConstruction:

Public Member Functions

 ExN01DetectorConstruction ()
 
 ~ExN01DetectorConstruction ()
 
G4VPhysicalVolume * Construct ()
 

Private Attributes

G4LogicalVolume * experimentalHall_log
 
G4LogicalVolume * tracker_log
 
G4LogicalVolume * calorimeterBlock_log
 
G4LogicalVolume * calorimeterLayer_log
 
G4VPhysicalVolume * experimentalHall_phys
 
G4VPhysicalVolume * calorimeterLayer_phys
 
G4VPhysicalVolume * calorimeterBlock_phys
 
G4VPhysicalVolume * tracker_phys
 

Detailed Description

Definition at line 47 of file ExN01DetectorConstruction.hh.

Constructor & Destructor Documentation

ExN01DetectorConstruction::ExN01DetectorConstruction ( )
ExN01DetectorConstruction::~ExN01DetectorConstruction ( )

Definition at line 58 of file ExN01DetectorConstruction.cc.

60 {
61 }

Member Function Documentation

G4VPhysicalVolume * ExN01DetectorConstruction::Construct ( )

Definition at line 64 of file ExN01DetectorConstruction.cc.

References calorimeterBlock_log, calorimeterBlock_phys, calorimeterLayer_log, calorimeterLayer_phys, experimentalHall_log, experimentalHall_phys, tracker_log, tracker_phys, and z.

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

Member Data Documentation

G4LogicalVolume* ExN01DetectorConstruction::calorimeterBlock_log
private

Definition at line 60 of file ExN01DetectorConstruction.hh.

Referenced by Construct().

G4VPhysicalVolume* ExN01DetectorConstruction::calorimeterBlock_phys
private

Definition at line 67 of file ExN01DetectorConstruction.hh.

Referenced by Construct().

G4LogicalVolume* ExN01DetectorConstruction::calorimeterLayer_log
private

Definition at line 61 of file ExN01DetectorConstruction.hh.

Referenced by Construct().

G4VPhysicalVolume* ExN01DetectorConstruction::calorimeterLayer_phys
private

Definition at line 66 of file ExN01DetectorConstruction.hh.

Referenced by Construct().

G4LogicalVolume* ExN01DetectorConstruction::experimentalHall_log
private

Definition at line 58 of file ExN01DetectorConstruction.hh.

Referenced by Construct().

G4VPhysicalVolume* ExN01DetectorConstruction::experimentalHall_phys
private

Definition at line 65 of file ExN01DetectorConstruction.hh.

Referenced by Construct().

G4LogicalVolume* ExN01DetectorConstruction::tracker_log
private

Definition at line 59 of file ExN01DetectorConstruction.hh.

Referenced by Construct().

G4VPhysicalVolume* ExN01DetectorConstruction::tracker_phys
private

Definition at line 68 of file ExN01DetectorConstruction.hh.

Referenced by Construct().


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