Loading...
Searching...
No Matches
RE05CalorimeterParallelWorld.cc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27/// \file RE05/src/RE05CalorimeterParallelWorld.cc
28/// \brief Implementation of the RE05CalorimeterParallelWorld class
29//
31#include "RE05CalorimeterSD.hh"
32
33#include "G4LogicalVolume.hh"
34#include "G4VPhysicalVolume.hh"
35#include "G4PVPlacement.hh"
36#include "G4PVReplica.hh"
37#include "G4SDManager.hh"
38#include "G4Box.hh"
39#include "G4Tubs.hh"
40#include "G4ThreeVector.hh"
41#include "G4Material.hh"
42#include "G4VisAttributes.hh"
43#include "G4SystemOfUnits.hh"
44
45//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
46
53
54//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
55
58
59//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
60
62{
63 G4Material* dummyMat = 0;
64
65 // the ReadOut World:
66 G4VPhysicalVolume* ROWorldPhys = GetWorld();
67 G4LogicalVolume* ROWorldLog = ROWorldPhys->GetLogicalVolume();
68
69 // Calorimeter volume:
70 G4VSolid* caloROtub
71 = new G4Tubs("caloROtub",fCaloTubs_rmin,fCaloTubs_rmax,
73 G4LogicalVolume* caloROlog
74 = new G4LogicalVolume(caloROtub,dummyMat,"caloROlogical",0,0,0);
75// G4VPhysicalVolume* caloROphys =
76 new G4PVPlacement(0,G4ThreeVector(),caloROlog,"calROphysical",
77 ROWorldLog,false,0);
78
79 // -------------------------------
80 // Calorimeter readout division:
81 // -------------------------------
82 // Phi division first: 48 sectors
83 G4VSolid* caloROphiDivisionTub
84 = new G4Tubs("caloROphiDivision", fCaloCell_rmin, fCaloCell_rmax,
86 G4LogicalVolume* caloROphiDivisionLog
87 = new G4LogicalVolume(caloROphiDivisionTub, dummyMat,
88 "caloROphiDivisionLogical",0,0,0);
89// G4VPhysicalVolume* caloROphiDivisionPhys =
90 new G4PVReplica("caloROphiDivisionPhysical", caloROphiDivisionLog,
91 caloROlog, kPhi, fSegmentsinPhi, fCaloCell_dphi);
92 // then z division: 20 slices:
93 G4VSolid* caloROcellTub
94 = new G4Tubs("caloROcellTub", fCaloRing_rmin, fCaloRing_rmax,
96 G4LogicalVolume * caloROcellLog
97 = new G4LogicalVolume(caloROcellTub, dummyMat, "caloROcellLogical",0,0,0);
98// G4VPhysicalVolume * caloROcellPhys =
99 new G4PVReplica("caloROcellPhysical", caloROcellLog, caloROphiDivisionLog,
100 kZAxis, fSegmentsinZ,2.*fCaloRing_dz);
101}
102
103//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
104
106{
107 G4String calorimeterSDname = "/mydet/calorimeter";
108 RE05CalorimeterSD * calorimeterSD = new RE05CalorimeterSD(calorimeterSDname);
109 G4SDManager::GetSDMpointer()->AddNewDetector(calorimeterSD);
110 SetSensitiveDetector("caloROcellLogical",calorimeterSD);
111}
112
113//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4double fCaloTubs_dphi
G4double fCaloCell_sphi
G4double fCaloCell_dz
G4double fCaloTubs_rmin
G4double fCaloRing_dphi
G4double fCaloCell_rmax
G4double fCaloRing_dz
G4double fCaloRing_rmin
G4double fCaloRing_sphi
G4double fCaloCell_dphi
G4int fSegmentsinZ
G4int fSegmentsinPhi
G4double fCaloTubs_sphi
G4double fCaloTubs_rmax
G4double fCaloTubs_dz
G4double fCaloRing_rmax
G4double fCaloCell_rmin
Definition of the RE05CalorimeterParallelWorld class.
Definition of the RE05CalorimeterSD class.
RE05CalorimeterParallelWorld(G4String &parallelWorldName)

Applications | User Support | Publications | Collaboration