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
reco::PFClusterCollection
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition:
PFClusterFwd.h:9
converter::MassiveCandidateConverter
Definition:
MassiveCandidateConverter.h:12
converter
Definition:
CandidateProducer.h:25
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
CandidateProducer.h
edm::Ref< PFClusterCollection >
CandidateFwd.h
converter::PFClusterToRefCandidate::convert
void convert(reco::PFClusterRef pfclusterRef, reco::RecoPFClusterRefCandidate &c) const
Definition:
PFClusterToRefCandidate.h:17
converter::helper::CandConverter< reco::PFCluster >::type
PFClusterToRefCandidate type
Definition:
PFClusterToRefCandidate.h:25
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
converter::PFClusterToRefCandidate
Definition:
PFClusterToRefCandidate.h:12
PFCluster.h
MassiveCandidateConverter.h
RecoPFClusterRefCandidateFwd.h
edm::ParameterSet
Definition:
ParameterSet.h:47
helper
Definition:
helper.py:1
looper.cfg
cfg
Definition:
looper.py:297
converter::PFClusterToRefCandidate::Components
reco::PFClusterCollection Components
Definition:
PFClusterToRefCandidate.h:14
converter::PFClusterToRefCandidate::Candidate
reco::RecoPFClusterRefCandidate Candidate
Definition:
PFClusterToRefCandidate.h:15
reco::PFCluster
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition:
PFCluster.h:42
RecoPFClusterRefCandidate.h
converter::PFClusterToRefCandidate::value_type
reco::PFCluster value_type
Definition:
PFClusterToRefCandidate.h:13
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:17
converter::helper::CandConverter
Definition:
CandidateProducer.h:28
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:46
converter::PFClusterToRefCandidate::PFClusterToRefCandidate
PFClusterToRefCandidate(const edm::ParameterSet &cfg)
Definition:
PFClusterToRefCandidate.h:16
reco::RecoPFClusterRefCandidate
Definition:
RecoPFClusterRefCandidate.h:12
Generated for CMSSW Reference Manual by
1.8.16