Commit bbbe5ce0 authored by Frank Gaede's avatar Frank Gaede
Browse files

fix positioning the face of the calorimeter in z

 - fixes issue observed w/ 40 leyers
     - where then gun position (origin) was in the calorimeter
parent acde893b
......@@ -49,6 +49,7 @@ void draw_simhits( const char* FILEN ) {
c1->cd(3) ;
// longitudenal profile
events->Draw("layer(id)","e") ;
// events->Draw("zz","e") ;
c1->cd(4) ;
// radial profile
......
......@@ -27,6 +27,8 @@ public:
absMat = G4NistManager::Instance()->FindOrBuildMaterial("G4_PbWO4");
sensMat = G4NistManager::Instance()->FindOrBuildMaterial("G4_PbWO4");
// absMat = G4NistManager::Instance()->FindOrBuildMaterial("G4_W");
// sensMat = G4NistManager::Instance()->FindOrBuildMaterial("G4_W");
#endif
}
......@@ -37,7 +39,7 @@ public:
G4double hallSide = 1000.*cm ;
/// number of calorimeter layers
G4int nLayers = 100 ;
G4int nLayers = 40 ;
/// cell size
G4double cellSize = 5.0 * mm ;
......@@ -46,10 +48,13 @@ public:
G4double width = 100.*cm ;
/// absorber thickness
G4double absThickness = 2.1*mm ;
G4double absThickness = 5.50*mm ;
/// sensitive thickness
G4double sensThickness = 0.5*mm ;
G4double sensThickness = 0.120 * mm ;
// mimick a 500 micron Si sensor w/ W to use homogeneous parameterization
// X0_Si / X0_W = 27.1
/// z position of the face of the calorimeter
G4double zStart = 10.*cm ;
......
......@@ -155,8 +155,9 @@ G4VPhysicalVolume* SimpleCaloDetectorConstruction::Construct()
0); // opt: UserLimit
// place the face of the calorimeter at zStart:
new G4PVPlacement(0,
G4ThreeVector( 0.0, 0.0, SimpleCaloConfig::get().zStart ),
G4ThreeVector( 0.0, 0.0, calo_zside/2. + SimpleCaloConfig::get().zStart ),
caloLog,
"calorimeter",
experimentalHallLog,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment