StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofpMcAnalysisMaker.h
1 /**********************************************
2  *
3  * $Id: StTofpMcAnalysisMaker.h,v 1.3 2014/08/06 11:43:47 jeromel Exp $
4  * $Log: StTofpMcAnalysisMaker.h,v $
5  * Revision 1.3 2014/08/06 11:43:47 jeromel
6  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
7  *
8  * Revision 1.2 2011/04/03 15:52:57 fisyak
9  * Fix effect of constness in StAssociationMaker
10  *
11  * Revision 1.1 2004/03/16 04:58:54 geurts
12  * *** empty log message ***
13  *
14  * Revision 1.7 2003/09/10 19:47:22 perev
15  * ansi corrs
16  *
17  **********************************************/
18 
19 #ifndef StTofpMcAnalysisMaker_HH
20 #define StTofpMcAnalysisMaker_HH
21 
22 #ifndef StMaker_H
23 #include "StMaker.h"
24 #endif
25 
26 // - if not using the methods of the class, then we can just put class TCanvas;
27 // - however, if we are using the methods of TCanvas, then #include "TCanvas.h"
28 
29 class TH1F;
30 class TH2F;
31 class TH2D;
32 class TH1D;
33 class TFile;
34 class TNtuple;
35 class StTofGeometry;
36 class StTrackGeometry;
37 class StTrack;
38 
39 
41 
42  public:
43  StTofpMcAnalysisMaker(const char* name = "StTofpMcAnalysisMaker",
44  const char* title = "event/StTofpMcAnalysisMaker");
45  virtual ~StTofpMcAnalysisMaker();
46  virtual void Clear(const char* opt="");
47  virtual Int_t Init();
48  virtual Int_t InitRun(int);
49  virtual Int_t FinishRun(int);
50  virtual Int_t Make();
51  virtual Int_t Finish();
52 
53  // Embedding/Reconstruction/Matching histograms
54  TH2F* hMcPionPlus;
55  TH2F* hMcPionMin;
56  TH2F* hMcKaonPlus;
57  TH2F* hMcKaonMin;
58  TH2F* hMcProton;
59  TH2F* hMcAntiProton;
60  TH2F* hMcElectron;
61  TH2F* hRcPionPlus;
62  TH2F* hRcPionMin;
63  TH2F* hRcKaonPlus;
64  TH2F* hRcKaonMin;
65  TH2F* hRcProton;
66  TH2F* hRcAntiProton;
67  TH2F* hRcElectron;
69  TH2F* hMatchPionMin;
71  TH2F* hMatchKaonMin;
72  TH2F* hMatchProton;
75 
76  // Embedding QA histograms
77  TH2F* hMomResPtPion;
78  TH1F* hMultRef;
79 
80  // Match QA histograms
81  TH2D *hTofpHitMap1;
82  TH2D *hTofpHitMap2;
83  TH2D *hTofpHitMap3;
84  TH2D *hTofpHitMap4;
85  TH1D *hTofpSlatIdA0;
86  TH1D *hTofpSlatIdA1;
87  TH1D *hTofpSlatIdB1;
88  TH1D *hTofpSlatIdD1;
89  TH1D *hTofpSlatIdD2;
90  TH1D *hTofpSlatIdE1;
91  TH1D *hTofpSlatIdE2;
92  TH1D *hTofpSlatIdE3;
93  TH1D *hTofpSlatIdE4;
94  TH1D *hTofpSlatIdE5;
95  TH1D *hTofpSlatIdF1;
97 
99 
100 private:
101  bool mOuterTrackGeometry;
102  const StTrackGeometry* trackGeometry(const StTrack*);
103  unsigned int mMinHitsPerTrack;
104  bool validTrack(StTrack*);
105  bool validTofTrack(StTrack*);
106 
108  static const Int_t mPtBin;
109  static const Int_t mYBin;
110  static const Float_t mPtMin;
111  static const Float_t mPtMax;
112  static const Float_t mYMin;
113  static const Float_t mYMax;
114 
115 
116  virtual const char* GetCVS() const
117  {static const char cvs[]="Tag $Name: $ $Id: StTofpMcAnalysisMaker.h,v 1.3 2014/08/06 11:43:47 jeromel Exp $ built " __DATE__ " " __TIME__; return cvs;}
118 
119  ClassDef(StTofpMcAnalysisMaker,0)
120 };
121 #endif
TH1D * hTofpSlatIdE4
recovered from ss
TH1D * hTofpSlatIdA0
2D tray hit positions (F)
TH1D * hTofpSlatIdB1
valid slat
TH2F * hRcElectron
TPC reconstructed pbar.
TH1F * hMultRef
MC/RC momentum resolution.
TH2F * hRcKaonMin
TPC reconstructed K+.
TH2F * hRcAntiProton
TPC reconstructed p+.
TH2F * hMatchKaonMin
TOF matched K+.
TH1D * hTofpSlatIdE2
one slat for one track match
TH1D * hTofpSlatIdE5
recovered from closest hitplane
StTofGeometry * mTofGeom
slat mult per StTrack
TH2D * hTofpHitMap4
2D tray hit positions (D)
TH1D * hTofpSlatIdA1
events per slat
TH2F * hMcKaonMin
montecarlo K+
TH2D * hTofpHitMap3
2D tray hit positions (pre-D)
TH2F * hMatchPionMin
TOF matched pi+.
TH1D * hTofpSlatHitVecSize
primary track match per slat
TH2F * hMcKaonPlus
montecarlo pi-
TH1D * hTofpSlatIdE1
single track match per slat
TH2F * hMcPionMin
montecarlo pi+
TH1D * hTofpSlatIdD1
#tracks match valid slat
TH2F * hMatchProton
TOF matched K-.
TH2F * hMatchPionPlus
TPC reconstructed e-.
TH2F * hMatchKaonPlus
TOF matched pi-.
TH2F * hRcProton
TPC reconstructed K-.
TH2F * hMatchElectron
TOF matched pbar.
Time-of-Flight Geometry Utilities.
TH2F * hMcAntiProton
montecarlo p+
TH2D * hTofpHitMap1
multiplicity reference
TH1D * hTofpSlatIdE3
recovered from hitprof-weight
TH2F * hMomResPtPion
TOF matched e-.
TH2F * hRcPionPlus
montecarlo e-
TH2F * hRcPionMin
TPC reconstructed pi+.
TH2F * hMcElectron
montecarlo pbar
TH1D * hTofpSlatIdF1
total recovered slat per track match
TH1D * hTofpSlatIdD2
track match per valid slat
TH2F * hRcKaonPlus
TPC reconstructed pi-.
TH2F * hMatchAntiProton
TOF matched p+.
TH2D * hTofpHitMap2
2D tray hit positions (B)
TH2F * hMcProton
montecarlo K-