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 public:
15  StEEmcQAMaker(const Char_t *name);
16  virtual ~StEEmcQAMaker(){ /* nada */ };
17 
19  virtual Int_t Init();
21  virtual Int_t Make();
22 
24  void analysis(const Char_t *name);
26  void mudst(const Char_t *name);
28  void trigger(Int_t t){ mTriggerList.push_back(t); }
29 
30  Int_t nVertexMax;
31  Int_t nVertexMin;
32  Float_t zVertexMin;
33  Float_t zVertexMax;
35  void softTrigger( Float_t s ) { mSoftTrig = s; }
36 
37 protected:
38 
45 
51  std::vector<Int_t> mTriggerList;
52 
53  Bool_t CheckTriggers();
54  Bool_t CheckVertex();
55  Bool_t CheckTracks();
56  Bool_t EEmcResponse();
58  TH1F *hEventCounter;
60 
62  std::vector<TH1F *> hTriggers;
63  std::vector<TH1F *> hTriggersHard;
64 
66  Float_t mSoftTrig;
67 
70  TH2F *hFrequencyT;
72  TH2F *hFrequencyP;
74  TH2F *hFrequencyQ;
76  TH2F *hFrequencyR;
78 
80  std::vector<TH1F *> hEnergyDepositT;
81  std::vector<TH1F *> hEnergyDepositP;
83  std::vector<TH1F *> hEnergyDepositQ;
85  std::vector<TH1F *> hEnergyDepositR;
87  std::vector<TH1F *> hEnergyDepositU;
89  std::vector<TH1F *> hEnergyDepositV;
91 
93  std::vector<TH1F *> hMultiplicityT;
94  std::vector<TH1F *> hMultiplicityP;
96  std::vector<TH1F *> hMultiplicityQ;
98  std::vector<TH1F *> hMultiplicityR;
100  std::vector<TH1F *> hMultiplicityU;
102  std::vector<TH1F *> hMultiplicityV;
104 
106  std::vector<TH1F *> hAdcT;
107  std::vector<TH1F *> hAdcP;
109  std::vector<TH1F *> hAdcQ;
111  std::vector<TH1F *> hAdcR;
113  std::vector<TH1F *> hAdcU;
115  std::vector<TH1F *> hAdcV;
117 
118 
120  std::vector<TH1F *> hNglobal;
121  std::vector<TH1F *> hNprimary;
123  std::vector<TH1F *> hNvertex;
125  std::vector<TH1F *> hZvertex;
127  std::vector<TH1F *> hZvertexErr;
129  std::vector<TH1F *> hRankVertex;
131  std::vector<TH1F *> hNtrackVertex;
133  std::vector<TH1F *> hNtrackVertexEE;
135  std::vector<TH1F *> hPTsumVertex;
137 
138  ClassDef(StEEmcQAMaker,1);
139 };
140 
141 #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:28
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
Float_t mSoftTrig
Software trigger threshold.
Definition: StEEmcQAMaker.h:66
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.
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