CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Static Private Attributes
HiEvtPlaneFlatten Class Reference

#include <HiEvtPlaneFlatten.h>

Public Member Functions

double bounds (double ang) const
 
double bounds2 (double ang) const
 
void fill (double psi, double vtx, int centbin)
 
void fillOffset (double s, double c, uint m, double vtx, int centbin)
 
void fillPt (double ptval, double vtx, int centbin)
 
double getCentRes1 (unsigned int bin) const
 
double getCentRes10 (unsigned int bin) const
 
double getCentRes2 (unsigned int bin) const
 
double getCentRes20 (unsigned int bin) const
 
double getCentRes25 (unsigned int bin) const
 
double getCentRes30 (unsigned int bin) const
 
double getCentRes40 (unsigned int bin) const
 
double getCentRes5 (unsigned int bin) const
 
double getCentResErr1 (unsigned int bin) const
 
double getCentResErr10 (unsigned int bin) const
 
double getCentResErr2 (unsigned int bin) const
 
double getCentResErr20 (unsigned int bin) const
 
double getCentResErr25 (unsigned int bin) const
 
double getCentResErr30 (unsigned int bin) const
 
double getCentResErr40 (unsigned int bin) const
 
double getCentResErr5 (unsigned int bin) const
 
double getCnt (unsigned int bin) const
 
double getCoffset (double c, double vtx, int centbin) const
 
int getCutIndx (int centbin, double vtx, int iord) const
 
double getEtScale (double vtx, int centbin) const
 
double getFlatPsi (double psi, double vtx, int centbin) const
 
int getHBins () const
 
int getNcent () const
 
int getNvtx () const
 
int getOBins () const
 
int getOffsetIndx (int centbin, double vtx) const
 
double getOffsetPsi (double s, double c) const
 
double getPt (unsigned int bin) const
 
double getPt2 (unsigned int bin) const
 
double getPt2DB (unsigned int bin) const
 
double getPtcnt (unsigned int bin) const
 
double getPtDB (unsigned int bin) const
 
double getSoffset (double s, double vtx, int centbin) const
 
double getVtxMax () const
 
double getVtxMin () const
 
double getW (double pt, double vtx, int centbin) const
 
double getX (unsigned int bin) const
 
double getXDB (unsigned int bin) const
 
double getXoff (unsigned int bin) const
 
double getXoffDB (unsigned int bin) const
 
double getXYoffcnt (unsigned int bin) const
 
double getXYoffmult (unsigned int bin) const
 
double getY (unsigned int bin) const
 
double getYDB (unsigned int bin) const
 
double getYoff (unsigned int bin) const
 
double getYoffDB (unsigned int bin) const
 
 HiEvtPlaneFlatten ()
 
void init (int order, int nbins, std::string tag, int vord)
 
void setCaloCentRefBins (const int caloCentRefMinBin, const int caloCentRefMaxBin)
 
void setCentRes1 (unsigned int bin, double res, double err)
 
void setCentRes10 (unsigned int bin, double res, double err)
 
void setCentRes2 (unsigned int bin, double res, double err)
 
void setCentRes20 (unsigned int bin, double res, double err)
 
void setCentRes25 (unsigned int bin, double res, double err)
 
void setCentRes30 (unsigned int bin, double res, double err)
 
void setCentRes40 (unsigned int bin, double res, double err)
 
void setCentRes5 (unsigned int bin, double res, double err)
 
void setPt2DB (unsigned int indx, double val)
 
void setPtDB (unsigned int indx, double val)
 
void setXDB (unsigned int indx, double val)
 
void setXoffDB (unsigned int indx, double val)
 
void setYDB (unsigned int indx, double val)
 
void setYoffDB (unsigned int indx, double val)
 
 ~HiEvtPlaneFlatten ()
 

Private Attributes

int caloCentRefMaxBin_
 
int caloCentRefMinBin_
 
double centRes10_ [10]
 
double centRes1_ [100]
 
double centRes20_ [5]
 
double centRes25_ [4]
 
double centRes2_ [50]
 
double centRes30_ [3]
 
double centRes40_ [2]
 
double centRes5_ [20]
 
double centResErr10_ [10]
 
double centResErr1_ [100]
 
double centResErr20_ [5]
 
double centResErr25_ [4]
 
double centResErr2_ [50]
 
double centResErr30_ [3]
 
double centResErr40_ [2]
 
double centResErr5_ [20]
 
double flatCnt_ [MAXCUT]
 
double flatX_ [MAXCUT]
 
double flatXDB_ [MAXCUT]
 
double flatY_ [MAXCUT]
 
double flatYDB_ [MAXCUT]
 
int hbins_
 
int hOrder_
 
int obins_
 
double pt2_ [MAXCUTOFF]
 
double pt2DB_ [MAXCUTOFF]
 
double pt_ [MAXCUTOFF]
 
double ptcnt_ [MAXCUTOFF]
 
double ptDB_ [MAXCUTOFF]
 
int vorder_
 
double xoff_ [MAXCUTOFF]
 
double xoffDB_ [MAXCUTOFF]
 
double xyoffcnt_ [MAXCUTOFF]
 
uint xyoffmult_ [MAXCUTOFF]
 
double yoff_ [MAXCUTOFF]
 
double yoffDB_ [MAXCUTOFF]
 

Static Private Attributes

static double delvtx_ = 5.
 
static const int MAXCUT = 10000
 
static const int MAXCUTOFF = 1000
 
static double minvtx_ = -25.
 
static int nvtxbins_ = 10
 

Detailed Description

Definition at line 27 of file HiEvtPlaneFlatten.h.

Constructor & Destructor Documentation

HiEvtPlaneFlatten::HiEvtPlaneFlatten ( )
inlineexplicit

Definition at line 30 of file HiEvtPlaneFlatten.h.

References hbins_, hOrder_, and vorder_.

31  {
32  hbins_ = 1;
33  hOrder_ = 9;
34  vorder_ = 2; //sets default order of event plane
35  }
HiEvtPlaneFlatten::~HiEvtPlaneFlatten ( )
inline

Definition at line 197 of file HiEvtPlaneFlatten.h.

197 {}

Member Function Documentation

double HiEvtPlaneFlatten::bounds ( double  ang) const
inline

Definition at line 229 of file HiEvtPlaneFlatten.h.

References M_PI.

Referenced by getFlatPsi(), and getOffsetPsi().

229  {
230  if(ang<-M_PI) ang+=2.*M_PI;
231  if(ang>M_PI) ang-=2.*M_PI;
232  return ang;
233  }
#define M_PI
double HiEvtPlaneFlatten::bounds2 ( double  ang) const
inline

Definition at line 234 of file HiEvtPlaneFlatten.h.

References M_PI, and vorder_.

Referenced by getFlatPsi(), and getOffsetPsi().

234  {
235  double range = M_PI/(double) vorder_;
236  while(ang<-range) { ang+=2*range; }
237  while(ang>range) {ang-=2*range; }
238  return ang;
239  }
#define M_PI
void HiEvtPlaneFlatten::fill ( double  psi,
double  vtx,
int  centbin 
)
inline

Definition at line 96 of file HiEvtPlaneFlatten.h.

References funct::cos(), flatCnt_, flatX_, flatY_, getCutIndx(), hOrder_, relval_steps::k, funct::sin(), and vorder_.

97  {
98  if(fabs(psi)>4 ) return;
99  for(int k = 0; k<hOrder_; k++) {
100  double fsin = sin(vorder_*(k+1)*psi);
101  double fcos = cos(vorder_*(k+1)*psi);
102  int indx = getCutIndx(centbin,vtx,k);
103  if(indx>=0) {
104  flatX_[indx]+=fcos;
105  flatY_[indx]+=fsin;
106  ++flatCnt_[indx];
107  }
108  }
109  }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
double flatX_[MAXCUT]
std::map< std::string, int, std::less< std::string > > psi
int getCutIndx(int centbin, double vtx, int iord) const
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
double flatCnt_[MAXCUT]
double flatY_[MAXCUT]
void HiEvtPlaneFlatten::fillOffset ( double  s,
double  c,
uint  m,
double  vtx,
int  centbin 
)
inline

Definition at line 110 of file HiEvtPlaneFlatten.h.

References EnergyCorrector::c, getOffsetIndx(), visualization-live-secondInstance_cfg::m, alignCSCRings::s, xoff_, xyoffcnt_, xyoffmult_, and yoff_.

111  {
112  int indx = getOffsetIndx(centbin,vtx);
113  if(indx>=0) {
114  xoff_[indx]+=c;
115  yoff_[indx]+=s;
116  xyoffmult_[indx]+=m;
117  ++xyoffcnt_[indx];
118  }
119  }
double xoff_[MAXCUTOFF]
double yoff_[MAXCUTOFF]
int getOffsetIndx(int centbin, double vtx) const
uint xyoffmult_[MAXCUTOFF]
double xyoffcnt_[MAXCUTOFF]
void HiEvtPlaneFlatten::fillPt ( double  ptval,
double  vtx,
int  centbin 
)
inline

Definition at line 120 of file HiEvtPlaneFlatten.h.

References getOffsetIndx(), pt2_, pt_, and ptcnt_.

121  {
122  int indx = getOffsetIndx(centbin,vtx);
123  if(indx>=0) {
124  pt_[indx]+=ptval;
125  pt2_[indx]+=ptval*ptval;
126  ++ptcnt_[indx];
127  }
128  }
double ptcnt_[MAXCUTOFF]
double pt_[MAXCUTOFF]
int getOffsetIndx(int centbin, double vtx) const
double pt2_[MAXCUTOFF]
double HiEvtPlaneFlatten::getCentRes1 ( unsigned int  bin) const
inline

Definition at line 249 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centRes1_.

249 { if(bin<100) {return centRes1_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentRes10 ( unsigned int  bin) const
inline

Definition at line 252 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centRes10_.

252 { if(bin<10) {return centRes10_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentRes2 ( unsigned int  bin) const
inline

Definition at line 250 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centRes2_.

250 { if(bin<50) {return centRes2_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentRes20 ( unsigned int  bin) const
inline

Definition at line 253 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centRes20_.

253 { if(bin<5) {return centRes20_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentRes25 ( unsigned int  bin) const
inline

Definition at line 254 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centRes25_.

254 { if(bin<4) {return centRes25_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentRes30 ( unsigned int  bin) const
inline

Definition at line 255 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centRes30_.

255 { if(bin<3) {return centRes30_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentRes40 ( unsigned int  bin) const
inline

Definition at line 256 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centRes40_.

256 { if(bin<2 ) {return centRes40_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentRes5 ( unsigned int  bin) const
inline

Definition at line 251 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centRes5_.

251 { if(bin<20 ) {return centRes5_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentResErr1 ( unsigned int  bin) const
inline

Definition at line 258 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centResErr1_.

258 { if(bin<100) {return centResErr1_[bin];} else {return 0.;}}
double centResErr1_[100]
double HiEvtPlaneFlatten::getCentResErr10 ( unsigned int  bin) const
inline

Definition at line 261 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centResErr10_.

261 { if(bin<10) {return centResErr10_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentResErr2 ( unsigned int  bin) const
inline

Definition at line 259 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centResErr2_.

259 { if(bin<50) {return centResErr2_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentResErr20 ( unsigned int  bin) const
inline

Definition at line 262 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centResErr20_.

262 { if(bin<5) {return centResErr20_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentResErr25 ( unsigned int  bin) const
inline

Definition at line 263 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centResErr25_.

263 { if(bin<4) {return centResErr25_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentResErr30 ( unsigned int  bin) const
inline

Definition at line 264 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centResErr30_.

264 { if(bin<3) {return centResErr30_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentResErr40 ( unsigned int  bin) const
inline

Definition at line 265 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centResErr40_.

265 { if(bin<2) {return centResErr40_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCentResErr5 ( unsigned int  bin) const
inline

Definition at line 260 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and centResErr5_.

260 { if(bin<20) {return centResErr5_[bin];} else {return 0.;}}
double HiEvtPlaneFlatten::getCnt ( unsigned int  bin) const
inline

Definition at line 222 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and flatCnt_.

222 {return flatCnt_[bin];}
double flatCnt_[MAXCUT]
double HiEvtPlaneFlatten::getCoffset ( double  c,
double  vtx,
int  centbin 
) const
inline

Definition at line 181 of file HiEvtPlaneFlatten.h.

References EnergyCorrector::c, getOffsetIndx(), and xoffDB_.

Referenced by HiEvtPlaneFlatProducer::produce().

182  {
183  int indx = getOffsetIndx(centbin,vtx);
184  if ( indx >= 0 ) return c-xoffDB_[indx];
185  else return c;
186  }
double xoffDB_[MAXCUTOFF]
int getOffsetIndx(int centbin, double vtx) const
int HiEvtPlaneFlatten::getCutIndx ( int  centbin,
double  vtx,
int  iord 
) const
inline

Definition at line 72 of file HiEvtPlaneFlatten.h.

References GOODCOLL_filter_cfg::cut, delvtx_, hbins_, hOrder_, minvtx_, and nvtxbins_.

Referenced by fill(), and getFlatPsi().

73  {
74  int cut;
75  if(centbin < 0 ) return -1;
76  int ibin = centbin;
77  int ivtx = (vtx-minvtx_)/delvtx_;
78  if(vtx < minvtx_ || ivtx >= nvtxbins_) return -1;
79  cut = hOrder_*nvtxbins_*ibin + hOrder_*ivtx + iord;
80  if(cut<0 || cut>=hbins_) return -1;
81  return cut;
82  }
static double delvtx_
static double minvtx_
double HiEvtPlaneFlatten::getEtScale ( double  vtx,
int  centbin 
) const
inline

Definition at line 135 of file HiEvtPlaneFlatten.h.

References caloCentRefMaxBin_, caloCentRefMinBin_, getOffsetIndx(), getPtDB(), and i.

Referenced by getW(), and EvtPlaneProducer::produce().

135  {
136  int refmin = getOffsetIndx(caloCentRefMinBin_,vtx);
137  int refmax = getOffsetIndx(caloCentRefMaxBin_,vtx);
138  double caloCentRefVal_ = 0;
139  for(int i = refmin; i<=refmax; i++) {
140  caloCentRefVal_+=getPtDB(i);
141  }
142  caloCentRefVal_/=refmax-refmin+1.;
143  if(caloCentRefMinBin_<0) return 1.;
144  int indx = getOffsetIndx(centbin,vtx);
145  if(indx < 0 || caloCentRefVal_ == 0 || getPtDB(indx)==0) return 1.;
146  return caloCentRefVal_/getPtDB(indx);
147  }
int i
Definition: DBlmapReader.cc:9
double getPtDB(unsigned int bin) const
int getOffsetIndx(int centbin, double vtx) const
double HiEvtPlaneFlatten::getFlatPsi ( double  psi,
double  vtx,
int  centbin 
) const
inline

Definition at line 161 of file HiEvtPlaneFlatten.h.

References bounds(), bounds2(), funct::cos(), flatXDB_, flatYDB_, getCutIndx(), hOrder_, relval_steps::k, funct::sin(), and vorder_.

Referenced by HiEvtPlaneFlatProducer::produce().

162  {
163  double correction = 0;
164  for(int k = 0; k<hOrder_; k++) {
165  int indx = getCutIndx(centbin,vtx,k);
166  if(indx>=0) correction+=(2./(double)((k+1)*vorder_))*(flatXDB_[indx]*sin(vorder_*(k+1)*psi)-flatYDB_[indx]*cos(vorder_*(k+1)*psi));
167  }
168  psi+=correction;
169  psi=bounds(psi);
170  psi=bounds2(psi);
171  return psi;
172  }
double bounds(double ang) const
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
std::map< std::string, int, std::less< std::string > > psi
double bounds2(double ang) const
int getCutIndx(int centbin, double vtx, int iord) const
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
double flatYDB_[MAXCUT]
double flatXDB_[MAXCUT]
int HiEvtPlaneFlatten::getHBins ( ) const
inline

Definition at line 198 of file HiEvtPlaneFlatten.h.

References hbins_.

Referenced by LoadEPDB::LoadEPDB().

198 {return hbins_;}
int HiEvtPlaneFlatten::getNcent ( ) const
inline

Definition at line 203 of file HiEvtPlaneFlatten.h.

References hbins_.

203 {return hbins_;}
int HiEvtPlaneFlatten::getNvtx ( ) const
inline

Definition at line 200 of file HiEvtPlaneFlatten.h.

References nvtxbins_.

200 {return nvtxbins_;}
int HiEvtPlaneFlatten::getOBins ( ) const
inline

Definition at line 199 of file HiEvtPlaneFlatten.h.

References obins_.

Referenced by LoadEPDB::LoadEPDB().

199 {return obins_;}
int HiEvtPlaneFlatten::getOffsetIndx ( int  centbin,
double  vtx 
) const
inline

Definition at line 84 of file HiEvtPlaneFlatten.h.

References GOODCOLL_filter_cfg::cut, delvtx_, hbins_, minvtx_, and nvtxbins_.

Referenced by fillOffset(), fillPt(), getCoffset(), getEtScale(), getSoffset(), and getW().

85  {
86  int cut;
87  if(centbin < 0 ) return -1;
88  int ibin = centbin;
89  int ivtx = (vtx-minvtx_)/delvtx_;
90  if(ivtx < 0 || ivtx > nvtxbins_) return -1;
91  cut = nvtxbins_*ibin + ivtx ;
92  if(cut<0 || cut>hbins_) return -1;
93  return cut;
94  }
static double delvtx_
static double minvtx_
double HiEvtPlaneFlatten::getOffsetPsi ( double  s,
double  c 
) const
inline

Definition at line 188 of file HiEvtPlaneFlatten.h.

References bounds(), bounds2(), alignCSCRings::e, and vorder_.

Referenced by HiEvtPlaneFlatProducer::produce().

189  {
190  double psi = atan2(s, c)/vorder_;
191  if((fabs(s)<1e-4) && (fabs(c)<1e-4)) psi = 0.;
192  psi=bounds(psi);
193  psi=bounds2(psi);
194  return psi;
195  }
double bounds(double ang) const
std::map< std::string, int, std::less< std::string > > psi
double bounds2(double ang) const
double HiEvtPlaneFlatten::getPt ( unsigned int  bin) const
inline

Definition at line 213 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and pt_.

213 {return pt_[bin];}
double pt_[MAXCUTOFF]
double HiEvtPlaneFlatten::getPt2 ( unsigned int  bin) const
inline

Definition at line 214 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and pt2_.

214 {return pt2_[bin];}
double pt2_[MAXCUTOFF]
double HiEvtPlaneFlatten::getPt2DB ( unsigned int  bin) const
inline

Definition at line 216 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, MAXCUTOFF, and pt2DB_.

Referenced by getW().

216 {if(bin<MAXCUTOFF) {return pt2DB_[bin];} else {return 0.;}}
static const int MAXCUTOFF
double pt2DB_[MAXCUTOFF]
double HiEvtPlaneFlatten::getPtcnt ( unsigned int  bin) const
inline

Definition at line 217 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and ptcnt_.

217 {return ptcnt_[bin];}
double ptcnt_[MAXCUTOFF]
double HiEvtPlaneFlatten::getPtDB ( unsigned int  bin) const
inline

Definition at line 215 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, MAXCUTOFF, and ptDB_.

Referenced by getEtScale(), and getW().

215 {if(bin<MAXCUTOFF) {return ptDB_[bin];} else {return 0.;}}
static const int MAXCUTOFF
double ptDB_[MAXCUTOFF]
double HiEvtPlaneFlatten::getSoffset ( double  s,
double  vtx,
int  centbin 
) const
inline

Definition at line 174 of file HiEvtPlaneFlatten.h.

References getOffsetIndx(), alignCSCRings::s, and yoffDB_.

Referenced by HiEvtPlaneFlatProducer::produce().

175  {
176  int indx = getOffsetIndx(centbin,vtx);
177  if ( indx >= 0 ) return s-yoffDB_[indx];
178  else return s;
179  }
double yoffDB_[MAXCUTOFF]
int getOffsetIndx(int centbin, double vtx) const
double HiEvtPlaneFlatten::getVtxMax ( ) const
inline

Definition at line 202 of file HiEvtPlaneFlatten.h.

References delvtx_, minvtx_, and nvtxbins_.

202 {return minvtx_+nvtxbins_*delvtx_;}
static double delvtx_
static double minvtx_
double HiEvtPlaneFlatten::getVtxMin ( ) const
inline

Definition at line 201 of file HiEvtPlaneFlatten.h.

References minvtx_.

201 {return minvtx_;}
static double minvtx_
double HiEvtPlaneFlatten::getW ( double  pt,
double  vtx,
int  centbin 
) const
inline

Definition at line 149 of file HiEvtPlaneFlatten.h.

References getEtScale(), getOffsetIndx(), getPt2DB(), getPtDB(), funct::pow(), and pileupReCalc_HLTpaths::scale.

Referenced by EvtPlaneProducer::produce().

150  {
151  int indx = getOffsetIndx(centbin,vtx);
152  if(indx>=0) {
153  double scale = getEtScale(vtx,centbin);
154  double ptval = getPtDB(indx)*scale;
155  double pt2val = getPt2DB(indx)*pow(scale,2);
156  if(ptval>0) return pt*scale-pt2val/ptval;
157  }
158  return 0.;
159  }
double getPt2DB(unsigned int bin) const
double getPtDB(unsigned int bin) const
double getEtScale(double vtx, int centbin) const
int getOffsetIndx(int centbin, double vtx) const
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
double HiEvtPlaneFlatten::getX ( unsigned int  bin) const
inline

Definition at line 205 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and flatX_.

205 {return flatX_[bin];}
double flatX_[MAXCUT]
double HiEvtPlaneFlatten::getXDB ( unsigned int  bin) const
inline

Definition at line 218 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and flatXDB_.

218 {return flatXDB_[bin];}
double flatXDB_[MAXCUT]
double HiEvtPlaneFlatten::getXoff ( unsigned int  bin) const
inline

Definition at line 207 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and xoff_.

207 {return xoff_[bin];}
double xoff_[MAXCUTOFF]
double HiEvtPlaneFlatten::getXoffDB ( unsigned int  bin) const
inline

Definition at line 209 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and xoffDB_.

209 {return xoffDB_[bin];}
double xoffDB_[MAXCUTOFF]
double HiEvtPlaneFlatten::getXYoffcnt ( unsigned int  bin) const
inline

Definition at line 211 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and xyoffcnt_.

211 {return xyoffcnt_[bin];}
double xyoffcnt_[MAXCUTOFF]
double HiEvtPlaneFlatten::getXYoffmult ( unsigned int  bin) const
inline

Definition at line 212 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and xyoffmult_.

212 {return xyoffmult_[bin];}
uint xyoffmult_[MAXCUTOFF]
double HiEvtPlaneFlatten::getY ( unsigned int  bin) const
inline

Definition at line 206 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and flatY_.

206 {return flatY_[bin];}
double flatY_[MAXCUT]
double HiEvtPlaneFlatten::getYDB ( unsigned int  bin) const
inline

Definition at line 219 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and flatYDB_.

219 {return flatYDB_[bin];}
double flatYDB_[MAXCUT]
double HiEvtPlaneFlatten::getYoff ( unsigned int  bin) const
inline

Definition at line 208 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and yoff_.

208 {return yoff_[bin];}
double yoff_[MAXCUTOFF]
double HiEvtPlaneFlatten::getYoffDB ( unsigned int  bin) const
inline

Definition at line 210 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, and yoffDB_.

210 {return yoffDB_[bin];}
double yoffDB_[MAXCUTOFF]
void HiEvtPlaneFlatten::init ( int  order,
int  nbins,
std::string  tag,
int  vord 
)
inline

Definition at line 38 of file HiEvtPlaneFlatten.h.

References caloCentRefMaxBin_, caloCentRefMinBin_, flatCnt_, flatX_, flatXDB_, flatY_, flatYDB_, hbins_, hOrder_, i, MAXCUT, nvtxbins_, obins_, pt2_, pt2DB_, pt_, ptcnt_, ptDB_, vorder_, xoff_, xoffDB_, xyoffcnt_, xyoffmult_, yoff_, and yoffDB_.

Referenced by EvtPlaneProducer::EvtPlaneProducer(), and HiEvtPlaneFlatProducer::HiEvtPlaneFlatProducer().

39  {
40  hOrder_ = order; //order of flattening
41  vorder_ = vord; //1(v1), 2(v2), 3(v3), 4(v4)
42  caloCentRefMinBin_ = -1;
43  caloCentRefMaxBin_ = -1;
46  if(hbins_>MAXCUT) {
47  hbins_ = 1;
48  hOrder_ = 9;
49  }
50  for(int i = 0; i<hbins_; i++) {
51  flatX_[i]=0;
52  flatY_[i]=0;
53  flatXDB_[i]=0;
54  flatYDB_[i]=0;
55  flatCnt_[i]=0;
56  }
57  for(int i = 0; i<obins_; i++) {
58  xoff_[i]=0;
59  yoff_[i]=0;
60  xoffDB_[i]=0;
61  yoffDB_[i]=0;
62  xyoffcnt_[i]=0;
63  xyoffmult_[i]=0;
64  pt_[i]=0;
65  pt2_[i]=0;
66  ptDB_[i]=0;
67  pt2DB_[i]=0;
68  ptcnt_[i]=0;
69  }
70  }
double xoffDB_[MAXCUTOFF]
int i
Definition: DBlmapReader.cc:9
static const int MAXCUT
double ptcnt_[MAXCUTOFF]
double yoffDB_[MAXCUTOFF]
double pt_[MAXCUTOFF]
double xoff_[MAXCUTOFF]
double flatX_[MAXCUT]
double ptDB_[MAXCUTOFF]
double yoff_[MAXCUTOFF]
uint xyoffmult_[MAXCUTOFF]
double pt2DB_[MAXCUTOFF]
double flatCnt_[MAXCUT]
double pt2_[MAXCUTOFF]
double xyoffcnt_[MAXCUTOFF]
double flatYDB_[MAXCUT]
double flatXDB_[MAXCUT]
double flatY_[MAXCUT]
void HiEvtPlaneFlatten::setCaloCentRefBins ( const int  caloCentRefMinBin,
const int  caloCentRefMaxBin 
)
inline

Definition at line 130 of file HiEvtPlaneFlatten.h.

References caloCentRefMaxBin_, and caloCentRefMinBin_.

Referenced by HiEvtPlaneFlatProducer::produce(), and EvtPlaneProducer::produce().

130  {
131  caloCentRefMinBin_ = caloCentRefMinBin;
132  caloCentRefMaxBin_ = caloCentRefMaxBin;
133  }
void HiEvtPlaneFlatten::setCentRes1 ( unsigned int  bin,
double  res,
double  err 
)
inline

Definition at line 240 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, centRes1_, and centResErr1_.

240 { if(bin<100) {centRes1_[bin]=res; centResErr1_[bin]=err;}}
double centResErr1_[100]
void HiEvtPlaneFlatten::setCentRes10 ( unsigned int  bin,
double  res,
double  err 
)
inline

Definition at line 243 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, centRes10_, and centResErr10_.

243 { if(bin<10) {centRes10_[bin]=res; centResErr10_[bin]=err;}}
void HiEvtPlaneFlatten::setCentRes2 ( unsigned int  bin,
double  res,
double  err 
)
inline

Definition at line 241 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, centRes2_, and centResErr2_.

241 { if(bin<50) {centRes2_[bin]=res; centResErr2_[bin]=err;}}
void HiEvtPlaneFlatten::setCentRes20 ( unsigned int  bin,
double  res,
double  err 
)
inline

Definition at line 244 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, centRes20_, and centResErr20_.

244 { if(bin<5) {centRes20_[bin]=res; centResErr20_[bin]=err;}}
void HiEvtPlaneFlatten::setCentRes25 ( unsigned int  bin,
double  res,
double  err 
)
inline

Definition at line 245 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, centRes25_, and centResErr25_.

245 { if(bin<4) {centRes25_[bin]=res; centResErr25_[bin]=err;}}
void HiEvtPlaneFlatten::setCentRes30 ( unsigned int  bin,
double  res,
double  err 
)
inline

Definition at line 246 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, centRes30_, and centResErr30_.

246 { if(bin<3) {centRes30_[bin]=res; centResErr30_[bin]=err;}}
void HiEvtPlaneFlatten::setCentRes40 ( unsigned int  bin,
double  res,
double  err 
)
inline

Definition at line 247 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, centRes40_, and centResErr40_.

247 { if(bin<2) {centRes40_[bin]=res; centResErr40_[bin]=err;}}
void HiEvtPlaneFlatten::setCentRes5 ( unsigned int  bin,
double  res,
double  err 
)
inline

Definition at line 242 of file HiEvtPlaneFlatten.h.

References newFWLiteAna::bin, centRes5_, and centResErr5_.

242 { if(bin<20) {centRes5_[bin]=res; centResErr5_[bin]=err;}}
void HiEvtPlaneFlatten::setPt2DB ( unsigned int  indx,
double  val 
)
inline

Definition at line 228 of file HiEvtPlaneFlatten.h.

References pt2DB_.

Referenced by LoadEPDB::LoadEPDB().

228 {pt2DB_[indx]=val;}
double pt2DB_[MAXCUTOFF]
void HiEvtPlaneFlatten::setPtDB ( unsigned int  indx,
double  val 
)
inline

Definition at line 227 of file HiEvtPlaneFlatten.h.

References ptDB_.

Referenced by LoadEPDB::LoadEPDB().

227 {ptDB_[indx]=val;}
double ptDB_[MAXCUTOFF]
void HiEvtPlaneFlatten::setXDB ( unsigned int  indx,
double  val 
)
inline

Definition at line 223 of file HiEvtPlaneFlatten.h.

References flatXDB_.

Referenced by LoadEPDB::LoadEPDB().

223 {flatXDB_[indx]=val;}
double flatXDB_[MAXCUT]
void HiEvtPlaneFlatten::setXoffDB ( unsigned int  indx,
double  val 
)
inline

Definition at line 225 of file HiEvtPlaneFlatten.h.

References xoffDB_.

Referenced by LoadEPDB::LoadEPDB().

225 {xoffDB_[indx]=val;}
double xoffDB_[MAXCUTOFF]
void HiEvtPlaneFlatten::setYDB ( unsigned int  indx,
double  val 
)
inline

Definition at line 224 of file HiEvtPlaneFlatten.h.

References flatYDB_.

Referenced by LoadEPDB::LoadEPDB().

224 {flatYDB_[indx]=val;}
double flatYDB_[MAXCUT]
void HiEvtPlaneFlatten::setYoffDB ( unsigned int  indx,
double  val 
)
inline

Definition at line 226 of file HiEvtPlaneFlatten.h.

References yoffDB_.

Referenced by LoadEPDB::LoadEPDB().

226 {yoffDB_[indx]=val;}
double yoffDB_[MAXCUTOFF]

Member Data Documentation

int HiEvtPlaneFlatten::caloCentRefMaxBin_
private

Definition at line 325 of file HiEvtPlaneFlatten.h.

Referenced by getEtScale(), init(), and setCaloCentRefBins().

int HiEvtPlaneFlatten::caloCentRefMinBin_
private

Definition at line 324 of file HiEvtPlaneFlatten.h.

Referenced by getEtScale(), init(), and setCaloCentRefBins().

double HiEvtPlaneFlatten::centRes10_[10]
private

Definition at line 304 of file HiEvtPlaneFlatten.h.

Referenced by getCentRes10(), and setCentRes10().

double HiEvtPlaneFlatten::centRes1_[100]
private

Definition at line 295 of file HiEvtPlaneFlatten.h.

Referenced by getCentRes1(), and setCentRes1().

double HiEvtPlaneFlatten::centRes20_[5]
private

Definition at line 307 of file HiEvtPlaneFlatten.h.

Referenced by getCentRes20(), and setCentRes20().

double HiEvtPlaneFlatten::centRes25_[4]
private

Definition at line 310 of file HiEvtPlaneFlatten.h.

Referenced by getCentRes25(), and setCentRes25().

double HiEvtPlaneFlatten::centRes2_[50]
private

Definition at line 298 of file HiEvtPlaneFlatten.h.

Referenced by getCentRes2(), and setCentRes2().

double HiEvtPlaneFlatten::centRes30_[3]
private

Definition at line 313 of file HiEvtPlaneFlatten.h.

Referenced by getCentRes30(), and setCentRes30().

double HiEvtPlaneFlatten::centRes40_[2]
private

Definition at line 316 of file HiEvtPlaneFlatten.h.

Referenced by getCentRes40(), and setCentRes40().

double HiEvtPlaneFlatten::centRes5_[20]
private

Definition at line 301 of file HiEvtPlaneFlatten.h.

Referenced by getCentRes5(), and setCentRes5().

double HiEvtPlaneFlatten::centResErr10_[10]
private

Definition at line 305 of file HiEvtPlaneFlatten.h.

Referenced by getCentResErr10(), and setCentRes10().

double HiEvtPlaneFlatten::centResErr1_[100]
private

Definition at line 296 of file HiEvtPlaneFlatten.h.

Referenced by getCentResErr1(), and setCentRes1().

double HiEvtPlaneFlatten::centResErr20_[5]
private

Definition at line 308 of file HiEvtPlaneFlatten.h.

Referenced by getCentResErr20(), and setCentRes20().

double HiEvtPlaneFlatten::centResErr25_[4]
private

Definition at line 311 of file HiEvtPlaneFlatten.h.

Referenced by getCentResErr25(), and setCentRes25().

double HiEvtPlaneFlatten::centResErr2_[50]
private

Definition at line 299 of file HiEvtPlaneFlatten.h.

Referenced by getCentResErr2(), and setCentRes2().

double HiEvtPlaneFlatten::centResErr30_[3]
private

Definition at line 314 of file HiEvtPlaneFlatten.h.

Referenced by getCentResErr30(), and setCentRes30().

double HiEvtPlaneFlatten::centResErr40_[2]
private

Definition at line 317 of file HiEvtPlaneFlatten.h.

Referenced by getCentResErr40(), and setCentRes40().

double HiEvtPlaneFlatten::centResErr5_[20]
private

Definition at line 302 of file HiEvtPlaneFlatten.h.

Referenced by getCentResErr5(), and setCentRes5().

double HiEvtPlaneFlatten::delvtx_ = 5.
staticprivate

Definition at line 270 of file HiEvtPlaneFlatten.h.

Referenced by getCutIndx(), getOffsetIndx(), and getVtxMax().

double HiEvtPlaneFlatten::flatCnt_[MAXCUT]
private

Definition at line 278 of file HiEvtPlaneFlatten.h.

Referenced by fill(), getCnt(), and init().

double HiEvtPlaneFlatten::flatX_[MAXCUT]
private

Definition at line 274 of file HiEvtPlaneFlatten.h.

Referenced by fill(), getX(), and init().

double HiEvtPlaneFlatten::flatXDB_[MAXCUT]
private

Definition at line 276 of file HiEvtPlaneFlatten.h.

Referenced by getFlatPsi(), getXDB(), init(), and setXDB().

double HiEvtPlaneFlatten::flatY_[MAXCUT]
private

Definition at line 275 of file HiEvtPlaneFlatten.h.

Referenced by fill(), getY(), and init().

double HiEvtPlaneFlatten::flatYDB_[MAXCUT]
private

Definition at line 277 of file HiEvtPlaneFlatten.h.

Referenced by getFlatPsi(), getYDB(), init(), and setYDB().

int HiEvtPlaneFlatten::hbins_
private
int HiEvtPlaneFlatten::hOrder_
private

Definition at line 320 of file HiEvtPlaneFlatten.h.

Referenced by fill(), getCutIndx(), getFlatPsi(), HiEvtPlaneFlatten(), and init().

const int HiEvtPlaneFlatten::MAXCUT = 10000
staticprivate

Definition at line 271 of file HiEvtPlaneFlatten.h.

Referenced by init().

const int HiEvtPlaneFlatten::MAXCUTOFF = 1000
staticprivate

Definition at line 272 of file HiEvtPlaneFlatten.h.

Referenced by getPt2DB(), and getPtDB().

double HiEvtPlaneFlatten::minvtx_ = -25.
staticprivate

Definition at line 269 of file HiEvtPlaneFlatten.h.

Referenced by getCutIndx(), getOffsetIndx(), getVtxMax(), and getVtxMin().

int HiEvtPlaneFlatten::nvtxbins_ = 10
staticprivate

Definition at line 268 of file HiEvtPlaneFlatten.h.

Referenced by getCutIndx(), getNvtx(), getOffsetIndx(), getVtxMax(), and init().

int HiEvtPlaneFlatten::obins_
private

Definition at line 322 of file HiEvtPlaneFlatten.h.

Referenced by getOBins(), and init().

double HiEvtPlaneFlatten::pt2_[MAXCUTOFF]
private

Definition at line 290 of file HiEvtPlaneFlatten.h.

Referenced by fillPt(), getPt2(), and init().

double HiEvtPlaneFlatten::pt2DB_[MAXCUTOFF]
private

Definition at line 292 of file HiEvtPlaneFlatten.h.

Referenced by getPt2DB(), init(), and setPt2DB().

double HiEvtPlaneFlatten::pt_[MAXCUTOFF]
private

Definition at line 289 of file HiEvtPlaneFlatten.h.

Referenced by fillPt(), getPt(), and init().

double HiEvtPlaneFlatten::ptcnt_[MAXCUTOFF]
private

Definition at line 293 of file HiEvtPlaneFlatten.h.

Referenced by fillPt(), getPtcnt(), and init().

double HiEvtPlaneFlatten::ptDB_[MAXCUTOFF]
private

Definition at line 291 of file HiEvtPlaneFlatten.h.

Referenced by getPtDB(), init(), and setPtDB().

int HiEvtPlaneFlatten::vorder_
private

Definition at line 323 of file HiEvtPlaneFlatten.h.

Referenced by bounds2(), fill(), getFlatPsi(), getOffsetPsi(), HiEvtPlaneFlatten(), and init().

double HiEvtPlaneFlatten::xoff_[MAXCUTOFF]
private

Definition at line 282 of file HiEvtPlaneFlatten.h.

Referenced by fillOffset(), getXoff(), and init().

double HiEvtPlaneFlatten::xoffDB_[MAXCUTOFF]
private

Definition at line 284 of file HiEvtPlaneFlatten.h.

Referenced by getCoffset(), getXoffDB(), init(), and setXoffDB().

double HiEvtPlaneFlatten::xyoffcnt_[MAXCUTOFF]
private

Definition at line 286 of file HiEvtPlaneFlatten.h.

Referenced by fillOffset(), getXYoffcnt(), and init().

uint HiEvtPlaneFlatten::xyoffmult_[MAXCUTOFF]
private

Definition at line 287 of file HiEvtPlaneFlatten.h.

Referenced by fillOffset(), getXYoffmult(), and init().

double HiEvtPlaneFlatten::yoff_[MAXCUTOFF]
private

Definition at line 283 of file HiEvtPlaneFlatten.h.

Referenced by fillOffset(), getYoff(), and init().

double HiEvtPlaneFlatten::yoffDB_[MAXCUTOFF]
private

Definition at line 285 of file HiEvtPlaneFlatten.h.

Referenced by getSoffset(), getYoffDB(), init(), and setYoffDB().