StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFlowConstants.h
1 //
3 // $Id: StFlowConstants.h,v 1.28 2010/03/08 16:52:49 posk Exp $
4 //
5 // Author: Art Poskanzer and Raimond Snellings
6 // FTPC added by Markus Oldenburg, MPI, Dec 2000
7 // Cumulants added by Aihong Tang, KSU, Nov 2001
8 //
10 //
11 // Description: constants for the flow makers
12 //
14 
15 #ifndef StFlowConstants_h
16 #define StFlowConstants_h
17 #include "Rtypes.h"
18 
19 class Flow{
20 
21  public:
22 
23  enum {
24  nHars = 4, // 4
25  nSels = 2,
26  nSubs = 2,
27  nTheta = 5, // 5 LYZ
28  nTheta1 = 5, // 5 LYZ
29  nRBins = 150, // LYZ
30  nPhiBins = 120,
31  nPhiBinsFtpc = 120,
32  nEtaBins = 90, // 90
33  nEtaBinsTpcOnly = 30,
34  nPtBins = 40,
35  nPtBinsPart = 60,
36  nCumulIntegOrders = 3, // Cumu
37  nCumulInteg_qMax = 8, // Cumu
38  nCumulDiffOrders = 2, // Cumu
39  nCumulDiff_qMax = 8, // Cumu
40  nCumulMixHar_pMax = 8, // for directed flow. Eq.(29) in Borghini v1 paper
41  nCumulMixHar_qMax = 4, // for directed flow
42  nCents = 9,
43  zdcsmd_nPsiBins = 64, // ZDCSMD
44  TERMS = 10, // DirCumu correlation
45  TYPES = 2, // differential or integrated
46  PHASES = 2, // cos or sin
47  SPECIES = 1, // number of different particles
48  PTBINS = 62, // DirCumu
49  MAXMULT = 3000 // DirCumu maximum multiplicity of an event
50  };
51 
52  typedef Double_t PhiWgt_t[nSels][2][nPhiBins]; // only odd and even harmonics
53  typedef Double_t PhiWgtFtpc_t[nSels][2][nPhiBinsFtpc];
54  typedef Double_t ZDCSMD_PsiWgt_t[64];
55  typedef Double_t ReCent_t[nSels][nHars][4]; // 3 TPCs for LYZ, 4 for ana
56  typedef Double_t ReCentering_shifts_t[2][9][3][2][3];//cos or sin ; cent bin ; charge/charge combo ; B field sign ; TPC side/TPC side combo
57  //typedef Double_t ReCentering_shifts_t[2][9][3][2];
58  typedef Double_t PhiWgtFtpc_2D_t[6][6][120];
59 
60  static Float_t etaMin;
61  static Float_t etaMax;
62  static Float_t etaMinTpcOnly;
63  static Float_t etaMaxTpcOnly;
64  static Float_t etaSymZSlopeTpc;
65  static Float_t etaSymZSlopeFtpc;
66  static Float_t rMax; // LYZ
67  static Float_t j01; // LYZ
68  static Float_t epsV1;// LYZ
69  static Float_t ptMin;
70  static Float_t ptMax;
71  static Float_t ptMaxPart;
72 
73  static Int_t cent200Full[nCents];
74  static Int_t cent200Half[nCents];
75  static Int_t cent200Year4Full[nCents];
76  static Int_t cent200Year4Half[nCents];
77  static Int_t cent200Year7[nCents];
78  static Int_t cent130[nCents];
79  static Int_t cent62[nCents];
80  static Int_t cent22[nCents];
81 
82  static Double_t zdcsmd_wx0,zdcsmd_ex0,zdcsmd_wy0,zdcsmd_ey0;
83  static Double_t zdcsmdPedstal[2][2][8];
84  static Double_t zdcsmdGainFac[2][2][8];
85 
86  ClassDef(Flow,1) // macro for rootcint
87 };
88 
89 #endif
90 
92 //
93 // $Log: StFlowConstants.h,v $
94 // Revision 1.28 2010/03/08 16:52:49 posk
95 // Added StFlowDirectCumulantMaker written by Dhevan Gangadharan.
96 //
97 // Revision 1.27 2009/11/24 19:23:00 posk
98 // Added reCenter option to remove acceptance correlations instead of phiWgt.
99 //
100 // Revision 1.26 2009/08/04 23:00:26 posk
101 // Reads year 7 MuDsts.
102 //
103 // Revision 1.25 2007/02/06 18:57:47 posk
104 // In Lee Yang Zeros method, introduced recentering of Q vector.
105 // Reactivated eta symmetry cut.
106 //
107 // Revision 1.24 2006/07/06 16:55:59 posk
108 // Calculation of v1 for selection=2 is done with mixed harmonics.
109 //
110 // Revision 1.23 2006/02/22 19:22:02 posk
111 // Additions needed for the StFlowLeeYangZerosMaker
112 //
113 // Revision 1.22 2005/02/08 20:57:36 psoren
114 // trigger and centrality selections were updated for all runs after run 4 to be compatible with trigger collections. Added TriggersFound() and GetFlowTriggerBitMap() functions.
115 //
116 // Revision 1.21 2004/12/17 22:33:05 aihong
117 // add in full Psi weight for ZDC SMD and fix a few bugs, done by Gang
118 //
119 // Revision 1.20 2004/12/17 15:50:08 aihong
120 // check in v1{3} code
121 //
122 // Revision 1.19 2004/12/07 23:08:10 posk
123 // Only odd and even phiWgt hists. If the old phiWgt file contains more than
124 // two harmonics, only the first two are read. Now writes only the first two.
125 //
126 // Revision 1.18 2004/05/05 21:13:44 aihong
127 // Gang's code for ZDC-SMD added
128 //
129 // Revision 1.17 2004/02/03 22:36:36 posk
130 // Initialzed mPtBinsPart.
131 //
132 // Revision 1.16 2003/05/02 21:09:40 posk
133 // Reduced the number of harmonics from 3 to 2.
134 //
135 // Revision 1.15 2003/01/10 16:41:51 oldi
136 // Several changes to comply with FTPC tracks:
137 // - Switch to include/exclude FTPC tracks introduced.
138 // The same switch changes the range of the eta histograms.
139 // - Eta symmetry plots for FTPC tracks added and separated from TPC plots.
140 // - PhiWgts and related histograms for FTPC tracks split in FarEast, East,
141 // West, FarWest (depending on vertex.z()).
142 // - Psi_Diff plots for 2 different selections and the first 2 harmonics added.
143 // - Cut to exclude mu-events with no primary vertex introduced.
144 // (This is possible for UPC events and FTPC tracks.)
145 // - Global DCA cut for FTPC tracks added.
146 // - Global DCA cuts for event plane selection separated for TPC and FTPC tracks.
147 // - Charge cut for FTPC tracks added.
148 //
149 // Revision 1.14 2002/05/23 18:54:09 posk
150 // Moved centrality cuts into StFlowConstants
151 //
152 // Revision 1.13 2002/03/12 02:33:18 posk
153 // Now makes pico files in SL02c.
154 //
155 // Revision 1.12 2002/01/31 01:04:41 posk
156 // *** empty log message ***
157 //
158 // Revision 1.11 2001/12/18 19:21:59 posk
159 // "proton" and "antiproton" changed to "pr+" and "pr-".
160 // Compiles on Solaris.
161 //
162 // Revision 1.10 2001/12/11 21:33:41 posk
163 // Went from one to four sets of histograms for making the event plane isotropic.
164 // StFlowEvent::PhiWeight() has changed arguments and return value.
165 // The ptWgt saturates above 2 GeV/c.
166 //
167 // Revision 1.9 2001/11/10 01:08:06 posk
168 // Moved some constants into StFlowConstants.
169 //
170 // Revision 1.8 2001/11/09 21:10:26 posk
171 // Switched from CERNLIB to TMath. Little q is now normalized.
172 //
173 // Revision 1.7 2001/11/02 04:49:52 aihong
174 // add func. for cumulant maker
175 //
176 // Revision 1.6 2001/05/22 20:17:09 posk
177 // Now can do pseudorapidity subevents.
178 //
179 // Revision 1.5 2000/12/12 20:22:04 posk
180 // Put log comments at end of files.
181 // Deleted persistent StFlowEvent (old micro DST).
182 //
183 // Revision 1.4 2000/12/08 17:03:38 oldi
184 // Phi weights for both FTPCs included.
185 //
186 // Revision 1.1 2000/03/02 23:02:36 posk
187 // Changed extensions from .hh and .cc to .h and .cxx .
188 //
189 // Revision 1.1 1999/12/15 22:01:20 posk
190 // Added StFlowConstants.hh
191 //