49 #include "G4PVPlacement.hh" 50 #include "G4VSensitiveDetector.hh" 51 #include "G4VSolid.hh" 52 #include "G4VisManager.hh" 102 G4LogicalVolume* LogicV;
103 G4VPhysicalVolume* PhysicalV;
117 void AssignMFM(G4FieldManager* MFM){LogicV->SetFieldManager(MFM,
true);}
friend ostream & operator<<(ostream &stream, detector)
Overloaded "<<" for detector class. Dumps infos on screen.
G4LogicalVolume * GetLogical()
Returns Logical Volume pointer.
int create_logical_volume(map< string, G4Material * > *, goptions)
Creates the Logical Volume.
string sensitivity
Defines the Sensitive Detector. possible choices: "no" "hits collection name".
string mother
Mother Volume name.
void AssignMFM(G4FieldManager *MFM)
Assigns Magnetic Field Manager to LogicV.
int run
run number that generated the detector
G4ThreeVector pos
Position relative to the mother volume, as G4ThreeVector.
int create_physical_volumes(goptions, G4LogicalVolume *)
Creates the Physical Volume.
string system
detector system
bool operator==(const detector &D) const
Overloaded "==" operator for detector class.
G4VisAttributes VAtts
Visual Attributes: color, transparency, style (wireframe, solid), visibility.
void SetTranslation(G4ThreeVector TR)
Sets Physical Volume Position.
bool pMany
Needed by geant4 at G4PVPlacement time.
int create_solid(goptions, map< string, detector > *)
Creates the Solid. If it's a Copy Placement, retrieve and assigns LogicV.
string factory
factory that generated the detector
string name
Name of the volume. Since this is the key of the STL map, it has to be unique.
string material
Volume Material name.
void SetUserLimits(G4UserLimits *L)
int visible
visibility of the detector: 0=invisible 1=visible
int style
Visual style: 0=wireframe 1=solid.
string hitType
Hit Process routine name. A Hit Process HitProcess derived class must exists with this name...
vector< identifier > identity
Vector of identifiers. Example: superlayer manual 1 type manual 2 segment manual 3 strip manual 4...
string magfield
Magnetic Field. The string "no" means that the field is inherited from the mother volume...
G4RotationMatrix rot
Rotation Matrix, defined by rotations along x,y,z axis relative to the mother volume.
int exist
detector ON/OFF switch
G4VSolid * GetSolid()
Returns G4 Solid pointer.
G4VPhysicalVolume * GetPhysical()
Returns Physical Volume pointer.
void SetLogical(G4LogicalVolume *LV)
Sets Logical Volume pointer.
string type
solid type. This follows the GEANT4 definitions
vector< double > dimensions
vector of dimensions. Size, units depends on solid type
int scanned
for use during construction
string variation
variation that generated the detector
void RemoveDaughter(G4VPhysicalVolume *PV)
Remove Physical Volumes from LogicV.
void setSensitivity(G4VSensitiveDetector *SD)
Assign the sensitive detector to the Logical Volume.
string description
Volume Description for documentation.