StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSsdDbMaker.h
1 // $Id: StSsdDbMaker.h,v 1.11 2014/12/05 21:59:25 smirnovd Exp $
2 //
3 // $Log: StSsdDbMaker.h,v $
4 // Revision 1.11 2014/12/05 21:59:25 smirnovd
5 // Fixed style with astyle -s3 -p -H -A3 -k3 -O -o -y -Y -f
6 //
7 // Revision 1.10 2014/08/06 11:43:43 jeromel
8 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
9 //
10 // Revision 1.9 2008/08/12 22:45:47 bouchet
11 // use of SsdLaddersOnSectors,SsdOnGlobal,SsdSectorsOnGlobal,SsdWafersOnLadders tables to calculate ssdWafersPositions;add Get methods to access the tables
12 //
13 // Revision 1.8 2007/09/25 13:36:55 bouchet
14 // add m_Mode to constructor
15 //
16 // Revision 1.7 2007/03/21 17:17:16 fisyak
17 // use TGeoHMatrix for coordinate transformation, eliminate ssdWafersPostion
18 //
19 // Revision 1.6 2006/10/16 19:53:24 fisyak
20 // Adjust for new Ssd chain
21 //
22 // Revision 1.5 2005/06/20 14:21:38 lmartin
23 // CVS tags added
24 //
25 
26 /***************************************************************************
27  * Author: christelle roy
28  * Description: SSD DB access Maker
29  **************************************************************************/
30 
31 #ifndef STSSDDBMAKER_H
32 #define STSSDDBMAKER_H
33 
34 #ifndef StMaker_H
35 #include "StMaker.h"
36 #endif
37 class St_ssdDimensions;
38 class St_ssdWafersPosition;
39 class St_slsCtrl;
40 class slsCtrl_st;
41 class ssdConfiguration_st;
42 #include "StSsdUtil/StSsdBarrel.hh"
43 #include "THashList.h"
44 
45 class StSsdDbMaker : public StMaker
46 {
47 private:
48  StSsdBarrel *mySsd;
49  St_ssdDimensions *m_dimensions;
50  St_ssdWafersPosition *m_positions;
51  ssdConfiguration_st *m_config;
52  slsCtrl_st *m_ctrl;
53  Int_t mode;
54  static THashList *fRotList;
55 
56 public:
57  StSsdDbMaker(const char *name = "SsdDb");
58  virtual ~StSsdDbMaker();
59  virtual Int_t Init();
60  virtual Int_t InitRun(Int_t runNumber);
61  virtual Int_t Make();
62  virtual Int_t Finish();
63  virtual void Clear(const char *opt);
64  virtual THashList *GetRotations() {return fRotList;}
65  virtual St_ssdWafersPosition *CalculateWafersPosition();
66  virtual StSsdBarrel *GetSsd() {return mySsd;}
67  virtual slsCtrl_st *GetSlsCtrl() {return m_ctrl;}
68  virtual Int_t GetMode() {return mode;}
69  virtual St_ssdWafersPosition *GetssdWafersPos() {return m_positions;}
70  virtual St_ssdDimensions *GetssdDimensions() {return m_dimensions;}
71 
72  virtual const char *GetCVS() const
73  {static const char cvs[] = "Tag $Name: $ $Id: StSsdDbMaker.h,v 1.11 2014/12/05 21:59:25 smirnovd Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
74  ClassDef(StSsdDbMaker, 0) //StAF chain virtual base class for Makers
75 };
76 // Global pointers:
77 R__EXTERN StSsdDbMaker *gStSsdDbMaker;
78 #endif
79 
80 
virtual Int_t Make()
virtual Int_t Finish()