Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:39

0001 #include "DataFormats/HeavyIonEvent/interface/EvtPlane.h"
0002 
0003 using namespace reco;
0004 using namespace std;
0005 EvtPlane::EvtPlane(int epindx,
0006                    int level,
0007                    double planeA,
0008                    double sumSin,
0009                    double sumCos,
0010                    double sumw,
0011                    double sumw2,
0012                    double sumPtOrEt,
0013                    double sumPtOrEt2,
0014                    uint mult)
0015     : indx_(epindx), sumw_(sumw), sumw2_(sumw2), sumPtOrEt_(sumPtOrEt), sumPtOrEt2_(sumPtOrEt2), mult_(mult) {
0016   for (int i = 0; i < 4; ++i) {
0017     angle_[i] = sumSin_[i] = sumCos_[i] = -10;
0018   }
0019   angle_[level] = planeA;
0020   sumSin_[level] = sumSin;
0021   sumCos_[level] = sumCos;
0022   // default constructor
0023 }
0024 void EvtPlane::addLevel(int level, double ang, double sumsin, double sumcos) {
0025   angle_[level] = ang;
0026   sumSin_[level] = sumsin;
0027   sumCos_[level] = sumcos;
0028 }
0029 
0030 EvtPlane::~EvtPlane() {}