CMS 3D CMS Logo

MassiveCandidateConverter.cc
Go to the documentation of this file.
3 #include "HepPDT/ParticleData.hh"
5 #include <algorithm>
6 using namespace edm;
7 using namespace std;
8 using namespace converter;
9 
10 MassiveCandidateConverter::MassiveCandidateConverter(const edm::ParameterSet& cfg)
11  : massSqr_(0), particle_(cfg.getParameter<PdtEntry>("particleType")) {}
12 
14  particle_.setup(es);
15  massSqr_ = particle_.data().mass();
16  massSqr_ *= massSqr_;
17 }
void setup(const edm::EventSetup &)
fill data from Event Setup
Definition: PdtEntry.cc:28
HLT enums.
void beginFirstRun(const edm::EventSetup &)
const HepPDT::ParticleData & data() const
particle data
Definition: PdtEntry.cc:21