Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE01CalorimeterROGeometry Class Reference

#include <RE01CalorimeterROGeometry.hh>

Inheritance diagram for RE01CalorimeterROGeometry:
Collaboration diagram for RE01CalorimeterROGeometry:

Public Member Functions

 RE01CalorimeterROGeometry (G4String &)
 
virtual ~RE01CalorimeterROGeometry ()
 
- Public Member Functions inherited from G4VUserParallelWorld
 G4VUserParallelWorld (G4String worldName)
 
virtual ~G4VUserParallelWorld ()
 
G4String GetName ()
 

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from G4VUserParallelWorld
G4String fWorldName
 

Detailed Description

Definition at line 37 of file RE01CalorimeterROGeometry.hh.

Constructor & Destructor Documentation

RE01CalorimeterROGeometry::RE01CalorimeterROGeometry ( G4String )
RE01CalorimeterROGeometry::~RE01CalorimeterROGeometry ( )
virtual

Definition at line 54 of file RE01CalorimeterROGeometry.cc.

55 {;}

Member Function Documentation

void RE01CalorimeterROGeometry::Construct ( void  )
protectedvirtual

Implements G4VUserParallelWorld.

Definition at line 58 of file RE01CalorimeterROGeometry.cc.

59 {
60  // A dummy material is used to fill the volumes of the readout geometry.
61  // ( It will be allowed to set a NULL pointer in volumes of such virtual
62  // division in future, since this material is irrelevant for tracking.)
63  G4Material* dummyMat = nullptr;
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,
72  fCaloTubs_dz,fCaloTubs_sphi,fCaloTubs_dphi);
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,
85  fCaloCell_dz, fCaloCell_sphi, fCaloCell_dphi);
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,
95  fCaloRing_dz, fCaloRing_sphi, fCaloRing_dphi);
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 }
Definition: geomdefs.hh:54
CLHEP::Hep3Vector G4ThreeVector
G4VPhysicalVolume * GetWorld()
Definition: G4Tubs.hh:85
G4LogicalVolume * GetLogicalVolume() const

Here is the call graph for this function:

void RE01CalorimeterROGeometry::ConstructSD ( )
protectedvirtual

Reimplemented from G4VUserParallelWorld.

Definition at line 106 of file RE01CalorimeterROGeometry.cc.

107 {
108  //------------------------------------------------------------------
109  // Sensitive Detector
110  //------------------------------------------------------------------
111  G4String calorimeterSDname = "/mydet/calorimeter";
112  RE01CalorimeterSD * calorimeterSD = new RE01CalorimeterSD(calorimeterSDname);
113  G4SDManager::GetSDMpointer()->AddNewDetector(calorimeterSD);
114  SetSensitiveDetector("caloROcellLogical", calorimeterSD);
115 }
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
void AddNewDetector(G4VSensitiveDetector *aSD)
Definition: G4SDManager.cc:71
static G4SDManager * GetSDMpointer()
Definition: G4SDManager.cc:40

Here is the call graph for this function:


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