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
14
void
MassiveCandidateConverter::beginFirstRun
(
const
EventSetup
& es ) {
15
particle_
.
setup
(es);
16
massSqr_
=
particle_
.
data
().mass();
17
massSqr_
*=
massSqr_
;
18
}
19
std
Definition:
JetResolutionObject.h:80
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:15
converter
Definition:
CandidateProducer.h:25
ParameterSet.h
PdtEntry
Definition:
PdtEntry.h:15
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:51
looper.cfg
cfg
Definition:
looper.py:295
MassiveCandidateConverter.h
PdtEntry::setup
void setup(const edm::EventSetup &)
fill data from Event Setup
Definition:
PdtEntry.cc:31
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
converter::MassiveCandidateConverter::beginFirstRun
void beginFirstRun(const edm::EventSetup &)
Definition:
MassiveCandidateConverter.cc:14
converter::MassiveCandidateConverter::particle_
PdtEntry particle_
Definition:
MassiveCandidateConverter.h:16
PdtEntry::data
const HepPDT::ParticleData & data() const
particle data
Definition:
PdtEntry.cc:23
Generated for CMSSW Reference Manual by
1.8.11