StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFlowPhiWgtMaker.h
1 //
3 // $Id: StFlowPhiWgtMaker.h,v 1.6 2014/08/06 11:43:14 jeromel Exp $
4 //
5 // Authors: Art Poskanzer and Jamie Dunlop, May 2003
6 //
8 //
9 // Description: Maker to produce PhiWgt files
10 //
12 
13 #ifndef StFlowPhiWgtMaker_H
14 #define StFlowPhiWgtMaker_H
15 #include <Stiostream.h>
16 #include "StMaker.h"
17 #include "StFlowMaker/StFlowConstants.h"
18 #include "TString.h"
19 class StFlowEvent;
20 class StFlowSelection;
21 class TFile;
22 class TH1D;
23 
24 class StFlowPhiWgtMaker : public StMaker {
25  // Makes histograms for PhiWgt and writes them out.
26  // It reads particle quantities from StFlowEvent.
27 
28 public:
29 
31  StFlowPhiWgtMaker(const Char_t* name="FlowPhiWgt");
32 
33  virtual ~StFlowPhiWgtMaker();
34 
35  Int_t Init();
36  Int_t Make();
37  Int_t Finish();
38 
39  virtual const char *GetCVS() const {static const char cvs[]=
40  "Tag $Name: $ $Id: StFlowPhiWgtMaker.h,v 1.6 2014/08/06 11:43:14 jeromel Exp $ built " __DATE__ " " __TIME__ ;
41  return cvs;}
42 
43 private:
44 
45  static const int nCens = 10;
46 
47  TFile* phiWgtFile[nCens];
48 
49  void FillParticleHistograms();
50 
51  StFlowEvent* pFlowEvent;
52  StFlowSelection* pFlowSelect;
53 
54  // for single histograms
55  TH1F* mHistZDCSMDPsiWgtEast;
56  TH1F* mHistZDCSMDPsiWgtWest;
57  // for each harmonic, each selection, and each centrality
58  struct histHars {
59  TH1D* mHistPhiFarEast;
60  TH1D* mHistPhiEast;
61  TH1D* mHistPhiWest;
62  TH1D* mHistPhiFarWest;
63  TH1D* mHistPhiFtpcFarEast;
64  TH1D* mHistPhiFtpcEast;
65  TH1D* mHistPhiFtpcWest;
66  TH1D* mHistPhiFtpcFarWest;
67  TH1D* mHistPhiWgtFarEast;
68  TH1D* mHistPhiWgtEast;
69  TH1D* mHistPhiWgtWest;
70  TH1D* mHistPhiWgtFarWest;
71  TH1D* mHistPhiWgtFtpcFarEast;
72  TH1D* mHistPhiWgtFtpcEast;
73  TH1D* mHistPhiWgtFtpcWest;
74  TH1D* mHistPhiWgtFtpcFarWest;
75  };
76 
77  struct histCens;
78  friend struct histCens;
79  struct histCens {
80  struct histHars histHar[2];
81  };
82 
83  struct hists;
84  friend struct hists;
85  struct hists {
86  struct histCens histCen[nCens];
87  };
88  struct hists hist[Flow::nSels];
89 
90  TString MakerName;
91 
92  ClassDef(StFlowPhiWgtMaker,0) // macro for rootcint
93 };
94 
95 #endif
96 
98 //
99 // $Log: StFlowPhiWgtMaker.h,v $
100 // Revision 1.6 2014/08/06 11:43:14 jeromel
101 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
102 //
103 // Revision 1.5 2004/12/07 23:10:23 posk
104 // Only odd and even phiWgt hists. If the old phiWgt file contains more than
105 // two harmonics, only the first two are read. Now writes only the first two.
106 //
107 // Revision 1.4 2004/05/31 20:09:26 oldi
108 // PicoDst format changed (Version 7) to hold ZDC SMD information.
109 // Trigger cut modified to comply with TriggerCollections.
110 // Centrality definition for 62 GeV data introduced.
111 // Minor bug fixes.
112 //
113 // Revision 1.3 2003/09/10 19:47:15 perev
114 // ansi corrs
115 //
116 // Revision 1.2 2003/09/02 17:58:11 perev
117 // gcc 3.2 updates + WarnOff
118 //
119 // Revision 1.1 2003/05/16 20:44:51 posk
120 // First commit of StFlowPhiWgtMaker
121 //
122 //
StFlowPhiWgtMaker(const Char_t *name="FlowPhiWgt")
Constructor.