StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcMixQAMaker.h
1 #ifndef __StEEmcMixQAMaker_h__
2 #define __StEEmcMixQAMaker_h__
3 
4 #include "StMaker.h"
5 
6 class StEEmcMixMaker;
7 class StEEmcPointMaker;
8 class TH1F;
9 class TH2F;
10 
11 #include <vector>
12 #include "StEEmcPair.h"
13 
14 class StEEmcMixQAMaker : public StMaker
15 {
16 
17  public:
19  StEEmcMixQAMaker(const Char_t *name);
21  ~StEEmcMixQAMaker(){ /* nada */ };
22 
24  Int_t Init();
26  Int_t Make();
28  void Clear(Option_t *opts=""){ /* nada */ };
34  void mixer(const Char_t *name, Float_t min=0., Float_t max=999.);
36  void points(const Char_t *name);
37 
39  void background(){ mBackground=true; }
40 
41 
42  Int_t maxPerSector;
43  Int_t maxPerEvent;
44  Int_t maxPerCluster;
46  Float_t minTowerFrac;
48  Float_t zVertexMin;
49  Float_t zVertexMax;
51  Float_t minZgg;
52  Float_t maxZgg;
54  void addBin(Float_t b){ assert(b>mBins.back()); mBins.push_back(b); }
56 
57  private:
58  protected:
59 
60  Float_t mMin;
61  Float_t mMax;
63  Bool_t mBackground;
65  TH1F *hNcandidates;
66  TH1F *hNcandidatesR;
68  std::vector<TH2F *> hYXpair;
70  std::vector<TH2F *> hYXhigh;
72  std::vector<TH2F *> hYXlow;
74  std::vector<TH2F *> hE1E2;
76 
78  std::vector<Float_t> mBins;
79 
80  //
81  // The following are 2D vectors of histograms. We
82  // bin the data in pT and sector. Sector 13 integrates
83  // over all 12 eemc sectors. One final pT bin integrates
84  // over all pT
85 
87  std::vector< std::vector<TH1F *> > hMassR;
88  std::vector< std::vector<TH1F *> > hZggR;
90  std::vector< std::vector<TH1F *> > hPhiggR;
92  std::vector< std::vector<TH1F *> > hEnergyR;
94  std::vector< std::vector<TH1F *> > hZvertexR;
96 
98  TH1F *hMassRall;
101 
103  Int_t ptbin( StEEmcPair p );
104 
107  Bool_t twoBodyCut( StEEmcPair p );
108 
113 
116 
117 };
118 
119 #endif
StEEmcMixMaker * mEEmixer
Pointer to the pi0 mixer.
Int_t Init()
initializes the maker
std::vector< std::vector< TH1F * > > hEnergyR
Pair energy [mMin,mMax].
void addBin(Float_t b)
add a pT bin from the last boundary added to this value
void mixer(const Char_t *name, Float_t min=0., Float_t max=999.)
std::vector< std::vector< TH1F * > > hPhiggR
Opening angle [mMin,mMax].
Int_t Make()
processes a single event
TH1F * hZvertexRall
vertex for all events
A maker for creating pi0 histograms.
StEEmcPointMaker * mEEpoints
pointer to the point maker
void Clear(Option_t *opts="")
clears the maker
Class for building points from smd clusters.
std::vector< std::vector< TH1F * > > hZggR
Energy sharing [mMin,mMax].
std::vector< std::vector< TH1F * > > hZvertexR
Event vertex [mMin,mMax].
std::vector< Float_t > mBins
E1 vs E2.
Bool_t twoBodyCut(StEEmcPair p)
Int_t ptbin(StEEmcPair p)
returns the ptbin the pair is in
~StEEmcMixQAMaker()
destructor
std::vector< TH2F * > hYXhigh
Y vs X of higher energy gamma.
void points(const Char_t *name)
specifies the name of the point maker
ClassDef(StEEmcMixQAMaker, 1)
Makes class availabel to root.
std::vector< std::vector< TH1F * > > hMassR
Bin boundaries in pT.
void background()
use combinatoric background points instead of real points
StEEmcMixQAMaker(const Char_t *name)
constructor
A class for mixing pi0 candidates.
TH1F * hMassRall
Mass spectrum for all events.
std::vector< TH2F * > hYXlow
Y vs X of lower energy gamma.
std::vector< TH2F * > hYXpair
Y vs X of pi0 pairs.
std::vector< TH2F * > hE1E2
Energy of first gamma vs energy of second.
A class to represent pairs of points.
Definition: StEEmcPair.h:9