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.

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

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 }
float sumSin_[4]
Definition: EvtPlane.h:53
float sumCos(int level=2) const
Definition: EvtPlane.h:37
float sumw_
Definition: EvtPlane.h:55
float sumPtOrEt_
Definition: EvtPlane.h:57
float sumPtOrEt2() const
Definition: EvtPlane.h:41
float angle_[4]
Definition: EvtPlane.h:52
float sumSin(int level=2) const
Definition: EvtPlane.h:36
float sumw2_
Definition: EvtPlane.h:56
float sumCos_[4]
Definition: EvtPlane.h:54
float sumPtOrEt2_
Definition: EvtPlane.h:58
float sumPtOrEt() const
Definition: EvtPlane.h:40
float sumw2() const
Definition: EvtPlane.h:39
float mult() const
Definition: EvtPlane.h:42
float sumw() const
Definition: EvtPlane.h:38

◆ ~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.

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

24  {
25  angle_[level] = ang;
26  sumSin_[level] = sumsin;
27  sumCos_[level] = sumcos;
28 }
float sumSin_[4]
Definition: EvtPlane.h:53
float angle_[4]
Definition: EvtPlane.h:52
float sumCos_[4]
Definition: EvtPlane.h:54

◆ angle()

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

Definition at line 35 of file EvtPlane.h.

References angle_, and personalPlayback::level.

35 { return (level >= 0 && level < 4) ? angle_[level] : angle_[2]; }
float angle_[4]
Definition: EvtPlane.h:52

◆ indx()

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

Definition at line 34 of file EvtPlane.h.

References indx_.

34 { return indx_; }

◆ mult()

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

Definition at line 42 of file EvtPlane.h.

References mult_.

42 { return mult_; }

◆ q()

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

Definition at line 45 of file EvtPlane.h.

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

Referenced by vn().

45  {
46  return ((pow(qx(level), 2) + pow(qy(level), 2)) > 0) ? sqrt(pow(qx(level), 2) + pow(qy(level), 2)) : 0.;
47  }
float qx(int level=2) const
Definition: EvtPlane.h:44
T sqrt(T t)
Definition: SSEVec.h:23
float qy(int level=2) const
Definition: EvtPlane.h:43
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ qx()

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

Definition at line 44 of file EvtPlane.h.

References personalPlayback::level, and sumCos().

Referenced by q().

44 { return sumCos(level); }
float sumCos(int level=2) const
Definition: EvtPlane.h:37

◆ qy()

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

Definition at line 43 of file EvtPlane.h.

References personalPlayback::level, and sumSin().

Referenced by q().

43 { return sumSin(level); }
float sumSin(int level=2) const
Definition: EvtPlane.h:36

◆ sumCos()

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

Definition at line 37 of file EvtPlane.h.

References personalPlayback::level, and sumCos_.

Referenced by EvtPlane(), and qx().

37 { return (level >= 0 && level < 4) ? sumCos_[level] : sumCos_[2]; }
float sumCos_[4]
Definition: EvtPlane.h:54

◆ sumPtOrEt()

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

Definition at line 40 of file EvtPlane.h.

References sumPtOrEt_.

40 { return sumPtOrEt_; }
float sumPtOrEt_
Definition: EvtPlane.h:57

◆ sumPtOrEt2()

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

Definition at line 41 of file EvtPlane.h.

References sumPtOrEt2_.

41 { return sumPtOrEt2_; }
float sumPtOrEt2_
Definition: EvtPlane.h:58

◆ sumSin()

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

Definition at line 36 of file EvtPlane.h.

References personalPlayback::level, and sumSin_.

Referenced by EvtPlane(), and qy().

36 { return (level >= 0 && level < 4) ? sumSin_[level] : sumSin_[2]; }
float sumSin_[4]
Definition: EvtPlane.h:53

◆ sumw()

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

Definition at line 38 of file EvtPlane.h.

References sumw_.

Referenced by vn().

38 { return sumw_; }
float sumw_
Definition: EvtPlane.h:55

◆ sumw2()

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

Definition at line 39 of file EvtPlane.h.

References sumw2_.

39 { return sumw2_; }
float sumw2_
Definition: EvtPlane.h:56

◆ vn()

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

Definition at line 48 of file EvtPlane.h.

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

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

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().