Main Page
Namespaces
Classes
Package Documentation
CommonTools
RecoAlgos
src
PFClusterToRefCandidate.h
Go to the documentation of this file.
1
#ifndef RecoAlgos_PFClusterToRefCandidate_h
2
#define RecoAlgos_PFClusterToRefCandidate_h
3
#include "
CommonTools/RecoAlgos/src/MassiveCandidateConverter.h
"
4
#include "
CommonTools/RecoAlgos/src/CandidateProducer.h
"
5
#include "
DataFormats/ParticleFlowReco/interface/PFCluster.h
"
6
#include "
DataFormats/ParticleFlowReco/interface/RecoPFClusterRefCandidate.h
"
7
#include "
DataFormats/ParticleFlowReco/interface/RecoPFClusterRefCandidateFwd.h
"
8
#include "
DataFormats/Candidate/interface/CandidateFwd.h
"
9
10
namespace
converter
{
11
12
struct
PFClusterToRefCandidate
:
public
MassiveCandidateConverter
{
13
typedef
reco::PFCluster
value_type
;
14
typedef
reco::PFClusterCollection
Components
;
15
typedef
reco::RecoPFClusterRefCandidate
Candidate
;
16
PFClusterToRefCandidate
(
const
edm::ParameterSet
&
cfg
) :
17
MassiveCandidateConverter
(cfg) {
18
}
19
void
convert
(
reco::PFClusterRef
pfclusterRef,
reco::RecoPFClusterRefCandidate
&
c
)
const
{
20
c =
reco::RecoPFClusterRefCandidate
( pfclusterRef,
sqrt
(
massSqr_
) );
21
}
22
};
23
24
namespace
helper
{
25
template
<>
26
struct
CandConverter
<
reco
::PFCluster> {
27
typedef
PFClusterToRefCandidate
type
;
28
};
29
}
30
31
}
32
33
#endif
converter::PFClusterToRefCandidate::value_type
reco::PFCluster value_type
Definition:
PFClusterToRefCandidate.h:13
helper
Definition:
helper.py:1
reco::PFCluster
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition:
PFCluster.h:47
edm::Ref< PFClusterCollection >
converter::helper::CandConverter
Definition:
CandidateProducer.h:28
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
RecoPFClusterRefCandidate.h
converter::MassiveCandidateConverter
Definition:
MassiveCandidateConverter.h:10
PFCluster.h
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:15
converter
Definition:
CandidateProducer.h:25
converter::helper::CandConverter< reco::PFCluster >::type
PFClusterToRefCandidate type
Definition:
PFClusterToRefCandidate.h:27
converter::PFClusterToRefCandidate::convert
void convert(reco::PFClusterRef pfclusterRef, reco::RecoPFClusterRefCandidate &c) const
Definition:
PFClusterToRefCandidate.h:19
RecoPFClusterRefCandidateFwd.h
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:18
looper.cfg
cfg
Definition:
looper.py:293
MassiveCandidateConverter.h
converter::PFClusterToRefCandidate::Components
reco::PFClusterCollection Components
Definition:
PFClusterToRefCandidate.h:14
converter::PFClusterToRefCandidate
Definition:
PFClusterToRefCandidate.h:12
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:43
reco::RecoPFClusterRefCandidate
Definition:
RecoPFClusterRefCandidate.h:14
CandidateProducer.h
converter::PFClusterToRefCandidate::Candidate
reco::RecoPFClusterRefCandidate Candidate
Definition:
PFClusterToRefCandidate.h:15
reco::PFClusterCollection
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition:
PFClusterFwd.h:9
edm::ParameterSet
Definition:
ParameterSet.h:36
CandidateFwd.h
converter::PFClusterToRefCandidate::PFClusterToRefCandidate
PFClusterToRefCandidate(const edm::ParameterSet &cfg)
Definition:
PFClusterToRefCandidate.h:16
Generated for CMSSW Reference Manual by
1.8.11