CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
converter::MassiveCandidateConverter Struct Reference

#include <MassiveCandidateConverter.h>

Inheritance diagram for converter::MassiveCandidateConverter:
converter::PFClusterToRefCandidate converter::StandAloneMuonTrackToCandidate converter::SuperClusterToCandidate converter::TrackToCandidate converter::TrackToRefCandidate

Public Member Functions

void beginFirstRun (const edm::EventSetup &)
 
 MassiveCandidateConverter (const edm::ParameterSet &)
 

Protected Attributes

double massSqr_
 
PdtEntry particle_
 

Detailed Description

Definition at line 10 of file MassiveCandidateConverter.h.

Constructor & Destructor Documentation

MassiveCandidateConverter::MassiveCandidateConverter ( const edm::ParameterSet cfg)

Definition at line 10 of file MassiveCandidateConverter.cc.

10  :
11  massSqr_(0), particle_( cfg.getParameter<PdtEntry>( "particleType" ) ) {
12 }
T getParameter(std::string const &) const

Member Function Documentation

void MassiveCandidateConverter::beginFirstRun ( const edm::EventSetup es)

Definition at line 14 of file MassiveCandidateConverter.cc.

References PdtEntry::data(), massSqr_, particle_, and PdtEntry::setup().

14  {
15  particle_.setup(es);
16  massSqr_ = particle_.data().mass();
17  massSqr_ *= massSqr_;
18 }
void setup(const edm::EventSetup &)
fill data from Event Setup
Definition: PdtEntry.cc:31
const HepPDT::ParticleData & data() const
particle data
Definition: PdtEntry.cc:23

Member Data Documentation

double converter::MassiveCandidateConverter::massSqr_
protected
PdtEntry converter::MassiveCandidateConverter::particle_
protected