CommonTools
RecoAlgos
src
MassiveCandidateConverter.cc
Go to the documentation of this file.
1
#include "
CommonTools/RecoAlgos/src/MassiveCandidateConverter.h
"
2
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
3
#include "HepPDT/ParticleData.hh"
4
#include "
FWCore/Framework/interface/ESHandle.h
"
5
#include <algorithm>
6
using namespace
edm
;
7
using namespace
std
;
8
using namespace
converter
;
9
10
MassiveCandidateConverter::MassiveCandidateConverter(
const
edm::ParameterSet
&
cfg
)
11
: massSqr_(0), particle_(
cfg
.getParameter<
PdtEntry
>(
"particleType"
)) {}
12
13
void
MassiveCandidateConverter::beginFirstRun
(
const
EventSetup
& es) {
14
particle_
.
setup
(es);
15
massSqr_
=
particle_
.
data
().mass();
16
massSqr_
*=
massSqr_
;
17
}
ESHandle.h
converter
Definition:
CandidateProducer.h:25
edm
HLT enums.
Definition:
AlignableModifier.h:19
converter::MassiveCandidateConverter::beginFirstRun
void beginFirstRun(const edm::EventSetup &)
Definition:
MassiveCandidateConverter.cc:13
MassiveCandidateConverter.h
PdtEntry::data
const HepPDT::ParticleData & data() const
particle data
Definition:
PdtEntry.cc:21
edm::ParameterSet
Definition:
ParameterSet.h:47
PdtEntry::setup
void setup(const edm::EventSetup &)
fill data from Event Setup
Definition:
PdtEntry.cc:28
edm::EventSetup
Definition:
EventSetup.h:58
looper.cfg
cfg
Definition:
looper.py:297
std
Definition:
JetResolutionObject.h:76
PdtEntry
Definition:
PdtEntry.h:19
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:17
ParameterSet.h
converter::MassiveCandidateConverter::particle_
PdtEntry particle_
Definition:
MassiveCandidateConverter.h:18
Generated for CMSSW Reference Manual by
1.8.16