StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFcsTrgQaMaker.h
1 /*
2  *
3  * \class StFcsTrgQaMaker
4  *
5  */
6 
7 #ifndef STAR_StFcsTrgQaMaker_HH
8 #define STAR_StFcsTrgQaMaker_HH
9 
10 #include "StMaker.h"
11 
12 class StFcsDb;
13 class StFcsCollection;
15 class TH1F;
16 class TH2F;
17 
18 class StFcsTrgQaMaker : public StMaker {
19 public:
20  StFcsTrgQaMaker( const Char_t* name = "FcsQA");
21  virtual ~StFcsTrgQaMaker();
22  virtual Int_t Init();
23  virtual Int_t Make();
24  virtual Int_t Finish();
25 
26  void setRun(int v) {mRun=v;}
27  void setFilename(char* file){mFilename=file;}
28  void setPtCh(float v) {mPtCh=v;}
29  void setEcalPtThr(float v) {mEcalPtThr=v;}
30  void setS3off(int v) {mS3off=v;}
31  void setS2off(int v) {mS2off=v;}
32 
33 protected:
34 
35 private:
36  StFcsDb *mFcsDb=0;
37  StFcsTriggerSimMaker *mFcsTrgSimMkr=0;
38  TFile *mFile=0;
39  char* mFilename=0;
40  int mRun=0;
41  float mPtCh=0.0316;
42  float mEcalPtThr=1.5;
43 
44  //marker.adc_start = 7
45  //marker.s1_out_start = marker.adc_start + 11 = 18
46  //marker.s2_in_start = marker.s1_out_start + 2 = 20
47  //marker.s2_to_s3_start = marker.s2_in_start + 15 = 35
48  //marker.s3_in_start = marker.s2_to_s3_start + 8 = 43
49  //marker.dsm_out_start=marker.s3_in_start + 14 = 57
50  //So... DEPIO DSM out is 50 tb later than ADC
51  //center trig tb=50 => tb=47~54 and 47=marker.adc_start(7)+5xing*8tb/xing
52  //Thus.... mS3off=47+50 = 97
53  int mS3off=97;
54  int mS2off=97; //Tonko says same as S3off
55 
56  TH2F* mTow[2];
57 
58  TH1F* mETot[2];
59  TH1F* mHTot[2];
60 
61  TH1F* mEHT[2];
62  TH2F* mEHTMap;
63  TH1F* mHHT[2];
64  TH2F* mHHTMap;
65 
66  TH1F* mJP[2][5];
67  TH1F* mJPMap[3];
68 
69  TH1F* mE4x4;
70  TH1F* mEM4x4;
71  TH1F* mELE4x4;
72  TH1F* mERatio;
73  TH1F* mELERatio;
74 
75  TH1F* mH4x4;
76  TH1F* mEH4x4;
77  TH1F* mHAD4x4;
78  TH1F* mHRatio;
79  TH1F* mHADRatio;
80 
81  TH2F* mE4x4Map[4];
82  TH2F* mELE4x4Map[2];
83  TH2F* mEH4x4Map[3];
84 
85  TH1F* mDsmOut;
86  TH1F* mDepOut;
87  TH1F* mTcuBit;
88  TH1F* mTcuDep;
89  TH1F* mSimDep;
90 
91  TH2F* mAdc[6];
92 
93  ClassDef(StFcsTrgQaMaker,1);
94 };
95 
96 #endif
97 
98 /*
99  * $Id: StFcsTrgQaMaker.h,v 1.5 2021/05/30 21:41:59 akio Exp $
100  * $Log: StFcsTrgQaMaker.h,v $
101  * Revision 1.5 2021/05/30 21:41:59 akio
102  * A lots of update for trigger comissionong Run21 OO200
103  *
104  * Revision 1.4 2021/03/30 13:31:27 akio
105  * StFcsDbMAker->StFcsDB
106  *
107  * Revision 1.3 2020/07/24 17:21:31 akio
108  * adding hist for DsmOut
109  *
110  * Revision 1.2 2020/06/01 19:34:41 akio
111  * adding normarization histo
112  *
113  * Revision 1.1 2020/05/29 18:59:32 akio
114  * Initial version of FCS Trigger QA maker
115  *
116  *
117  */
virtual Int_t Finish()
virtual Int_t Make()