StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHiSpectra.h
1 /***************************************************************************
2  *
3  * $Id: StHiSpectra.h,v 1.2 2002/05/31 21:58:29 jklay Exp $
4  *
5  * Author: Bum Choi, UT Austin, Apr 2002
6  *
7  ***************************************************************************
8  *
9  * Description: Class for making highpt inclusive spectra from highpt
10  * uDST's
11  *
12  ***************************************************************************
13  *
14  * $Log: StHiSpectra.h,v $
15  * Revision 1.2 2002/05/31 21:58:29 jklay
16  * Updated analysis code to use new cut class
17  *
18  * Revision 1.1 2002/04/02 20:05:18 jklay
19  * Bums analysis tools for highpt uDSTs
20  *
21  *
22  **************************************************************************/
23 #ifndef StHiSpectra_H
24 #define StHiSpectra_H
25 
26 
27 #include "StHiBaseAnalysis.h"
28 
30  public:
31  StHiSpectra(const char* inputDir="./",
32  const char* outRootName="hianalysis.hist.root",
33  const char* filename=0);
34  virtual ~StHiSpectra();
35 
36  void setEfficiencyString(char* a){ mEfficiencyString = a;}
37  void setEfficiencyFileName(char* a) { mEfficiencyFileName = a; }
38  TString efficiencyFileName() const { return mEfficiencyFileName; }
39 
40  protected:
41  static const int mNVarBin = 2;
42  static const int mNWeight = 4;
43 
44  Int_t initMore();
45  void initHistograms();
46  void fillEventHistograms();
47  void finishHistograms();
48 
49  void trackLoop();
50 
51 
52 
53  Bool_t acceptEvent(StHiMicroEvent*);
54 
55  TString mEfficiencyFileName;
56  TString mEfficiencyString;
57  TF2* mEfficiencyMap;
58 
59  //***************************************************************
60  // histograms
61  //
62 
63  // event histograms
64  TH1D* h1Centrality;
66  TH1D* h1VertexZ;
67 // TH1D* h1VertexZCut; //!
68  TH1D* h1VertexZThin;
69 // TH1D* h1VertexRCut; //!
70 
71  TH2D* h2Yield;
72 
73  TH1D* h1NEvent;
74  TH1D* h1EtaCut;
75 
76  struct Spectrum{
77  TH1D* h1Raw;
78  TH1D* h1EffCorrected;
79  TH1D* h1Corrected;
80 
81  };
82 
83  //
84  // try different pt bins
85  //
86 
87  struct Mean{
88  TH1D* h1OneOverPt;
89  TH1D* h1WeightedMean; // h1raw/h1OneOverPt
90  };
91 
92  struct VarBin{
93  Spectrum specPM[2];
94  Spectrum spec;
95  TH1D* h1RawRatio;
96  TH1D* h1CorrectedRatio;
97 
98  Mean meanPM[2];
99  Mean mean;
100 
101  TArrayD* ptBinsAry;
102  Int_t nPtBinAry;
103  };
104 
105 
106  VarBin varBin[mNVarBin];
107 
108  ClassDef(StHiSpectra,1)
109 };
110 
111 #endif
just in case, store the eta cut
Definition: StHiSpectra.h:76
TH1D * h1CentralityCut
just look at centrality stuff
Definition: StHiSpectra.h:65
TH1D * h1RawRatio
plus + minus
Definition: StHiSpectra.h:95
TH1D * h1EtaCut
of events for the centrality class
Definition: StHiSpectra.h:74