Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
reco::PFCluster
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition:
PFCluster.h:47
converter::helper::CandConverter
Definition:
CandidateProducer.h:28
RecoPFClusterRefCandidate.h
converter::MassiveCandidateConverter
Definition:
MassiveCandidateConverter.h:10
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
PFCluster.h
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:15
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:48
MassiveCandidateConverter.h
converter::PFClusterToRefCandidate::Components
reco::PFClusterCollection Components
Definition:
PFClusterToRefCandidate.h:14
trackerHits.c
tuple c
Definition:
trackerHits.py:26
converter::PFClusterToRefCandidate
Definition:
PFClusterToRefCandidate.h:12
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:35
CandidateFwd.h
edm::Ref< PFClusterCollection >
converter::PFClusterToRefCandidate::PFClusterToRefCandidate
PFClusterToRefCandidate(const edm::ParameterSet &cfg)
Definition:
PFClusterToRefCandidate.h:16
Generated for CMSSW Reference Manual by
1.8.5