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:
18  StEEmcMixQAMaker(const Char_t *name);
19  ~StEEmcMixQAMaker(){ /* nada */ };
20 
21  Int_t Init();
22  Int_t Make();
23 
24  void Clear(Option_t *opts=""){ /* nada */ };
25 
26  void mixer(const Char_t *name, Float_t min=0., Float_t max=999.);
27  void points(const Char_t *name);
28 
30  void background(){ mBackground=true; }
31 
32  Int_t maxPerSector; // maximum number of pairs matched to sector
33  Int_t maxPerEvent; // maximum number of pairs per event
34  Int_t maxPerCluster; // maximum number of points matched to the 6-18 tower cluster
35 
36  Float_t zVertexMin;
37  Float_t zVertexMax;
38 
39  private:
40  protected:
41 
42  Float_t mMin; // min mass for gated quantities
43  Float_t mMax; // max mass for gated quantities
44 
45  Bool_t mBackground;
46 
47  TH1F *hNcandidates;
48 
50  std::vector<TH2F *> hYXpair;
51  std::vector<TH2F *> hYXhigh;
52  std::vector<TH2F *> hYXlow;
53  std::vector<TH2F *> hE1E2;
54 
56  std::vector<Float_t> mBins;
57  std::vector< std::vector<TH1F *> > hMassR;
58  std::vector< std::vector<TH1F *> > hZggR;
59  std::vector< std::vector<TH1F *> > hPhiggR;
60  std::vector< std::vector<TH1F *> > hEnergyR;
61  std::vector< std::vector<TH1F *> > hZvertexR;
62 
63 
65  TH1F *hMassRall;
66  TH1F *hZvertexRall;
67 
68  Int_t ptbin( StEEmcPair p );
69 
72  Bool_t twoBodyCut( StEEmcPair p );
73 
76 
78 
79 };
80 
81 #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 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="")
User defined functions.
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
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