CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private 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 &, edm::ConsumesCollector)
 

Protected Attributes

double massSqr_
 
PdtEntry particle_
 

Private Attributes

const edm::ESGetToken
< HepPDT::ParticleDataTable,
edm::DefaultRecord
tableToken_
 

Detailed Description

Definition at line 15 of file MassiveCandidateConverter.h.

Constructor & Destructor Documentation

MassiveCandidateConverter::MassiveCandidateConverter ( const edm::ParameterSet cfg,
edm::ConsumesCollector  iC 
)

Definition at line 12 of file MassiveCandidateConverter.cc.

13  : massSqr_(0),
14  particle_(cfg.getParameter<PdtEntry>("particleType")),
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
const edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > tableToken_

Member Function Documentation

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

Definition at line 17 of file MassiveCandidateConverter.cc.

References PdtEntry::data(), edm::EventSetup::getData(), massSqr_, particle_, PdtEntry::setup(), and tableToken_.

17  {
18  auto const& pdt = es.getData(tableToken_);
19  particle_.setup(pdt);
20  massSqr_ = particle_.data().mass();
21  massSqr_ *= massSqr_;
22 }
void setup(const HepPDT::ParticleDataTable &)
fill data from Event Setup
Definition: PdtEntry.cc:26
bool getData(T &iHolder) const
Definition: EventSetup.h:122
const edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > tableToken_
const HepPDT::ParticleData & data() const
particle data
Definition: PdtEntry.cc:19

Member Data Documentation

double converter::MassiveCandidateConverter::massSqr_
protected
PdtEntry converter::MassiveCandidateConverter::particle_
protected
const edm::ESGetToken<HepPDT::ParticleDataTable, edm::DefaultRecord> converter::MassiveCandidateConverter::tableToken_
private

Definition at line 24 of file MassiveCandidateConverter.h.

Referenced by beginFirstRun().