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
) :
MassiveCandidateConverter
(cfg) {}
17
void
convert
(
reco::PFClusterRef
pfclusterRef,
reco::RecoPFClusterRefCandidate
&
c
)
const
{
18
c =
reco::RecoPFClusterRefCandidate
(pfclusterRef,
sqrt
(
massSqr_
));
19
}
20
};
21
22
namespace
helper
{
23
template
<>
24
struct
CandConverter
<
reco
::PFCluster> {
25
typedef
PFClusterToRefCandidate
type
;
26
};
27
}
// namespace helper
28
29
}
// namespace converter
30
31
#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:46
edm::Ref< PFClusterCollection >
converter::helper::CandConverter
Definition:
CandidateProducer.h:28
converter::MassiveCandidateConverter
Definition:
MassiveCandidateConverter.h:12
PFCluster.h
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:17
converter
Definition:
CandidateProducer.h:25
converter::helper::CandConverter< reco::PFCluster >::type
PFClusterToRefCandidate type
Definition:
PFClusterToRefCandidate.h:25
RecoPFClusterRefCandidate.h
converter::PFClusterToRefCandidate::convert
void convert(reco::PFClusterRef pfclusterRef, reco::RecoPFClusterRefCandidate &c) const
Definition:
PFClusterToRefCandidate.h:17
RecoPFClusterRefCandidateFwd.h
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
looper.cfg
cfg
Definition:
looper.py:297
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:45
reco::RecoPFClusterRefCandidate
Definition:
RecoPFClusterRefCandidate.h:12
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