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

#include <RE06ParallelWorld.hh>

Inheritance diagram for RE06ParallelWorld:
G4VUserParallelWorld

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 54 of file RE06ParallelWorld.cc.

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

Definition at line 75 of file RE06ParallelWorld.cc.

76 {;}

Member Function Documentation

void RE06ParallelWorld::Construct ( void  )
virtual

Implements G4VUserParallelWorld.

Definition at line 80 of file RE06ParallelWorld.cc.

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

Reimplemented from G4VUserParallelWorld.

Definition at line 92 of file RE06ParallelWorld.cc.

93 {
94  SetupDetectors();
95 }
G4bool RE06ParallelWorld::IsSerial ( ) const
inline

Definition at line 51 of file RE06ParallelWorld.hh.

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

Definition at line 196 of file RE06ParallelWorld.cc.

References python.hepunit::m, and G4VPhysicalVolume::SetTranslation().

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

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