StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
StiDetectorBuilder Class Reference

#include <StiDetectorBuilder.h>

Inheritance diagram for StiDetectorBuilder:
Named StiIstDetectorBuilder StiIstDetectorBuilder StiMasterDetectorBuilder StiPixelDetectorBuilder StiPxlDetectorBuilder StiSsdDetectorBuilder StiSstDetectorBuilder StiStarDetectorBuilder StiSvtDetectorBuilder StiTpcDetectorBuilder

Public Member Functions

 StiDetectorBuilder (const string &name, bool active)
 
detectorMap getDetectors ()
 
virtual StiMaterialadd (StiMaterial *material)
 
virtual StiShapeadd (StiShape *shape)
 
virtual StiDetectoradd (StiDetector *detector)
 
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 bool hasMore () const
 
virtual StiDetectornext ()
 
virtual void build (StMaker &source)
 
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.
 

Static Public Member Functions

static void setDebug (int m=0)
 
static int debug ()
 
static StiDetectorBuilderGetCurrentDetectorBuilder ()
 
static void MakeAverageVolume (TGeoPhysicalNode *nodeP)
 

Protected Attributes

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

static StiDetectorBuilderfCurrentDetectorBuilder = 0
 
static int _debug = 0
 

Friends

ostream & operator<< (ostream &os, const DetectorMapPair &detMapEntry)
 

Additional Inherited Members

- Protected Member Functions inherited from Named
 Named (const string &aName=" ")
 Only derived class are Named.
 

Detailed Description

Class defines the notion of a detector builder. It creates the various components of a detector and set their shape, placement, and material properties.

Author
Ben Norman (Kent State University) Aug 1, 2001
Claude Pruneau (Wayne State University) Oct 16, 2002

Definition at line 42 of file StiDetectorBuilder.h.

Member Function Documentation

StiDetector * StiDetectorBuilder::add ( StiDetector detector)
virtual

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

Reimplemented in StiMasterDetectorBuilder.

Definition at line 119 of file StiDetectorBuilder.cxx.

References StiHit::detector(), and Named::getName().

UInt_t StiDetectorBuilder::getNSectors ( UInt_t  row = 0) const
virtual

Returns the number of sectors (or segments) in a the given row. Sector are expected to be azimuthally distributed.

Definition at line 325 of file StiDetectorBuilder.cxx.

virtual void StiDetectorBuilder::setNRows ( UInt_t  nRows)
inlinevirtual

Returns the number of active rows in the detector Rows can be counted radially or longitudinally

Definition at line 61 of file StiDetectorBuilder.h.

Referenced by StiMasterDetectorBuilder::build(), StiPixelDetectorBuilder::buildDetectors(), and StiSsdDetectorBuilder::buildDetectors().


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