StiDetectorBuilder Class Reference

#include <StiDetectorBuilder.h>

Inheritance diagram for StiDetectorBuilder:

Named StiIstDetectorBuilder StiSsdDetectorBuilder StiStarDetectorBuilder

List of all members.

Public Member Functions

 StiDetectorBuilder (const string &name, bool active, const string &inputFile)
detectorMap getDetectors ()
virtual StiMaterial * add (StiMaterial *material)
virtual StiShapeadd (StiShape *shape)
virtual StiDetectoradd (StiDetector *detector)
virtual StiDetectoradd (unsigned int row, unsigned int sector, StiDetector *detector)
virtual StiMaterial * findMaterial (const string &szName) const
virtual StiShapefindShape (const string &szName) const
virtual StiDetectorfindDetector (const string &szName) const
virtual StiDetectorgetDetector (unsigned int layer, unsigned int sector) const
virtual void setDetector (unsigned int layer, unsigned int sector, StiDetector *detector)
virtual void setNRows (unsigned int nRows)
virtual unsigned int getNRows () const
virtual unsigned int getNSectors (unsigned int row=0) const
virtual void setNSectors (unsigned int row, unsigned int 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
void setTrackingParameters (const StiTrackingParameters &pars)
StiTrackingParameters * getTrackingParameters ()
Factory< StiDetector > * getDetectorFactory ()
void SetCurrentDetectorBuilder (StiDetectorBuilder *m)
virtual void AverageVolume (TGeoPhysicalNode *nodeP)
virtual void useVMCGeometry ()
void setGasMat (StiMaterial *m)
StiMaterial * getGasMat ()

Static Public Member Functions

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

Protected Attributes

int _groupId
bool _active
materialMap mMaterialMap
shapeMap mShapeMap
detectorMap mDetectorMap
detectorIterator mDetectorIterator
vector< vector< StiDetector * > > _detectors
Factory< StiDetector > * _detectorFactory
StiTrackingParameters * _trackingParameters
string _inputFile
StiMaterial * _gasMat

Static Protected Attributes

static StiDetectorBuilderfCurrentDetectorBuilder = 0
static int _debug = 0


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 41 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.

Definition at line 98 of file StiDetectorBuilder.cxx.

References Named::getName().

unsigned int StiDetectorBuilder::getNSectors ( unsigned int  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 266 of file StiDetectorBuilder.cxx.

virtual void StiDetectorBuilder::setNRows ( unsigned int  nRows  )  [inline, virtual]

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

Definition at line 59 of file StiDetectorBuilder.h.

Referenced by StiSsdDetectorBuilder::buildDetectors().


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

Generated on Fri Feb 10 04:28:07 2012 for StRoot by  doxygen 1.5.9