Main Page
Namespaces
Classes
Package Documentation
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
}
std
Definition:
JetResolutionObject.h:76
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:17
converter
Definition:
CandidateProducer.h:25
ParameterSet.h
PdtEntry
Definition:
PdtEntry.h:19
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:57
looper.cfg
cfg
Definition:
looper.py:297
MassiveCandidateConverter.h
PdtEntry::setup
void setup(const edm::EventSetup &)
fill data from Event Setup
Definition:
PdtEntry.cc:28
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ParameterSet
Definition:
ParameterSet.h:36
converter::MassiveCandidateConverter::beginFirstRun
void beginFirstRun(const edm::EventSetup &)
Definition:
MassiveCandidateConverter.cc:13
converter::MassiveCandidateConverter::particle_
PdtEntry particle_
Definition:
MassiveCandidateConverter.h:18
PdtEntry::data
const HepPDT::ParticleData & data() const
particle data
Definition:
PdtEntry.cc:21
Generated for CMSSW Reference Manual by
1.8.11