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

#include <RE05CalorimeterParallelWorld.hh>

Inheritance diagram for RE05CalorimeterParallelWorld:
Collaboration diagram for RE05CalorimeterParallelWorld:

Public Member Functions

 RE05CalorimeterParallelWorld (G4String &parallelWorldName)
 
virtual ~RE05CalorimeterParallelWorld ()
 
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 RE05CalorimeterParallelWorld.hh.

Constructor & Destructor Documentation

RE05CalorimeterParallelWorld::RE05CalorimeterParallelWorld ( G4String parallelWorldName)

Definition at line 49 of file RE05CalorimeterParallelWorld.cc.

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

Definition at line 57 of file RE05CalorimeterParallelWorld.cc.

58 {}

Member Function Documentation

void RE05CalorimeterParallelWorld::Construct ( void  )
virtual

Implements G4VUserParallelWorld.

Definition at line 62 of file RE05CalorimeterParallelWorld.cc.

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",fCaloTubs_rmin,fCaloTubs_rmax,
73  fCaloTubs_dz,fCaloTubs_sphi,fCaloTubs_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", fCaloCell_rmin, fCaloCell_rmax,
86  fCaloCell_dz, fCaloCell_sphi, fCaloCell_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, fSegmentsinPhi, fCaloCell_dphi);
93  // then z division: 20 slices:
94  G4VSolid* caloROcellTub
95  = new G4Tubs("caloROcellTub", fCaloRing_rmin, fCaloRing_rmax,
96  fCaloRing_dz, fCaloRing_sphi, fCaloRing_dphi);
97  G4LogicalVolume * caloROcellLog
98  = new G4LogicalVolume(caloROcellTub, dummyMat, "caloROcellLogical",0,0,0);
99 // G4VPhysicalVolume * caloROcellPhys =
100  new G4PVReplica("caloROcellPhysical", caloROcellLog, caloROphiDivisionLog,
101  kZAxis, fSegmentsinZ,2.*fCaloRing_dz);
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 RE05CalorimeterParallelWorld::ConstructSD ( )
virtual

Reimplemented from G4VUserParallelWorld.

Definition at line 106 of file RE05CalorimeterParallelWorld.cc.

107 {
108  G4String calorimeterSDname = "/mydet/calorimeter";
109  RE05CalorimeterSD * calorimeterSD = new RE05CalorimeterSD(calorimeterSDname);
110  G4SDManager::GetSDMpointer()->AddNewDetector(calorimeterSD);
111  SetSensitiveDetector("caloROcellLogical",calorimeterSD);
112 }
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: