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

#include <RE06ParallelWorld.hh>

Inheritance diagram for RE06ParallelWorld:
Collaboration diagram for RE06ParallelWorld:

Public Member Functions

 RE06ParallelWorld (G4String worldName)
 
virtual ~RE06ParallelWorld ()
 
virtual void Construct ()
 
virtual void ConstructSD ()
 
void SetSerialGeometry (G4bool ser)
 
G4bool IsSerial () const
 
- 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 41 of file RE06ParallelWorld.hh.

Constructor & Destructor Documentation

RE06ParallelWorld::RE06ParallelWorld ( G4String  worldName)

Definition at line 56 of file RE06ParallelWorld.cc.

57 :G4VUserParallelWorld(worldName),
58  fConstructed(false),
59  fSerial(false),
60  fTotalThickness(2.0*m),
61  fNumberOfLayers(20)
62 {
63  for(size_t i=0;i<3;i++)
64  {
65  fCalorLogical[i] = 0;
66  fLayerLogical[i] = 0;
67  fCalorPhysical[i] = 0;
68  fLayerPhysical[i] = 0;
69  }
70  fCalName[0] = "Calor-AP";
71  fCalName[1] = "Calor-BP";
72  fCalName[2] = "Calor-CP";
73 }
static constexpr double m
Definition: G4SIunits.hh:129
G4VUserParallelWorld(G4String worldName)
RE06ParallelWorld::~RE06ParallelWorld ( )
virtual

Definition at line 77 of file RE06ParallelWorld.cc.

78 {;}

Member Function Documentation

void RE06ParallelWorld::Construct ( void  )
virtual

Implements G4VUserParallelWorld.

Definition at line 82 of file RE06ParallelWorld.cc.

83 {
84  if(!fConstructed)
85  {
86  fConstructed = true;
87  SetupGeometry();
88  }
89 }
void RE06ParallelWorld::ConstructSD ( )
virtual

Reimplemented from G4VUserParallelWorld.

Definition at line 93 of file RE06ParallelWorld.cc.

94 {
95  if(!fSDConstructed)
96  {
97  fSDConstructed = true;
98  SetupDetectors();
99  }
100 }
G4bool RE06ParallelWorld::IsSerial ( ) const
inline

Definition at line 51 of file RE06ParallelWorld.hh.

51 { return fSerial; }
void RE06ParallelWorld::SetSerialGeometry ( G4bool  ser)

Definition at line 201 of file RE06ParallelWorld.cc.

202 {
203  if(fSerial==serial) return;
204  fSerial=serial;
205  if(!fConstructed) return;
206  for(G4int i=0;i<3;i++)
207  {
208  if(fSerial)
209  {
210  fCalorPhysical[i]
211  ->SetTranslation(G4ThreeVector(0.,0.,G4double(i-1)*2.*m));
212  }
213  else
214  {
215  fCalorPhysical[i]
216  ->SetTranslation(G4ThreeVector(0.,G4double(i-1)*m,0.));
217  }
218  }
219 }
CLHEP::Hep3Vector G4ThreeVector
int G4int
Definition: G4Types.hh:78
static constexpr double m
Definition: G4SIunits.hh:129
void SetTranslation(const G4ThreeVector &v)
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:


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