StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
StiMasterDetectorBuilder Class Reference
Inheritance diagram for StiMasterDetectorBuilder:
StiDetectorBuilder Named

Public Member Functions

 StiMasterDetectorBuilder (bool active)
 
virtual bool hasMore () const
 
virtual StiDetectornext ()
 
virtual void reset ()
 
virtual void unset ()
 
virtual void build (StMaker &source)
 
virtual void add (StiDetectorBuilder *builder)
 
virtual StiDetectorBuilderget (const string &name)
 
virtual StiMaterialadd (StiMaterial *material)
 
virtual StiShapeadd (StiShape *shape)
 
virtual StiDetectoradd (StiDetector *detector)
 
virtual StiDetectoradd (unsigned int row, unsigned int sector, StiDetector *detector)
 
- Public Member Functions inherited from StiDetectorBuilder
 StiDetectorBuilder (const string &name, bool active)
 
detectorMap getDetectors ()
 
virtual StiDetectoradd (UInt_t row, UInt_t sector, StiDetector *detector)
 
virtual void del (UInt_t row, UInt_t sector)
 
virtual StiMaterialfindMaterial (const string &szName) const
 
virtual StiShapefindShape (const string &szName) const
 
virtual StiDetectorfindDetector (const string &szName) const
 
virtual StiDetectorgetDetector (UInt_t layer, UInt_t sector) const
 
virtual void setDetector (UInt_t layer, UInt_t sector, StiDetector *detector)
 
virtual void setNRows (UInt_t nRows)
 
virtual UInt_t getNRows () const
 
virtual UInt_t getNSectors (UInt_t row=0) const
 
virtual void setNSectors (UInt_t row, UInt_t nSectors)
 
virtual void buildDetectors (StMaker &source)
 
double nice (double angle) const
 
void setGroupId (int id)
 
int getGroupId () const
 
StiTrackingParametersgetTrackingParameters ()
 
Factory< StiDetector > * getDetectorFactory ()
 
void SetCurrentDetectorBuilder (StiDetectorBuilder *m)
 
virtual void AverageVolume (TGeoPhysicalNode *nodeP)
 
virtual void useVMCGeometry ()
 
void setGasMat (StiMaterial *m)
 
StiMaterialgetGasMat ()
 
void setSplit (double relThick=0.5, int maxSplit=20)
 
void Print () const
 
- Public Member Functions inherited from Named
void setName (const string &newName)
 Set the name of the object.
 
const string & getName () const
 Get the name of the object.
 
bool isName (const string &aName) const
 Determine whether name equals given name.
 

Additional Inherited Members

- Static Public Member Functions inherited from StiDetectorBuilder
static void setDebug (int m=0)
 
static int debug ()
 
static StiDetectorBuilderGetCurrentDetectorBuilder ()
 
static void MakeAverageVolume (TGeoPhysicalNode *nodeP)
 
- Protected Member Functions inherited from Named
 Named (const string &aName=" ")
 Only derived class are Named.
 
- Protected Attributes inherited from StiDetectorBuilder
float mThkSplit
 
int mMaxSplit
 
int _groupId
 
bool _active
 
materialMap mMaterialMap
 
shapeMap mShapeMap
 
detectorMap mDetectorMap
 
detectorIterator mDetectorIterator
 
vector< vector< StiDetector * > > _detectors
 
Factory< StiDetector > * _detectorFactory
 
StiTrackingParameters_trackingParameters
 
StiMaterial_gasMat
 
- Protected Attributes inherited from Named
string _name
 
- Static Protected Attributes inherited from StiDetectorBuilder
static StiDetectorBuilderfCurrentDetectorBuilder = 0
 
static int _debug = 0
 

Detailed Description

Definition at line 6 of file StiMasterDetectorBuilder.h.

Member Function Documentation

virtual StiDetector* StiMasterDetectorBuilder::add ( StiDetector detector)
inlinevirtual

Add the given detector to the list of detectors known to this builder. Complete the "build" of this detector.

Reimplemented from StiDetectorBuilder.

Definition at line 20 of file StiMasterDetectorBuilder.h.

void StiMasterDetectorBuilder::build ( StMaker source)
virtual

Build all the detector groups and their elementary detector components registered with this builder.

Reimplemented from StiDetectorBuilder.

Definition at line 24 of file StiMasterDetectorBuilder.cxx.

References Named::getName(), and StiDetectorBuilder::setNRows().

bool StiMasterDetectorBuilder::hasMore ( ) const
virtual

Return true if this builder has not served all detector objects currently registered with it.

Reimplemented from StiDetectorBuilder.

Definition at line 85 of file StiMasterDetectorBuilder.cxx.

StiDetector * StiMasterDetectorBuilder::next ( )
virtual
Find and return the next available detector object registered with this builder. Return a null pointer if there are 

no detector object left to server.

Reimplemented from StiDetectorBuilder.

Definition at line 100 of file StiMasterDetectorBuilder.cxx.

void StiMasterDetectorBuilder::reset ( void  )
virtual

Reset this builder to a null state.

A reset erases all detectors held by this builder.

Definition at line 17 of file StiMasterDetectorBuilder.cxx.


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