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

#include <StiPxlDetectorBuilder.h>

Inheritance diagram for StiPxlDetectorBuilder:
StiDetectorBuilder Named

Public Member Functions

 StiPxlDetectorBuilder (bool active, bool buildIdealGeom=true)
 
virtual void buildDetectors (StMaker &source)
 
virtual void useVMCGeometry ()
 
const StiDetectorgetActiveDetector (int sector, int ladder, int sensorHalf) const
 
- Public Member Functions inherited from StiDetectorBuilder
 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)
 
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)
 
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.
 

Protected Attributes

bool mBuildIdealGeom
 
StPxlDbmPxlDb
 
- 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
 

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.
 
- Static Protected Attributes inherited from StiDetectorBuilder
static StiDetectorBuilderfCurrentDetectorBuilder = 0
 
static int _debug = 0
 

Detailed Description

This detector builder is responsible for constructing sensitive and inactive Sti volumes describing the material of the PXL detector. The corresponding PXL detector geometry is described in AgML files in StarVMC/Geometry/

Author
Dmitri Smirnov, BNL

Definition at line 16 of file StiPxlDetectorBuilder.h.

Constructor & Destructor Documentation

StiPxlDetectorBuilder::StiPxlDetectorBuilder ( bool  active,
bool  buildIdealGeom = true 
)

Builds an object to direct the construction of Sti detectors/volumes.

Parameters
activeSet to true when accounting for hits in active volumes or false otherwise
buildIdealGeomSet to true (default) to ignore volume position transformation stored in the survey DB tables

Definition at line 41 of file StiPxlDetectorBuilder.cxx.

Member Function Documentation

void StiPxlDetectorBuilder::buildDetectors ( StMaker source)
virtual

Creates all Sti volumes of the PXL detector.

Reimplemented from StiDetectorBuilder.

Definition at line 51 of file StiPxlDetectorBuilder.cxx.

References TObjectSet::GetObject(), and useVMCGeometry().

const StiDetector * StiPxlDetectorBuilder::getActiveDetector ( int  sector,
int  ladder,
int  sensorHalf 
) const

Returns the active StiDetector corresponding to a sensitive layer in PXL. The StiDetector is normally created by this StiDetectorBuilder and identified by its sector, ladder, and sesortHalf id-s. An active volume can have hits associated with it. The ladder id is expected to follow the human friendly numbering scheme, i.e.

1 <= sector <= kNumberOfPxlSectors
1 <= ladder <= kNumberOfPxlLaddersPerSector
1 <= sensorHalf <= 2

Definition at line 184 of file StiPxlDetectorBuilder.cxx.

void StiPxlDetectorBuilder::useVMCGeometry ( )
virtual

Builds active Sti volumes by creating Sti shapes corresponding to the sensors of the PXL detector. The created Sti detectors are positioned using either the ideal (ROOT's TGeo gGeoManager) or missaligned geometry from the STAR database via object of the StPxlDb class.

Reimplemented from StiDetectorBuilder.

Definition at line 95 of file StiPxlDetectorBuilder.cxx.

References Factory< Abstract >::getInstance(), and StiDetector::setProperties().

Referenced by buildDetectors().


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