Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
RE05CalorimeterROGeometry Class Reference

#include <RE05CalorimeterROGeometry.hh>

Inheritance diagram for RE05CalorimeterROGeometry:
G4VUserParallelWorld

Public Member Functions

 RE05CalorimeterROGeometry (G4String &parallelWorldName)
 
virtual ~RE05CalorimeterROGeometry ()
 
virtual void Construct ()
 
virtual void ConstructSD ()
 
- Public Member Functions inherited from G4VUserParallelWorld
 G4VUserParallelWorld (G4String worldName)
 
virtual ~G4VUserParallelWorld ()
 
G4String GetName ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 37 of file RE05CalorimeterROGeometry.hh.

Constructor & Destructor Documentation

RE05CalorimeterROGeometry::RE05CalorimeterROGeometry ( G4String parallelWorldName)

Definition at line 49 of file RE05CalorimeterROGeometry.cc.

50  : G4VUserParallelWorld(parallelWorldName)
51 {
52 #include "RE05DetectorParameterDef.icc"
53 }
G4VUserParallelWorld(G4String worldName)
RE05CalorimeterROGeometry::~RE05CalorimeterROGeometry ( )
virtual

Definition at line 57 of file RE05CalorimeterROGeometry.cc.

58 {;}

Member Function Documentation

void RE05CalorimeterROGeometry::Construct ( void  )
virtual

Implements G4VUserParallelWorld.

Definition at line 62 of file RE05CalorimeterROGeometry.cc.

References G4VPhysicalVolume::GetLogicalVolume(), G4VUserParallelWorld::GetWorld(), kPhi, and kZAxis.

63 {
64  G4Material* dummyMat = 0;
65 
66  // the ReadOut World:
67  G4VPhysicalVolume* ROWorldPhys = GetWorld();
68  G4LogicalVolume* ROWorldLog = ROWorldPhys->GetLogicalVolume();
69 
70  // Calorimeter volume:
71  G4VSolid* caloROtub
72  = new G4Tubs("caloROtub",caloTubs_rmin,caloTubs_rmax,
73  caloTubs_dz,caloTubs_sphi,caloTubs_dphi);
74  G4LogicalVolume* caloROlog
75  = new G4LogicalVolume(caloROtub,dummyMat,"caloROlogical",0,0,0);
76 // G4VPhysicalVolume* caloROphys =
77  new G4PVPlacement(0,G4ThreeVector(),caloROlog,"calROphysical",
78  ROWorldLog,false,0);
79 
80  // -------------------------------
81  // Calorimeter readout division:
82  // -------------------------------
83  // Phi division first: 48 sectors
84  G4VSolid* caloROphiDivisionTub
85  = new G4Tubs("caloROphiDivision", caloCell_rmin, caloCell_rmax,
86  caloCell_dz, caloCell_sphi, caloCell_dphi);
87  G4LogicalVolume* caloROphiDivisionLog
88  = new G4LogicalVolume(caloROphiDivisionTub, dummyMat,
89  "caloROphiDivisionLogical",0,0,0);
90 // G4VPhysicalVolume* caloROphiDivisionPhys =
91  new G4PVReplica("caloROphiDivisionPhysical", caloROphiDivisionLog,
92  caloROlog, kPhi, segmentsinPhi, caloCell_dphi);
93  // then z division: 20 slices:
94  G4VSolid* caloROcellTub
95  = new G4Tubs("caloROcellTub", caloRing_rmin, caloRing_rmax,
96  caloRing_dz, caloRing_sphi, caloRing_dphi);
97  G4LogicalVolume * caloROcellLog
98  = new G4LogicalVolume(caloROcellTub, dummyMat, "caloROcellLogical",0,0,0);
99 // G4VPhysicalVolume * caloROcellPhys =
100  new G4PVReplica("caloROcellPhysical", caloROcellLog, caloROphiDivisionLog,
101  kZAxis, segmentsinZ,2.*caloRing_dz);
102 }
Definition: geomdefs.hh:54
CLHEP::Hep3Vector G4ThreeVector
G4VPhysicalVolume * GetWorld()
Definition: G4Tubs.hh:84
G4LogicalVolume * GetLogicalVolume() const
void RE05CalorimeterROGeometry::ConstructSD ( )
virtual

Reimplemented from G4VUserParallelWorld.

Definition at line 106 of file RE05CalorimeterROGeometry.cc.

References G4VUserParallelWorld::SetSensitiveDetector().

107 {
108  G4String calorimeterSDname = "/mydet/calorimeter";
109  RE05CalorimeterSD * calorimeterSD = new RE05CalorimeterSD(calorimeterSDname);
110  SetSensitiveDetector("caloROcellLogical",calorimeterSD);
111 }
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)

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