StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFmsOfflineQaMaker.h
1 // \class StFmsOfflineQaMaker
2 // \author Akio Ogawa
3 //
4 // This is for FMS offline QA
5 //
6 // $Id: StFmsOfflineQaMaker.h,v 1.2 2016/06/08 19:55:11 akio Exp $
7 // $Log: StFmsOfflineQaMaker.h,v $
8 // Revision 1.2 2016/06/08 19:55:11 akio
9 // applying coverity report
10 //
11 // Revision 1.1 2016/01/26 19:54:33 akio
12 // Separated from StFmsFpsMaker... This is for FMS offline QA and also FMS-FPS alignments
13 //
14 
15 #ifndef STAR_StFmsOfflineQaMaker_HH
16 #define STAR_StFmsOfflineQaMaker_HH
17 
18 #include "StMaker.h"
19 #include "StEnumerations.h"
20 
21 class StFmsDbMaker;
22 class StFmsCollection;
23 class TH2F;
24 
26 public:
27  StFmsOfflineQaMaker(const Char_t* name="FmsOfflineQaMaker");
29  Int_t Init();
30  Int_t Make();
31  Int_t Finish();
32 
33  void setFileName(char* file){mFilename=file;}
34 
35  void setPrint(int v=1){mPrint=v;}
36  void print();
37 
38 private:
39  StFmsDbMaker* mFmsDbMaker=0;
40  StFmsCollection* mFmsColl=0;
41  int mBunch=0;
42  int mTrigger=0;
43 
44  char* mFilename=0;
45  TFile* mFile=0;
46  int mPrint=0;
47 
48  //QA & alignment related
49  enum {NCUT1=10};
50  enum {NCUT2=11};
51 
52  //total energy ratio
53  TH1F* mERatio[2];
54  TH1F* mBC=0;
55  TH1F* mTrig[2];
56 
57  //hit related
58  TH1F* mFmsAdc=0;
59  TH2F* mFmsHitLarge[2];
60  TH2F* mFmsHitSmall[2];
61  TH1F* mFpsMip[3];
62 
63  //cluster related
64  TH1F* mNTow[2];
65  TH2F* mNTowE[2];
66  TH1F* mSigmax[2];
67  TH1F* mSigmin[2];
68  TH2F* mSigmaxE[2];
69  TH1F* mChi2[2];
70  TH2F* mCluXY[2][2];
71  TH1F* mCluEta[6];
72 
73  //point related
74  TH2F* mH2[kFpsNQuad][kFpsNLayer][NCUT1];
75  TH1F* mHd[kFpsNQuad][kFpsNLayer][NCUT1];
76  TH2F* mHd2[kFpsNQuad][kFpsNLayer][NCUT1];
77 
78  TH1F* mHn[NCUT1];
79  TH1F* mHene[NCUT1];
80  TH1F* mHelo[NCUT1];
81  TH1F* mHpt[NCUT1];
82  TH2F* mHept[NCUT1];
83  TH1F* mHeta[NCUT1];
84  TH1F* mHphi[NCUT1];
85  TH1F* mHx[NCUT1];
86  TH1F* mHy[NCUT1];
87  TH1F* mHdxL[NCUT1];
88  TH1F* mHdxS[NCUT1];
89  TH2F* mHxy[NCUT1];
90  TH1F* mHpid[NCUT1];
91  TH1F* mHpid2[NCUT1];
92 
93  TH1F* mPn[NCUT2];
94  TH1F* mPene[NCUT2];
95  TH1F* mPpt[NCUT2];
96  TH2F* mPept[NCUT2];
97  TH1F* mPeta[NCUT2];
98  TH1F* mPphi[NCUT2];
99  TH2F* mPpid[NCUT2];
100  TH1F* mPm1[NCUT2];
101  TH1F* mPm2[NCUT2];
102  TH1F* mPzgg[NCUT2];
103  TH1F* mPdgg[NCUT2];
104  TH1F* mPr30[NCUT2];
105  TH1F* mPr100[NCUT2];
106  TH2F* mPxy[NCUT2];
107 
108  virtual const char *GetCVS() const
109  {static const char cvs[]="Tag $Name: $ $Id: StFmsOfflineQaMaker.h,v 1.2 2016/06/08 19:55:11 akio Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
110 
111  ClassDef(StFmsOfflineQaMaker,0);
112 };
113 
114 #endif