CMS 3D CMS Logo

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::DefaultRecordtableToken_
 

Detailed Description

Definition at line 15 of file MassiveCandidateConverter.h.

Constructor & Destructor Documentation

◆ MassiveCandidateConverter()

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

Definition at line 12 of file MassiveCandidateConverter.cc.

Member Function Documentation

◆ beginFirstRun()

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 }
const HepPDT::ParticleData & data() const
particle data
Definition: PdtEntry.cc:19
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
void setup(const HepPDT::ParticleDataTable &)
fill data from Event Setup
Definition: PdtEntry.cc:26
const edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > tableToken_

Member Data Documentation

◆ massSqr_

double converter::MassiveCandidateConverter::massSqr_
protected

◆ particle_

PdtEntry converter::MassiveCandidateConverter::particle_
protected

◆ tableToken_

const edm::ESGetToken<HepPDT::ParticleDataTable, edm::DefaultRecord> converter::MassiveCandidateConverter::tableToken_
private

Definition at line 24 of file MassiveCandidateConverter.h.

Referenced by beginFirstRun().