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 20 of file EvtPlane.h.

Constructor & Destructor Documentation

◆ EvtPlane()

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.

16  for (int i = 0; i < 4; ++i) {
17  angle_[i] = sumSin_[i] = sumCos_[i] = -10;
18  }
19  angle_[level] = planeA;
20  sumSin_[level] = sumSin;
21  sumCos_[level] = sumCos;
22  // default constructor
23 }

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

◆ ~EvtPlane()

EvtPlane::~EvtPlane ( )
virtual

Definition at line 30 of file EvtPlane.cc.

30 {}

Member Function Documentation

◆ addLevel()

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

Definition at line 24 of file EvtPlane.cc.

24  {
25  angle_[level] = ang;
26  sumSin_[level] = sumsin;
27  sumCos_[level] = sumcos;
28 }

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

◆ angle()

float reco::EvtPlane::angle ( int  level = 2) const
inline

Definition at line 35 of file EvtPlane.h.

35 { return (level >= 0 && level < 4) ? angle_[level] : angle_[2]; }

References angle_, and personalPlayback::level.

◆ indx()

int reco::EvtPlane::indx ( ) const
inline

Definition at line 34 of file EvtPlane.h.

34 { return indx_; }

References indx_.

◆ mult()

float reco::EvtPlane::mult ( ) const
inline

Definition at line 42 of file EvtPlane.h.

42 { return mult_; }

References mult_.

◆ q()

float reco::EvtPlane::q ( int  level = 2) const
inline

Definition at line 45 of file EvtPlane.h.

45  {
46  return ((pow(qx(level), 2) + pow(qy(level), 2)) > 0) ? sqrt(pow(qx(level), 2) + pow(qy(level), 2)) : 0.;
47  }

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

Referenced by vn().

◆ qx()

float reco::EvtPlane::qx ( int  level = 2) const
inline

Definition at line 44 of file EvtPlane.h.

44 { return sumCos(level); }

References personalPlayback::level, and sumCos().

Referenced by q().

◆ qy()

float reco::EvtPlane::qy ( int  level = 2) const
inline

Definition at line 43 of file EvtPlane.h.

43 { return sumSin(level); }

References personalPlayback::level, and sumSin().

Referenced by q().

◆ sumCos()

float reco::EvtPlane::sumCos ( int  level = 2) const
inline

Definition at line 37 of file EvtPlane.h.

37 { return (level >= 0 && level < 4) ? sumCos_[level] : sumCos_[2]; }

References personalPlayback::level, and sumCos_.

Referenced by EvtPlane(), and qx().

◆ sumPtOrEt()

float reco::EvtPlane::sumPtOrEt ( ) const
inline

Definition at line 40 of file EvtPlane.h.

40 { return sumPtOrEt_; }

References sumPtOrEt_.

◆ sumPtOrEt2()

float reco::EvtPlane::sumPtOrEt2 ( ) const
inline

Definition at line 41 of file EvtPlane.h.

41 { return sumPtOrEt2_; }

References sumPtOrEt2_.

◆ sumSin()

float reco::EvtPlane::sumSin ( int  level = 2) const
inline

Definition at line 36 of file EvtPlane.h.

36 { return (level >= 0 && level < 4) ? sumSin_[level] : sumSin_[2]; }

References personalPlayback::level, and sumSin_.

Referenced by EvtPlane(), and qy().

◆ sumw()

float reco::EvtPlane::sumw ( ) const
inline

Definition at line 38 of file EvtPlane.h.

38 { return sumw_; }

References sumw_.

Referenced by vn().

◆ sumw2()

float reco::EvtPlane::sumw2 ( ) const
inline

Definition at line 39 of file EvtPlane.h.

39 { return sumw2_; }

References sumw2_.

◆ vn()

float reco::EvtPlane::vn ( int  level = 2) const
inline

Definition at line 48 of file EvtPlane.h.

48 { return (q(level) > 0 && fabs(sumw()) > 0) ? q(level) / fabs(sumw()) : 0.; }

References personalPlayback::level, q(), and sumw().

Member Data Documentation

◆ angle_

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

Definition at line 52 of file EvtPlane.h.

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

◆ indx_

int reco::EvtPlane::indx_
private

Definition at line 51 of file EvtPlane.h.

Referenced by indx().

◆ mult_

uint reco::EvtPlane::mult_
private

Definition at line 59 of file EvtPlane.h.

Referenced by mult().

◆ sumCos_

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

Definition at line 54 of file EvtPlane.h.

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

◆ sumPtOrEt2_

float reco::EvtPlane::sumPtOrEt2_
private

Definition at line 58 of file EvtPlane.h.

Referenced by sumPtOrEt2().

◆ sumPtOrEt_

float reco::EvtPlane::sumPtOrEt_
private

Definition at line 57 of file EvtPlane.h.

Referenced by sumPtOrEt().

◆ sumSin_

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

Definition at line 53 of file EvtPlane.h.

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

◆ sumw2_

float reco::EvtPlane::sumw2_
private

Definition at line 56 of file EvtPlane.h.

Referenced by sumw2().

◆ sumw_

float reco::EvtPlane::sumw_
private

Definition at line 55 of file EvtPlane.h.

Referenced by sumw().

personalPlayback.level
level
Definition: personalPlayback.py:22
mps_fire.i
i
Definition: mps_fire.py:428
reco::EvtPlane::sumw2
float sumw2() const
Definition: EvtPlane.h:39
reco::EvtPlane::sumPtOrEt
float sumPtOrEt() const
Definition: EvtPlane.h:40
reco::EvtPlane::sumSin_
float sumSin_[4]
Definition: EvtPlane.h:53
reco::EvtPlane::sumw
float sumw() const
Definition: EvtPlane.h:38
reco::EvtPlane::mult
float mult() const
Definition: EvtPlane.h:42
reco::EvtPlane::qy
float qy(int level=2) const
Definition: EvtPlane.h:43
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
reco::EvtPlane::sumPtOrEt2
float sumPtOrEt2() const
Definition: EvtPlane.h:41
reco::EvtPlane::q
float q(int level=2) const
Definition: EvtPlane.h:45
reco::EvtPlane::sumCos
float sumCos(int level=2) const
Definition: EvtPlane.h:37
reco::EvtPlane::sumw_
float sumw_
Definition: EvtPlane.h:55
reco::EvtPlane::sumw2_
float sumw2_
Definition: EvtPlane.h:56
reco::EvtPlane::angle_
float angle_[4]
Definition: EvtPlane.h:52
reco::EvtPlane::qx
float qx(int level=2) const
Definition: EvtPlane.h:44
reco::EvtPlane::mult_
uint mult_
Definition: EvtPlane.h:59
reco::EvtPlane::sumPtOrEt_
float sumPtOrEt_
Definition: EvtPlane.h:57
reco::EvtPlane::indx_
int indx_
Definition: EvtPlane.h:51
reco::EvtPlane::sumCos_
float sumCos_[4]
Definition: EvtPlane.h:54
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
reco::EvtPlane::sumPtOrEt2_
float sumPtOrEt2_
Definition: EvtPlane.h:58
reco::EvtPlane::sumSin
float sumSin(int level=2) const
Definition: EvtPlane.h:36