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

#include <XrayTelDetectorConstruction.hh>

Inheritance diagram for XrayTelDetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 XrayTelDetectorConstruction ()
 
 ~XrayTelDetectorConstruction ()
 
G4VPhysicalVolumeConstruct ()
 
- Public Member Functions inherited from G4VUserDetectorConstruction
 G4VUserDetectorConstruction ()
 
virtual ~G4VUserDetectorConstruction ()
 
virtual void ConstructSDandField ()
 
virtual void CloneSD ()
 
virtual void CloneF ()
 
void RegisterParallelWorld (G4VUserParallelWorld *)
 
G4int ConstructParallelGeometries ()
 
void ConstructParallelSD ()
 
G4int GetNumberOfParallelWorld () const
 
G4VUserParallelWorldGetParallelWorld (G4int i) const
 

Additional Inherited Members

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

Detailed Description

Definition at line 59 of file XrayTelDetectorConstruction.hh.

Constructor & Destructor Documentation

XrayTelDetectorConstruction::XrayTelDetectorConstruction ( )

Definition at line 74 of file XrayTelDetectorConstruction.cc.

References python.hepunit::cm.

75 {
76  world_x = 2500.*cm;
77  world_y = 2500.*cm;
78  world_z = 2500.*cm;
79 }
XrayTelDetectorConstruction::~XrayTelDetectorConstruction ( )

Definition at line 81 of file XrayTelDetectorConstruction.cc.

82 {;}

Member Function Documentation

G4VPhysicalVolume * XrayTelDetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 84 of file XrayTelDetectorConstruction.cc.

References python.hepunit::cm3, g(), G4VisAttributes::Invisible, python.hepunit::kelvin, kStateGas, python.hepunit::mole, and pascal.

85 {
86 
87  // Material: Vacuum
88  G4Material* Vacuum = new G4Material("Vacuum",
89  1.0 , 1.01*g/mole, 1.0E-25*g/cm3,
90  kStateGas, 2.73*kelvin, 3.0E-18*pascal );
91 
92  // Visualization attributes
93  G4VisAttributes* VisAttWorld= new G4VisAttributes( G4Colour(204/255.,255/255.,255/255.));
94 
95  // World
96  G4Box * solidWorld = new G4Box( "world_S", world_x, world_y, world_z );
97  G4LogicalVolume * logicalWorld = new G4LogicalVolume( solidWorld, // solid
98  Vacuum, // material
99  "world_L", // name
100  0,0,0);
101 
102  logicalWorld -> SetVisAttributes(VisAttWorld);
103 
104  // Physical volume
105  physicalWorld= new G4PVPlacement( 0,
106  G4ThreeVector(),
107  "world_P", // name (2nd constructor)
108  logicalWorld, // logical volume
109  NULL, // mother volume
110  false, // no boolean operation
111  0); // copy number
112 
113  // Make Invisible
114  logicalWorld -> SetVisAttributes(G4VisAttributes::Invisible);
115 
116  // Construct geometry
117  ConstructTelescope();
118  ConstructFocalPlane();
119 
120  return physicalWorld;
121 }
CLHEP::Hep3Vector G4ThreeVector
Definition: G4Box.hh:63
function g(Y1, Y2, PT2)
Definition: hijing1.383.f:5205
#define pascal
static const G4VisAttributes Invisible

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