StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSstDbMaker.h
1 #ifndef STSSTDBMAKER_H
2 #define STSSTDBMAKER_H
3 
4 #ifndef StMaker_H
5 #include "StMaker.h"
6 #endif
7 class St_sstWafersPosition;
8 class sstSlsCtrl_st;
9 class sstDimensions_st;
10 class sstConfiguration_st;
11 class sstMaskChip_st;
12 #include "StSstUtil/StSstBarrel.hh"
13 #include "THashList.h"
14 
15 class StSstDbMaker : public StMaker
16 {
17 private:
18  StSstBarrel *mySst;
19  sstDimensions_st *dimensions;
20  sstConfiguration_st *config;
21  sstSlsCtrl_st *ctrl;
22  Int_t mode;
23  EReturnCodes mReady;
24  static THashList *fRotList;
25  map<unsigned int,short> mMapMaskChips;
26 
27 public:
28  StSstDbMaker(const char *name = "SstDb");
29  virtual ~StSstDbMaker();
30  virtual Int_t InitRun(Int_t runNumber);
31  virtual Int_t Make();
32  virtual THashList *getRotations(){return fRotList;}
33  virtual St_sstWafersPosition *calculateWafersPosition();
34  virtual StSstBarrel *getSst(){return mySst;}
35  virtual sstSlsCtrl_st *getSlsCtrl(){return ctrl;}
36  virtual Int_t getMode(){return mode;}
37  virtual St_sstWafersPosition *getSstWafersPos(){return m_positions;}
38  virtual sstDimensions_st *getSstDimensions(){return dimensions;}
39 
40  static const TGeoHMatrix *getHMatrixSensorOnGlobal(int ladder, int sensor);
41 
42  Int_t maskChip(Int_t side, Int_t ladder, Int_t wafer, Int_t chip) const;
43  void setMaskChips(sstMaskChip_st *maskChipTable);
44  St_sstWafersPosition *m_positions;
45  virtual const char *GetCVS() const
46  {static const char cvs[] = "Tag $Name: $ $Id: StSstDbMaker.h,v 1.11 2016/05/31 21:51:59 bouchet Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
47  ClassDef(StSstDbMaker, 0) //StAF chain virtual base class for Makers
48 };
49 // Global pointers:
50 R__EXTERN StSstDbMaker *gStSstDbMaker;
51 #endif
52 
53 
EReturnCodes
Definition: Stypes.h:39
static const TGeoHMatrix * getHMatrixSensorOnGlobal(int ladder, int sensor)
virtual Int_t Make()