CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EvtPlane.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 using namespace std;
5 EvtPlane::EvtPlane(int epindx,
6  int level,
7  double planeA,
8  double sumSin,
9  double sumCos,
10  double sumw,
11  double sumw2,
12  double sumPtOrEt,
13  double sumPtOrEt2,
14  uint mult)
15  : indx_(epindx), sumw_(sumw), sumw2_(sumw2), sumPtOrEt_(sumPtOrEt), sumPtOrEt2_(sumPtOrEt2), mult_(mult) {
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 }
24 void EvtPlane::addLevel(int level, double ang, double sumsin, double sumcos) {
25  angle_[level] = ang;
26  sumSin_[level] = sumsin;
27  sumCos_[level] = sumcos;
28 }
29 
float sumSin_[4]
Definition: EvtPlane.h:53
void addLevel(int level, double ang, double sumsin, double sumcos)
Definition: EvtPlane.cc:24
virtual ~EvtPlane()
Definition: EvtPlane.cc:30
float sumCos(int level=2) const
Definition: EvtPlane.h:37
float angle_[4]
Definition: EvtPlane.h:52
float sumCos_[4]
Definition: EvtPlane.h:54
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: EvtPlane.cc:5
tuple level
Definition: testEve_cfg.py:47
float sumSin(int level=2) const
Definition: EvtPlane.h:36