00001
00002
00003
00004
00005
00006
00007
00009
00010
00011
00012
00013
00015
00016
00018
00019
00020
00021
00022
00023
00024
00025
00027
00028 #ifndef StFlowCumulantMaker_H
00029 #define StFlowCumulantMaker_H
00030 #include <Stiostream.h>
00031 #include "StMaker.h"
00032 #include "StFlowMaker/StFlowConstants.h"
00033 #include "TString.h"
00034 class StFlowEvent;
00035 class StFlowSelection;
00036 class TH1F;
00037 class TH1D;
00038 class TH2F;
00039 class TH2D;
00040
00041 class TProfile;
00042 class TProfile2D;
00043
00044 class StFlowCumulantMaker : public StMaker {
00045
00046 public:
00047
00048 StFlowCumulantMaker(const Char_t* name="FlowCumulantAnalysis");
00049 StFlowCumulantMaker(const Char_t* name,
00050 const StFlowSelection& pFlowSelect);
00051 StFlowCumulantMaker(const StFlowCumulantMaker &from){};
00052 virtual ~StFlowCumulantMaker();
00053
00054 Int_t Init();
00055 Int_t Make();
00056 Int_t Finish();
00057 void SetHistoRanges(Bool_t ftpc_included = kFALSE);
00058
00059 virtual const char *GetCVS() const {static const char cvs[]=
00060 "Tag $Name: $ $Id: StFlowCumulantMaker.h,v 1.7 2004/12/17 15:50:09 aihong Exp $ built "__DATE__" "__TIME__ ;
00061 return cvs;}
00062
00063 private:
00064
00065 void FillFromFlowEvent();
00066 void FillEventHistograms();
00067 void FillParticleHistograms();
00068
00069 #ifndef __CINT__
00070 UInt_t mMult[Flow::nSels][Flow::nHars];
00071 UInt_t mMultSub[Flow::nSels*Flow::nSubs][Flow::nHars];
00072 Double_t mSqrtOfSumWgtSqr[Flow::nSels][Flow::nHars];
00073
00074 #endif
00075 TString xLabel;
00076 StFlowEvent* pFlowEvent;
00077 StFlowSelection* pFlowSelect;
00078
00079 Double_t profScale;
00080 Double_t r0;
00081 Double_t r0Sq;
00082 Double_t r0Mix;
00083 UInt_t m_M;
00084
00085
00086
00087 struct histFullHars {
00088
00089 TProfile2D** mHistCumul2D;
00090 TProfile** mHistCumulEta;
00091 TProfile** mHistCumulPt;
00092
00093 TProfile2D* mHistCumulMix2D;
00094 TProfile* mHistCumulMixEta;
00095 TProfile* mHistCumulMixPt;
00096
00097
00098 TH2D** mHist_v2D;
00099 TH1D** mHist_vEta;
00100 TH1D** mHist_vPt;
00101
00102 TH2D* mHistMix_v2D;
00103 TH1D* mHistMix_vEta;
00104 TH1D* mHistMix_vPt;
00105
00106
00107 TProfile** mCumulG0Denom;
00108 TProfile** mCumulG0MixDenom;
00109
00110 Double_t mIntegXz[Flow::nCumulIntegOrders*Flow::nCumulInteg_qMax];
00111 Double_t mIntegYz[Flow::nCumulIntegOrders*Flow::nCumulInteg_qMax];
00112 Double_t mDiffXz[Flow::nCumulDiffOrders*Flow::nCumulDiff_qMax];
00113 Double_t mDiffYz[Flow::nCumulDiffOrders*Flow::nCumulDiff_qMax];
00114 Double_t mCumulIntegG0[Flow::nCumulIntegOrders*Flow::nCumulInteg_qMax];
00115 Double_t mCumulG0DenomRead[Flow::nCumulDiffOrders*Flow::nCumulDiff_qMax];
00116
00117 Double_t mMixX1z[Flow::nCumulMixHar_pMax];
00118 Double_t mMixY1z[Flow::nCumulMixHar_pMax];
00119 Double_t mMixX2z[Flow::nCumulMixHar_qMax];
00120 Double_t mMixY2z[Flow::nCumulMixHar_qMax];
00121
00122 Double_t mCumulIntegG0Mix[Flow::nCumulMixHar_pMax*Flow::nCumulMixHar_qMax];
00123 Double_t mCumulG0MixDenomRead[Flow::nCumulMixHar_pMax*Flow::nCumulMixHar_qMax];
00124
00125
00126
00127 Double_t mMultSum;
00128 Int_t mNEvent;
00129 Double_t mMeanWgtSqrSum;
00130
00131 TH1D* mHistMultSum;
00132 TH1D* mHistNEvent;
00133 TH1D* mHistMeanWgtSqrSum;
00134
00135 TH1D** mHistCumulIntegG0Sum;
00136 TH1D** mHistCumulIntegG0MixSum;
00137
00138 };
00139
00140
00141 struct histFulls;
00142 friend struct histFulls;
00143
00144 struct histFulls {
00145 TProfile** mHistCumul;
00146 TProfile* mHistCumulMix;
00147
00148 TH1D** mHist_v;
00149 TH1D* mHistMix_v;
00150
00151
00152 struct histFullHars histFullHar[Flow::nHars];
00153 };
00154 struct histFulls histFull[Flow::nSels];
00155
00156 TString MakerName;
00157
00158 Float_t mEtaMin;
00159 Float_t mEtaMax;
00160 Int_t mNEtaBins;
00161 Int_t nPtBinsPart;
00162
00163 ClassDef(StFlowCumulantMaker,0)
00164
00165 };
00166
00167
00168 #endif
00169
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230