StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEpdDbMaker.h
1 
2 #ifndef STEPDDBMAKER_H
3 #define STEPDDBMAKER_H
4 
5 #include "StMaker.h"
6 
7 // tables in STAR DB - those will be defined via the includes in the
8 // .cxx code - no need for forwrd declaration here
9 //struct epdQTMap_st;
10 //struct epdFEEMap_st;
11 //struct epdStatus_st;
12 //struct epdGain_st;
13 
14 class StEpdDbMaker : public StMaker{
15  public:
16  StEpdDbMaker(const Char_t *name="epdDb");
17  virtual ~StEpdDbMaker();
18  //virtual Int_t Init();
19  //virtual Int_t Make();
20  //virtual Int_t Finish();
21  virtual Int_t InitRun( Int_t runNumber );
22  //virtual void Clear(const Char_t *opt);
23 
24  void setDebug(Int_t debug){mDebug=debug;} // 0:minimal message, >0 more debug messages
25 
26  // epdQtMap table
27  short GetCrateAdc(short ew, short pp, short tile){return mCrateAdc[ew][pp-1][tile];}
28  short GetBoardAdc(short ew, short pp, short tile){return mBoardAdc[ew][pp-1][tile];}
29  short GetChannelAdc(short ew, short pp, short tile){return mChannelAdc[ew][pp-1][tile];}
30  short GetCrateTac(short ew, short pp, short tile){return mCrateTac[ew][pp-1][tile];}
31  short GetBoardTac(short ew, short pp, short tile){return mBoardTac[ew][pp-1][tile];}
32  short GetChannelTac(short ew, short pp, short tile){return mChannelTac[ew][pp-1][tile];}
33 
34  // epdFeeMap table
35  short GetTuffId(short ew, short pp, short tile){return mTuffId[ew][pp-1][tile];}
36  short GetTuffGroup(short ew, short pp, short tile){return mTuffGroup[ew][pp-1][tile];}
37  short GetTuffChannel(short ew, short pp, short tile){return mTuffChannel[ew][pp-1][tile];}
38  short GetReceiverBoard(short ew, short pp, short tile){return mReceiverBoard[ew][pp-1][tile];}
39  short GetReceiverBoardChannel(short ew, short pp, short tile){return mReceiverBoardChannel[ew][pp-1][tile];}
40  short GetCamacCrateAddress(short ew, short pp, short tile){return mCamacCrateAddress[ew][pp-1][tile];}
41  unsigned int* GetOneWireId(short ew, short pp, short tile){return mWireOneId[ew][pp-1][tile];}
42 
43  // epdStatus table
44  short GetStatus(short ew, short pp, short tile){return mStatus[ew][pp-1][tile];}
45 
46  // epdGain table
47  float GetVPed(short ew, short pp, short tile){return mVPed[ew][pp-1][tile];}
48  float GetMip(short ew, short pp, short tile){return mMip[ew][pp-1][tile];}
49  float GetQtPedestals(short ew, short pp, short tile){return mQtPedestals[ew][pp-1][tile];}
50  float GetDarkCurrent(short ew, short pp, short tile){return mDarkCurrent[ew][pp-1][tile];}
51  float GetQtPedestalsSigma(short ew, short pp, short tile){return mQtPedestalsSigma[ew][pp-1][tile];}
52  float GetOffset(short ew, short pp, short tile){return mOffset[ew][pp-1][tile];}
53 
54  protected:
55 
56  private:
57  void ResetArrays();
58  Int_t mDebug;
59 
60  short mCrateAdc[2][12][32];
61  short mBoardAdc[2][12][32];
62  short mChannelAdc[2][12][32];
63  short mCrateTac[2][12][32];
64  short mBoardTac[2][12][32];
65  short mChannelTac[2][12][32];
66 
67  short mTuffId[2][12][32];
68  short mTuffGroup[2][12][32];
69  short mTuffChannel[2][12][32];
70  short mReceiverBoard[2][12][32];
71  short mReceiverBoardChannel[2][12][32];
72  short mCamacCrateAddress[2][12][32];
73  unsigned int mWireOneId[2][12][32][2];
74 
75  short mStatus[2][12][32];
76 
77  float mVPed[2][12][32];
78  float mMip[2][12][32];
79  float mQtPedestals[2][12][32];
80  float mDarkCurrent[2][12][32];
81  float mQtPedestalsSigma[2][12][32];
82  float mOffset[2][12][32];
83 
84  virtual const Char_t *GetCVS() const {static const Char_t cvs[]="Tag " __DATE__ " " __TIME__ ; return cvs;}
85  ClassDef(StEpdDbMaker,1);
86 };
87 #endif
virtual Int_t InitRun(Int_t runNumber)