StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiIstDetectorBuilder.h
1 #ifndef StiIstDetectorBuilder_h
2 #define StiIstDetectorBuilder_h
3 
4 #include "TGeoMatrix.h"
5 #include "TVector3.h"
6 
7 #include "Sti/StiDetectorBuilder.h"
8 
9 class StIstDb;
10 class StiDetector;
11 class StiIsActiveFunctor;
12 class StiShape;
13 class StiPlacement;
14 class StiMaterial;
15 
16 
25 {
26 public:
27 
28  StiIstDetectorBuilder(bool active, bool buildIdealGeom = true);
29  virtual void buildDetectors(StMaker &source);
30  virtual void useVMCGeometry();
31  const StiDetector* getActiveDetector(int ladder, int sensorHalf) const;
32 
33 protected:
34 
35  virtual void buildInactiveVolumes();
36 
38  static std::string formTGeoPath(int ladder, int sensor);
39 
40  bool mBuildIdealGeom;
41  StIstDb *mIstDb;
42 };
43 
44 #endif
virtual void buildDetectors(StMaker &source)
const StiDetector * getActiveDetector(int ladder, int sensorHalf) const
static std::string formTGeoPath(int ladder, int sensor)
Returns a TGeo path to the sensor in the given ladder.
StiIstDetectorBuilder(bool active, bool buildIdealGeom=true)
function object for determine a detector's active regions