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.

13  : massSqr_(0),
14  particle_(cfg.getParameter<PdtEntry>("particleType")),

Member Function Documentation

◆ beginFirstRun()

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

Definition at line 17 of file MassiveCandidateConverter.cc.

17  {
18  auto const& pdt = es.getData(tableToken_);
19  particle_.setup(pdt);
20  massSqr_ = particle_.data().mass();
21  massSqr_ *= massSqr_;
22 }

References PdtEntry::data(), edm::EventSetup::getData(), massSqr_, particle_, PdtEntry::setup(), and 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().

edm::ConsumesCollector::esConsumes
auto esConsumes()
Definition: ConsumesCollector.h:97
PdtEntry::data
const HepPDT::ParticleData & data() const
particle data
Definition: PdtEntry.cc:19
PdtEntry::setup
void setup(const HepPDT::ParticleDataTable &)
fill data from Event Setup
Definition: PdtEntry.cc:26
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
looper.cfg
cfg
Definition: looper.py:296
edm::Transition::BeginRun
PdtEntry
Definition: PdtEntry.h:20
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition: MassiveCandidateConverter.h:20
converter::MassiveCandidateConverter::tableToken_
const edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > tableToken_
Definition: MassiveCandidateConverter.h:24
converter::MassiveCandidateConverter::particle_
PdtEntry particle_
Definition: MassiveCandidateConverter.h:21