StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtDbFileMaker.h
1 #ifndef STAR_StFgtDbFileMaker
2 #define STAR_StFgtDbFileMaker
3 
4 #ifndef StMaker_H
5 #include "StMaker.h"
6 #endif
7 
8 #include "StFgtUtil/geometry/StFgtGeom.h"
9 #include "StRoot/StFgtUtil/StFgtConsts.h"
10 
11 class StFgtDbFileMaker : public StMaker {
12  private:
13 
14  Short_t disk,quad,strip;
15  Char_t layer;
16  Int_t rdo,arm,apv,apvMod,channel;
17  Int_t r_rdo, r_arm, r_apv, r_apvMod, r_channel;
18  Int_t geoId,electId, realElectId;
19  Int_t mapping[51200];
20 
21  Int_t getElectId(Int_t r, Int_t a, Int_t v, Int_t c);
22  void printIdealDbMappingFile();
23  void printRealDbMappingFile();
24  void printBigFgtGeomMap();
25  Int_t searchPhiStripId(Double_t);
26  Int_t searchRStripId_HighPhi(Double_t);
27  Int_t searchRStripId_LowPhi(Double_t);
28 
29  protected:
30 
31 
32  public:
33  StFgtDbFileMaker(const char *name="TLA");
34  virtual ~StFgtDbFileMaker();
35  virtual Int_t Init();
36  virtual Int_t Make();
37  virtual Int_t Finish();
38 
39  StFgtGeom *geom;
40 
41 
42  virtual const char *GetCVS() const {
43  static const char cvs[]="Tag $Name: $ $Id: StFgtDbFileMaker.h,v 1.3 2014/08/06 11:43:11 jeromel Exp $ built " __DATE__ " " __TIME__ ;
44  return cvs;
45  }
46 
47  ClassDef(StFgtDbFileMaker,0) //StAF chain virtual base class for Makers
48 };
49 
50 #endif
51 
virtual Int_t Finish()
virtual Int_t Make()
Make - this method is called in loop for each event.