CMS 3D CMS Logo

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 12 of file MassiveCandidateConverter.h.

Constructor & Destructor Documentation

◆ MassiveCandidateConverter()

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

Definition at line 10 of file MassiveCandidateConverter.cc.

11  : massSqr_(0), particle_(cfg.getParameter<PdtEntry>("particleType")) {}

Member Function Documentation

◆ beginFirstRun()

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

Definition at line 13 of file MassiveCandidateConverter.cc.

13  {
14  particle_.setup(es);
15  massSqr_ = particle_.data().mass();
16  massSqr_ *= massSqr_;
17 }

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

Member Data Documentation

◆ massSqr_

double converter::MassiveCandidateConverter::massSqr_
protected

◆ particle_

PdtEntry converter::MassiveCandidateConverter::particle_
protected
PdtEntry::data
const HepPDT::ParticleData & data() const
particle data
Definition: PdtEntry.cc:21
PdtEntry::setup
void setup(const edm::EventSetup &)
fill data from Event Setup
Definition: PdtEntry.cc:28
looper.cfg
cfg
Definition: looper.py:297
PdtEntry
Definition: PdtEntry.h:19
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition: MassiveCandidateConverter.h:17
converter::MassiveCandidateConverter::particle_
PdtEntry particle_
Definition: MassiveCandidateConverter.h:18