Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
ExN04CalorimeterROGeometry Class Reference

#include <Doxymodules_eventgenerator.h>

Inheritance diagram for ExN04CalorimeterROGeometry:
G4VReadOutGeometry

Public Member Functions

 ExN04CalorimeterROGeometry ()
 
 ExN04CalorimeterROGeometry (G4String)
 
 ~ExN04CalorimeterROGeometry ()
 

Private Member Functions

virtual G4VPhysicalVolumeBuild ()
 

Detailed Description

Definition at line 36 of file Doxymodules_eventgenerator.h.

Constructor & Destructor Documentation

◆ ExN04CalorimeterROGeometry() [1/2]

ExN04CalorimeterROGeometry::ExN04CalorimeterROGeometry ( )

◆ ExN04CalorimeterROGeometry() [2/2]

ExN04CalorimeterROGeometry::ExN04CalorimeterROGeometry ( G4String  aString)

Definition at line 52 of file ExN04CalorimeterROGeometry.cc.

53 : G4VReadOutGeometry(aString)
54{
56}

◆ ~ExN04CalorimeterROGeometry()

ExN04CalorimeterROGeometry::~ExN04CalorimeterROGeometry ( )

Definition at line 59 of file ExN04CalorimeterROGeometry.cc.

60{
61}

Member Function Documentation

◆ Build()

G4VPhysicalVolume * ExN04CalorimeterROGeometry::Build ( )
privatevirtual

Definition at line 64 of file ExN04CalorimeterROGeometry.cc.

65{
66 // A dummy material is used to fill the volumes of the readout geometry.
67 // ( It will be allowed to set a NULL pointer in volumes of such virtual
68 // division in future, since this material is irrelevant for tracking.)
69 G4Material* dummyMat =
70 new G4Material(name="dummyMat", 1., 1.*g/mole, 1.*g/cm3);
71
72 //Builds the ReadOut World:
73 G4Box* ROWorldBox = new G4Box("ROWorldBox",
75 G4LogicalVolume* ROWorldLog = new G4LogicalVolume(ROWorldBox, dummyMat,
76 "ROWorldLogical", 0, 0, 0);
77 G4PVPlacement* ROWorldPhys = new G4PVPlacement(0, G4ThreeVector(),
78 "ROWorldPhysical",
79 ROWorldLog,
80 0, false, 0);
81 // Calorimeter volume:
82 G4VSolid* caloROtub
83 = new G4Tubs("caloROtub", fcaloTubs_rmin, fcaloTubs_rmax,
85 G4LogicalVolume* caloROlog
86 = new G4LogicalVolume(caloROtub, dummyMat, "caloROlogical",0,0,0);
87 G4VPhysicalVolume* caloROphys
88 = new G4PVPlacement(0, G4ThreeVector(), "calROphysical", caloROlog,
89 ROWorldPhys, false, 0);
90
91 // -------------------------------
92 // Calorimeter readout division:
93 // -------------------------------
94 // Phi division first: 48 sectors
95 G4VSolid* caloROphiDivisionTub
96 = new G4Tubs("caloROphiDivision", fcaloCell_rmin, fcaloCell_rmax,
98 G4LogicalVolume* caloROphiDivisionLog
99 = new G4LogicalVolume(caloROphiDivisionTub,
100 dummyMat, "caloROphiDivisionLogical",0,0,0);
101 G4VPhysicalVolume* caloROphiDivisionPhys
102 = new G4PVReplica("caloROphiDivisionPhysical", caloROphiDivisionLog,
103 caloROphys, kPhi, fsegmentsinPhi, fcaloCell_dphi);
104 // then z division: 20 slices:
105 G4VSolid* caloROcellTub
106 = new G4Tubs("caloROcellTub", fcaloRing_rmin, fcaloRing_rmax,
108 G4LogicalVolume* caloROcellLog
109 = new G4LogicalVolume(caloROcellTub, dummyMat, "caloROcellLogical",0,0,0);
110 // G4VPhysicalVolume * caloROcellPhys =
111 new G4PVReplica("caloROcellPhysical", caloROcellLog, caloROphiDivisionPhys,
112 kZAxis, fsegmentsinZ, 2.*fcaloRing_dz);
113
114
115 //Flags the cells as sensitive .The pointer here serves
116 // as a flag only to check for sensitivity.
117 // (Could we make it by a simple cast of a non-NULL value ?)
118 ExN04DummySD * dummySensi = new ExN04DummySD;
119 caloROcellLog->SetSensitiveDetector(dummySensi);
120
121 return ROWorldPhys;
122}
G4double fcaloRing_rmin
G4double fcaloTubs_dz
G4double fcaloTubs_sphi
G4double fexpHall_z
G4int fsegmentsinZ
G4double fcaloTubs_rmax
G4double fcaloCell_rmax
G4double fcaloCell_dphi
G4double fcaloRing_dphi
G4int fsegmentsinPhi
G4double fexpHall_y
G4double fcaloCell_rmin
G4double fcaloCell_dz
G4double fcaloTubs_rmin
G4double fcaloRing_rmax
G4double fcaloRing_sphi
G4double fcaloTubs_dphi
G4double fcaloCell_sphi
G4double fexpHall_x
G4double fcaloRing_dz

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

Applications | User Support | Publications | Collaboration