#include <EDepSimBuilder.hh>
Public Member Functions | |
Builder (G4String n, EDepSim::UserDetectorConstruction *c) | |
Builder (G4String n, EDepSim::Builder *parent) | |
virtual | ~Builder () |
virtual G4LogicalVolume * | GetPiece (void)=0 |
G4String | GetName (void) |
Return the base name of the object that this builds. More... | |
G4String | GetLocalName (void) |
Return the base name of the object that this builds. More... | |
void | SetLocalName (const G4String &name) |
Set the base name of the logical volume that this builds. More... | |
void | SetOpacity (double v) |
Set the relative opacity of the constructed object. More... | |
double | GetOpacity (void) const |
Get the relative opacity of the constructed object. More... | |
void | SetDaughterOpacity (double v) |
Set the relative opacity of the object daughters. More... | |
EDepSim::UserDetectorConstruction * | GetConstruction (void) |
Return the detector construction that is building this piece. More... | |
virtual void | SetSensitiveDetector (G4VSensitiveDetector *s) |
Set the sensitive detector for this component. More... | |
virtual G4VSensitiveDetector * | GetSensitiveDetector (void) |
Get the sensitive detector for this component. More... | |
virtual void | SetSensitiveDetector (G4String name, G4String type) |
Set the sensitive detector for this component by name. More... | |
virtual void | SetMaximumHitSagitta (double sagitta) |
virtual void | SetMaximumHitLength (double length) |
Set the maximum length of a single hit segment. More... | |
G4UImessenger * | GetMessenger (void) |
Return the messenger for this constructor. More... | |
void | SetMessenger (G4UImessenger *m) |
Set the messenger for this constructor. More... | |
void | AddBuilder (EDepSim::Builder *c) |
template<class T > | |
T & | Get (G4String n) |
template<class T > | |
T * | Find (G4String n) |
bool | Check () |
void | SetCheck (bool v) |
Set the check value. More... | |
Protected Member Functions | |
G4Material * | FindMaterial (G4String m) |
G4VisAttributes | GetColor (G4LogicalVolume *volume, double opacity=0.0) |
G4VisAttributes | GetColor (G4Material *volume, double opacity=0.0) |
Private Attributes | |
G4String | fLocalName |
The short local name of the constructor. More... | |
G4String | fName |
The name of the constructor. More... | |
EDepSim::UserDetectorConstruction * | fConstruction |
The G4VUserDetectorConstruction class that this is cooperating with. More... | |
EDepSim::Builder * | fParent |
The parent of this constructor. More... | |
G4UImessenger * | fMessenger |
The user interface messenger that will provide values for this class. More... | |
G4VSensitiveDetector * | fSensitiveDetector |
The sensitive detector for this tracking component. More... | |
double | fOpacity |
The relative opacity of the constructed object. More... | |
bool | fCheck |
If this is true, then check the constructed object for overlaps. More... | |
std::map< G4String, EDepSim::Builder * > | fSubBuilders |
The sub constructors that might be used in this class. More... | |
Definition at line 46 of file EDepSimBuilder.hh.
EDepSim::Builder::Builder | ( | G4String | n, |
EDepSim::UserDetectorConstruction * | c | ||
) |
Definition at line 11 of file EDepSimBuilder.cc.
EDepSim::Builder::Builder | ( | G4String | n, |
EDepSim::Builder * | parent | ||
) |
Definition at line 19 of file EDepSimBuilder.cc.
|
virtual |
Definition at line 30 of file EDepSimBuilder.cc.
|
inline |
Add a new sub constructor to the current geometry constructor. This should be done in the derived class ctor. All geometry constructors that will be used by the derived class should be added using this method.
Definition at line 113 of file EDepSimBuilder.hh.
|
inline |
This returns true if the interior objects should be checked for overlaps.
Definition at line 166 of file EDepSimBuilder.hh.
|
inline |
Find a sub constructor by name and do the dynamic cast. This returns a pointer that will be NULL if you request an undefined name.
Definition at line 156 of file EDepSimBuilder.hh.
|
protected |
Definition at line 37 of file EDepSimBuilder.cc.
|
inline |
Get a sub constructor by name and do the dynamic cast. This will abort with an error message if you request an undefined name.
Definition at line 126 of file EDepSimBuilder.hh.
|
protected |
Takes logical volume and returns the visual attributes. The optional argument specifies the log of the relative opacity used for this specific set of attributes. If the relative opacity is 0, then the default alpha is used. If the relative opacity is positive, then the alpha is increased, and if it's negative, the alpha is decreased. If the relative opacity is 10, then the object will have an alpha of 1.0. If it's -10, then the object will have an alpha of zero (i.e. invisible).
Definition at line 184 of file EDepSimBuilder.cc.
|
protected |
Takes a material and returns the attributes. The optional argument specifies the log of the relative opacity used for this specific set of attributes. If the relative opacity is 0, then the default alpha is used. If the relative opacity is positive, then the alpha is increased, and if it's negative, the alpha is decreased. If the relative opacity is 10, then the object will have an alpha of 1.0. If it's -10, then the object will have an alpha of zero (i.e. invisible).
Definition at line 167 of file EDepSimBuilder.cc.
|
inline |
Return the detector construction that is building this piece.
Definition at line 77 of file EDepSimBuilder.hh.
|
inline |
Return the base name of the object that this builds.
Definition at line 62 of file EDepSimBuilder.hh.
|
inline |
Return the messenger for this constructor.
Definition at line 102 of file EDepSimBuilder.hh.
G4String EDepSim::Builder::GetName | ( | void | ) |
Return the base name of the object that this builds.
Definition at line 42 of file EDepSimBuilder.cc.
|
inline |
Get the relative opacity of the constructed object.
Definition at line 71 of file EDepSimBuilder.hh.
|
pure virtual |
Construct and return a G4 volume for the object. This is a pure virtual function, which means it must be implemented by the inheriting classes. This returns an unplaced logical volume which faces along the Z axis.
Implemented in EDepSim::ModuleBuilder, CaptCryostatBuilder, CaptWirePlaneBuilder, CaptDriftRegionBuilder, CaptExposedBuilder, CaptImmersedBuilder, MiniCaptExposedBuilder, MiniCaptImmersedBuilder, CaptPMTBuilder, and CaptWorldBuilder.
Definition at line 32 of file EDepSimBuilder.cc.
|
inlinevirtual |
Get the sensitive detector for this component.
Definition at line 87 of file EDepSimBuilder.hh.
|
inline |
Set the check value.
Definition at line 169 of file EDepSimBuilder.hh.
void EDepSim::Builder::SetDaughterOpacity | ( | double | v | ) |
Set the relative opacity of the object daughters.
Set the visibility of the constructed object.
Definition at line 65 of file EDepSimBuilder.cc.
void EDepSim::Builder::SetLocalName | ( | const G4String & | name | ) |
Set the base name of the logical volume that this builds.
Set the local name of the object to be built. The local name of the logical volume being set, and also sets the full name of the volume.
Definition at line 48 of file EDepSimBuilder.cc.
|
virtual |
Set the maximum length of a single hit segment.
Definition at line 210 of file EDepSimBuilder.cc.
|
virtual |
Set the maximum sagitta for a track being added to a single hit segment.
Definition at line 195 of file EDepSimBuilder.cc.
|
inline |
Set the messenger for this constructor.
Definition at line 105 of file EDepSimBuilder.hh.
void EDepSim::Builder::SetOpacity | ( | double | v | ) |
Set the relative opacity of the constructed object.
Set the visibility of the constructed object.
Definition at line 56 of file EDepSimBuilder.cc.
|
inlinevirtual |
Set the sensitive detector for this component.
Definition at line 82 of file EDepSimBuilder.hh.
|
virtual |
Set the sensitive detector for this component by name.
Definition at line 190 of file EDepSimBuilder.cc.
|
private |
If this is true, then check the constructed object for overlaps.
Definition at line 216 of file EDepSimBuilder.hh.
|
private |
The G4VUserDetectorConstruction class that this is cooperating with.
Definition at line 201 of file EDepSimBuilder.hh.
|
private |
The short local name of the constructor.
Definition at line 195 of file EDepSimBuilder.hh.
|
private |
The user interface messenger that will provide values for this class.
Definition at line 207 of file EDepSimBuilder.hh.
|
private |
The name of the constructor.
Definition at line 198 of file EDepSimBuilder.hh.
|
private |
The relative opacity of the constructed object.
Definition at line 213 of file EDepSimBuilder.hh.
|
private |
The parent of this constructor.
Definition at line 204 of file EDepSimBuilder.hh.
|
private |
The sensitive detector for this tracking component.
Definition at line 210 of file EDepSimBuilder.hh.
|
private |
The sub constructors that might be used in this class.
Definition at line 219 of file EDepSimBuilder.hh.