CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 }
13 
15  particle_.setup(es);
16  massSqr_ = particle_.data().mass();
17  massSqr_ *= massSqr_;
18 }
19 
tuple cfg
Definition: looper.py:259
void setup(const edm::EventSetup &)
fill data from Event Setup
Definition: PdtEntry.cc:31
void beginFirstRun(const edm::EventSetup &)
const HepPDT::ParticleData & data() const
particle data
Definition: PdtEntry.cc:23