Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:45

0001 #include "RecoEcal/EgammaCoreTools/interface/PositionCalc.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0003 
0004 PositionCalc::PositionCalc(const edm::ParameterSet& par)
0005     : param_LogWeighted_(par.getParameter<bool>("LogWeighted")),
0006       param_T0_barl_(par.getParameter<double>("T0_barl")),
0007       param_T0_endc_(par.getParameter<double>("T0_endc")),
0008       param_T0_endcPresh_(par.getParameter<double>("T0_endcPresh")),
0009       param_W0_(par.getParameter<double>("W0")),
0010       param_X0_(par.getParameter<double>("X0")),
0011       m_esGeom(nullptr),
0012       m_esPlus(false),
0013       m_esMinus(false) {}
0014 
0015 const PositionCalc& PositionCalc::operator=(const PositionCalc& rhs) {
0016   param_LogWeighted_ = rhs.param_LogWeighted_;
0017   param_T0_barl_ = rhs.param_T0_barl_;
0018   param_T0_endc_ = rhs.param_T0_endc_;
0019   param_T0_endcPresh_ = rhs.param_T0_endcPresh_;
0020   param_W0_ = rhs.param_W0_;
0021   param_X0_ = rhs.param_X0_;
0022 
0023   m_esGeom = rhs.m_esGeom;
0024   m_esPlus = rhs.m_esPlus;
0025   m_esMinus = rhs.m_esMinus;
0026   return *this;
0027 }