CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::EvtPlane Class Reference

#include <EvtPlane.h>

Public Member Functions

void addLevel (int level, double ang, double sumsin, double sumcos)
 
float angle (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)
 
int indx () const
 
float mult () const
 
float q (int level=2) const
 
float qx (int level=2) const
 
float qy (int level=2) const
 
float sumCos (int level=2) const
 
float sumPtOrEt () const
 
float sumPtOrEt2 () const
 
float sumSin (int level=2) const
 
float sumw () const
 
float sumw2 () const
 
float vn (int level=2) const
 
virtual ~EvtPlane ()
 

Private Attributes

float angle_ [4]
 
int indx_
 
uint mult_
 
float sumCos_ [4]
 
float sumPtOrEt2_
 
float sumPtOrEt_
 
float sumSin_ [4]
 
float sumw2_
 
float sumw_
 

Detailed Description

Definition at line 19 of file EvtPlane.h.

Constructor & Destructor Documentation

EvtPlane::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 
)

Definition at line 5 of file EvtPlane.cc.

References angle_, mps_fire::i, hcalDigis_cfi::level, sumCos(), sumCos_, sumSin(), and sumSin_.

6  :
7  indx_(epindx),
8  sumw_(sumw),
9  sumw2_(sumw2),
12  mult_(mult)
13 {
14  for ( int i = 0; i < 4; ++i ) {
15  angle_[i] = sumSin_[i] = sumCos_[i] = -10;
16  }
17  angle_[level] = planeA;
18  sumSin_[level] = sumSin;
19  sumCos_[level] = sumCos;
20  // default constructor
21 }
float sumSin_[4]
Definition: EvtPlane.h:41
float sumw_
Definition: EvtPlane.h:43
float sumCos(int level=2) const
Definition: EvtPlane.h:27
float sumPtOrEt_
Definition: EvtPlane.h:45
float angle_[4]
Definition: EvtPlane.h:40
float sumw() const
Definition: EvtPlane.h:28
float sumw2_
Definition: EvtPlane.h:44
float sumCos_[4]
Definition: EvtPlane.h:42
float sumPtOrEt2() const
Definition: EvtPlane.h:31
float mult() const
Definition: EvtPlane.h:32
float sumPtOrEt2_
Definition: EvtPlane.h:46
float sumPtOrEt() const
Definition: EvtPlane.h:30
float sumw2() const
Definition: EvtPlane.h:29
float sumSin(int level=2) const
Definition: EvtPlane.h:26
EvtPlane::~EvtPlane ( )
virtual

Definition at line 28 of file EvtPlane.cc.

29 {
30 }

Member Function Documentation

void EvtPlane::addLevel ( int  level,
double  ang,
double  sumsin,
double  sumcos 
)

Definition at line 22 of file EvtPlane.cc.

References angle_, hcalDigis_cfi::level, sumCos_, and sumSin_.

Referenced by HiEvtPlaneFlatProducer::produce().

22  {
23  angle_[level] = ang;
24  sumSin_[level] = sumsin;
25  sumCos_[level] = sumcos;
26 }
float sumSin_[4]
Definition: EvtPlane.h:41
float angle_[4]
Definition: EvtPlane.h:40
float sumCos_[4]
Definition: EvtPlane.h:42
float reco::EvtPlane::angle ( int  level = 2) const
inline

Definition at line 25 of file EvtPlane.h.

References angle_, and hcalDigis_cfi::level.

Referenced by HiEvtPlaneFlatProducer::produce().

25 { return (level>=0&&level<4)? angle_[level]:angle_[2]; }
float angle_[4]
Definition: EvtPlane.h:40
int reco::EvtPlane::indx ( ) const
inline

Definition at line 24 of file EvtPlane.h.

References indx_.

24 { return indx_ ;}
float reco::EvtPlane::mult ( ) const
inline

Definition at line 32 of file EvtPlane.h.

References mult_.

32 { return mult_;}
float reco::EvtPlane::q ( int  level = 2) const
inline

Definition at line 35 of file EvtPlane.h.

References funct::pow(), qx(), qy(), and mathSSE::sqrt().

Referenced by vn().

35 { return ((pow(qx(level),2)+pow(qy(level),2))>0)? sqrt(pow(qx(level),2)+pow(qy(level),2)): 0.;}
float qy(int level=2) const
Definition: EvtPlane.h:33
T sqrt(T t)
Definition: SSEVec.h:18
float qx(int level=2) const
Definition: EvtPlane.h:34
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
float reco::EvtPlane::qx ( int  level = 2) const
inline

Definition at line 34 of file EvtPlane.h.

References sumCos().

Referenced by q().

34 { return sumCos(level); }
float sumCos(int level=2) const
Definition: EvtPlane.h:27
float reco::EvtPlane::qy ( int  level = 2) const
inline

Definition at line 33 of file EvtPlane.h.

References sumSin().

Referenced by q().

33 { return sumSin(level); }
float sumSin(int level=2) const
Definition: EvtPlane.h:26
float reco::EvtPlane::sumCos ( int  level = 2) const
inline

Definition at line 27 of file EvtPlane.h.

References hcalDigis_cfi::level, and sumCos_.

Referenced by EvtPlane(), and qx().

27 { return (level>=0&&level<4)? sumCos_[level]:sumCos_[2];}
float sumCos_[4]
Definition: EvtPlane.h:42
float reco::EvtPlane::sumPtOrEt ( ) const
inline

Definition at line 30 of file EvtPlane.h.

References sumPtOrEt_.

30 { return sumPtOrEt_;}
float sumPtOrEt_
Definition: EvtPlane.h:45
float reco::EvtPlane::sumPtOrEt2 ( ) const
inline

Definition at line 31 of file EvtPlane.h.

References sumPtOrEt2_.

31 { return sumPtOrEt2_;}
float sumPtOrEt2_
Definition: EvtPlane.h:46
float reco::EvtPlane::sumSin ( int  level = 2) const
inline

Definition at line 26 of file EvtPlane.h.

References hcalDigis_cfi::level, and sumSin_.

Referenced by EvtPlane(), and qy().

26 { return (level>=0&&level<4)? sumSin_[level]:sumSin_[2];}
float sumSin_[4]
Definition: EvtPlane.h:41
float reco::EvtPlane::sumw ( ) const
inline

Definition at line 28 of file EvtPlane.h.

References sumw_.

Referenced by vn().

28 { return sumw_;}
float sumw_
Definition: EvtPlane.h:43
float reco::EvtPlane::sumw2 ( ) const
inline

Definition at line 29 of file EvtPlane.h.

References sumw2_.

29 { return sumw2_;}
float sumw2_
Definition: EvtPlane.h:44
float reco::EvtPlane::vn ( int  level = 2) const
inline

Definition at line 36 of file EvtPlane.h.

References q(), and sumw().

36 { return (q(level)>0 && fabs(sumw())>0)? q(level)/fabs(sumw()): 0.;}
float sumw() const
Definition: EvtPlane.h:28
float q(int level=2) const
Definition: EvtPlane.h:35

Member Data Documentation

float reco::EvtPlane::angle_[4]
private

Definition at line 40 of file EvtPlane.h.

Referenced by addLevel(), angle(), and EvtPlane().

int reco::EvtPlane::indx_
private

Definition at line 39 of file EvtPlane.h.

Referenced by indx().

uint reco::EvtPlane::mult_
private

Definition at line 47 of file EvtPlane.h.

Referenced by mult().

float reco::EvtPlane::sumCos_[4]
private

Definition at line 42 of file EvtPlane.h.

Referenced by addLevel(), EvtPlane(), and sumCos().

float reco::EvtPlane::sumPtOrEt2_
private

Definition at line 46 of file EvtPlane.h.

Referenced by sumPtOrEt2().

float reco::EvtPlane::sumPtOrEt_
private

Definition at line 45 of file EvtPlane.h.

Referenced by sumPtOrEt().

float reco::EvtPlane::sumSin_[4]
private

Definition at line 41 of file EvtPlane.h.

Referenced by addLevel(), EvtPlane(), and sumSin().

float reco::EvtPlane::sumw2_
private

Definition at line 44 of file EvtPlane.h.

Referenced by sumw2().

float reco::EvtPlane::sumw_
private

Definition at line 43 of file EvtPlane.h.

Referenced by sumw().