12 #ifndef DataFormats_EvtPlane_h
13 #define DataFormats_EvtPlane_h
23 void addLevel(
int level,
double ang,
double sumsin,
double sumcos);
33 float qy(
int level=2)
const {
return sumSin(level); }
34 float qx(
int level=2)
const {
return sumCos(level); }
36 float vn(
int level=2)
const{
return (
q(level)>0 && fabs(
sumw())>0)?
q(level)/fabs(
sumw()): 0.;}
void addLevel(int level, double ang, double sumsin, double sumcos)
float qy(int level=2) const
float sumCos(int level=2) const
std::vector< EvtPlane > EvtPlaneCollection
float angle(int level=2) const
float vn(int level=2) const
EvtPlane(int epindx=0, int level=2, double planeA=0, double sumSin=0, double sumCos=0, double sumw=0, double sumw2=0, double pe=0, double pe2=0, uint mult=0)
float qx(int level=2) const
float sumSin(int level=2) const
float q(int level=2) const
Power< A, B >::type pow(const A &a, const B &b)