StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiPxlDetectorBuilder.h
1 #ifndef StiPxlDetectorBuilder_h
2 #define StiPxlDetectorBuilder_h
3 
4 #include "Sti/StiDetectorBuilder.h"
5 
6 class StPxlDb;
7 
8 
17 {
18 public:
19 
20  StiPxlDetectorBuilder(bool active, bool buildIdealGeom=true);
21  virtual void buildDetectors(StMaker &source);
22  virtual void useVMCGeometry();
23  const StiDetector* getActiveDetector(int sector, int ladder, int sensorHalf) const;
24 
25 protected:
26 
27  bool mBuildIdealGeom;
28  StPxlDb *mPxlDb;
29 
30 private:
31 
32  void buildInactiveVolumes();
33  static void convertSensor2StiId(int sector, int ladder, int sensorHalf, int& stiRow, int& stiSensor);
34 
36  static std::string formTGeoPath(int sector, int ladder, int sensor);
37 };
38 
39 #endif
virtual void buildDetectors(StMaker &source)
StiPxlDetectorBuilder(bool active, bool buildIdealGeom=true)
const StiDetector * getActiveDetector(int sector, int ladder, int sensorHalf) const