StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcQAMaker.h
1 #ifndef __StEEmcQAMaker_h__
2 #define __StEEmcQAMaker_h__
3 
4 #include "StMaker.h"
5 class StEEmcA2EMaker;
6 class StMuDstMaker;
7 class TH1F;
8 class TH2F;
9 
10 #include <vector>
11 
12 class StEEmcQAMaker : public StMaker
13 {
14 
15  public:
16 
17  StEEmcQAMaker(const Char_t *name);
18  ~StEEmcQAMaker(){ /* nada */ };
19 
20  Int_t Init();
21  Int_t Make();
22  void Clear(Option_t *opts="");
23 
25  void analysis(const Char_t *name);
27  void mudst(const Char_t *name);
29  void trigger(Int_t t){ mTriggerList.push_back(t); }
30 
31 
33  Int_t nVertexMax;
34  Int_t nVertexMin;
35  Float_t zVertexMin;
36  Float_t zVertexMax;
37 
38 
39  private:
40  protected:
41 
42  Float_t mSamplingFractionT;
43  Float_t mSamplingFractionP;
44  Float_t mSamplingFractionQ;
45  Float_t mSamplingFractionR;
46  Float_t mSamplingFractionU;
47  Float_t mSamplingFractionV;
48 
54  std::vector<Int_t> mTriggerList;
55 
57  Bool_t CheckTriggers();
58  Bool_t CheckVertex();
59  Bool_t CheckTracks();
60  Bool_t EEmcResponse();
61 
63 
64  TH1F *hEventCounter;
65 
67 
68  std::vector<TH1F *> hTriggers;
69 
70  Int_t mSectorTrigger; // index of sector in which trigger fired
71 
72  TH2F *hFrequencyT;
73  TH2F *hFrequencyP;
74  TH2F *hFrequencyQ;
75  TH2F *hFrequencyR;
76 
77  std::vector<TH1F *> hEnergyDepositT;
78  std::vector<TH1F *> hEnergyDepositP;
79  std::vector<TH1F *> hEnergyDepositQ;
80  std::vector<TH1F *> hEnergyDepositR;
81  std::vector<TH1F *> hEnergyDepositU;
82  std::vector<TH1F *> hEnergyDepositV;
83 
84  std::vector<TH1F *> hMultiplicityT;
85  std::vector<TH1F *> hMultiplicityP;
86  std::vector<TH1F *> hMultiplicityQ;
87  std::vector<TH1F *> hMultiplicityR;
88  std::vector<TH1F *> hMultiplicityU;
89  std::vector<TH1F *> hMultiplicityV;
90 
91  std::vector<TH1F *> hAdcT;
92  std::vector<TH1F *> hAdcP;
93  std::vector<TH1F *> hAdcQ;
94  std::vector<TH1F *> hAdcR;
95  std::vector<TH1F *> hAdcU;
96  std::vector<TH1F *> hAdcV;
97 
99 
100  std::vector<TH1F *> hNglobal;
101  std::vector<TH1F *> hNprimary;
102  std::vector<TH1F *> hNvertex;
103  std::vector<TH1F *> hZvertex;
104  std::vector<TH1F *> hZvertexErr;
105  std::vector<TH1F *> hRankVertex;
106  std::vector<TH1F *> hNtrackVertex;
107  std::vector<TH1F *> hNtrackVertexEE;
108  std::vector<TH1F *> hPTsumVertex;
109 
110 
111  ClassDef(StEEmcQAMaker,1);
112 
113 };
114 
115 #endif
Float_t zVertexMax
Definition: StEEmcQAMaker.h:33
std::vector< TH1F * > hZvertexErr
Error on z vertex.
std::vector< Int_t > mTriggerList
List of triggers to process.
Definition: StEEmcQAMaker.h:51
std::vector< TH1F * > hAdcT
ADC.
EEmc ADC –&gt; energy maker.
TH1F * hEventCounter
Histogram for counting events.
Definition: StEEmcQAMaker.h:59
Bool_t CheckTracks()
std::vector< TH1F * > hZvertex
Z vertex.
std::vector< TH1F * > hMultiplicityT
[MeV]
Definition: StEEmcQAMaker.h:93
std::vector< TH1F * > hMultiplicityU
Multiplicity in layer.
void mudst(const Char_t *name)
sets pointer to the muDst maker
std::vector< TH1F * > hAdcR
ADC.
std::vector< TH1F * > hAdcV
ADC.
std::vector< TH1F * > hEnergyDepositU
Energy deposited in layer.
Definition: StEEmcQAMaker.h:88
Float_t mSamplingFractionU
SMD sampling fraction.
Definition: StEEmcQAMaker.h:42
std::vector< TH1F * > hEnergyDepositP
Energy deposited in layer.
Definition: StEEmcQAMaker.h:82
std::vector< TH1F * > hAdcP
ADC.
void trigger(Int_t t)
add a trigger to the trigger list
Definition: StEEmcQAMaker.h:29
std::vector< TH1F * > hAdcQ
ADC.
Float_t zVertexMin
Definition: StEEmcQAMaker.h:32
std::vector< TH1F * > hEnergyDepositR
Energy deposited in layer.
Definition: StEEmcQAMaker.h:86
void analysis(const Char_t *name)
sets pointer to adc–&gt;energy maker
Int_t mSectorTrigger
Definition: StEEmcQAMaker.h:68
std::vector< TH1F * > hNtrackVertexEE
Number of tracks matched to eemc and vertex.
std::vector< TH1F * > hMultiplicityV
Multiplicity in layer.
TH2F * hFrequencyQ
Frequency pre2 is highest on EEMC.
Definition: StEEmcQAMaker.h:75
Bool_t EEmcResponse()
TH2F * hFrequencyR
Frequency post is highest on EEMC.
Definition: StEEmcQAMaker.h:77
StMuDstMaker * mMuDst
MuDst.
Definition: StEEmcQAMaker.h:49
std::vector< TH1F * > hNtrackVertex
Number of tracks matched to vertex.
Bool_t CheckTriggers()
StEEmcA2EMaker * mEEanalysis
ADC –&gt; Energy.
Definition: StEEmcQAMaker.h:47
std::vector< TH1F * > hPTsumVertex
Scalar sum of PT of tracks associated with vertex.
std::vector< TH1F * > hEnergyDepositT
Energy deposited in layer.
Definition: StEEmcQAMaker.h:80
Bool_t CheckVertex()
std::vector< TH1F * > hMultiplicityP
Multiplicity in layer.
Definition: StEEmcQAMaker.h:95
std::vector< TH1F * > hTriggers
Histograms for counting triggers (one per trigger ID)
Definition: StEEmcQAMaker.h:62
TH2F * hFrequencyT
Frequency tower is highest on EEMC.
Definition: StEEmcQAMaker.h:71
std::vector< TH1F * > hAdcU
ADC.
TH2F * hFrequencyP
Frequency pre1 is highest on EEMC.
Definition: StEEmcQAMaker.h:73
std::vector< TH1F * > hEnergyDepositQ
Energy deposited in layer.
Definition: StEEmcQAMaker.h:84
std::vector< TH1F * > hNglobal
Number of global tracks.
Example of QA histograming using the StEEmcA2EMaker.
Definition: StEEmcQAMaker.h:12
std::vector< TH1F * > hMultiplicityR
Multiplicity in layer.
Definition: StEEmcQAMaker.h:99
std::vector< TH1F * > hMultiplicityQ
Multiplicity in layer.
Definition: StEEmcQAMaker.h:97
std::vector< TH1F * > hEnergyDepositV
Energy deposited in layer.
Definition: StEEmcQAMaker.h:90
virtual Int_t Make()
Process one event.
std::vector< TH1F * > hNprimary
Number of primary tracks.
virtual Int_t Init()
Initialize the maker.
std::vector< TH1F * > hNvertex
Number of vertices.
std::vector< TH1F * > hRankVertex
Rank of vertex.
void Clear(Option_t *opts="")
User defined functions.
Float_t mSamplingFractionT
Tower sampling fraction.
Definition: StEEmcQAMaker.h:40
Int_t nVertexMax
Cuts on primary vertex (see constructor for defaults)
Definition: StEEmcQAMaker.h:30
Float_t mSamplingFractionV
SMD sampling fraction.
Definition: StEEmcQAMaker.h:44