Main Page
Namespaces
Classes
Package Documentation
CommonTools
RecoAlgos
src
TrackToRefCandidate.h
Go to the documentation of this file.
1
#ifndef RecoAlgos_TrackToRefCandidate_h
2
#define RecoAlgos_TrackToRefCandidate_h
3
#include "
CommonTools/RecoAlgos/src/MassiveCandidateConverter.h
"
4
#include "
CommonTools/RecoAlgos/src/CandidateProducer.h
"
5
#include "
DataFormats/TrackReco/interface/Track.h
"
6
#include "
DataFormats/RecoCandidate/interface/RecoChargedRefCandidate.h
"
7
#include "
DataFormats/RecoCandidate/interface/RecoChargedRefCandidateFwd.h
"
8
#include "
DataFormats/Candidate/interface/CandidateFwd.h
"
9
10
namespace
converter
{
11
12
struct
TrackToRefCandidate
:
public
MassiveCandidateConverter
{
13
typedef
reco::Track
value_type
;
14
typedef
reco::TrackCollection
Components
;
15
typedef
reco::RecoChargedRefCandidate
Candidate
;
16
TrackToRefCandidate
(
const
edm::ParameterSet
&
cfg
) :
17
MassiveCandidateConverter
(cfg) {
18
}
19
void
convert
(
reco::TrackRef
trkRef,
reco::RecoChargedRefCandidate
&
c
)
const
{
20
c =
reco::RecoChargedRefCandidate
( trkRef,
sqrt
(
massSqr_
) );
21
}
22
};
23
24
namespace
helper
{
25
template
<>
26
struct
CandConverter<reco::Track> {
27
typedef
TrackToRefCandidate
type
;
28
};
29
}
30
31
}
32
33
#endif
converter::TrackToRefCandidate
Definition:
TrackToRefCandidate.h:12
RecoChargedRefCandidateFwd.h
helper
Definition:
helper.py:1
edm::Ref< TrackCollection >
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:15
converter::TrackToRefCandidate::convert
void convert(reco::TrackRef trkRef, reco::RecoChargedRefCandidate &c) const
Definition:
TrackToRefCandidate.h:19
converter::MassiveCandidateConverter
Definition:
MassiveCandidateConverter.h:10
converter::TrackToRefCandidate::Candidate
reco::RecoChargedRefCandidate Candidate
Definition:
TrackToRefCandidate.h:15
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:15
converter
Definition:
CandidateProducer.h:25
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:18
RecoChargedRefCandidate.h
looper.cfg
cfg
Definition:
looper.py:294
MassiveCandidateConverter.h
reco::Track
Definition:
Track.h:28
converter::TrackToRefCandidate::Components
reco::TrackCollection Components
Definition:
TrackToRefCandidate.h:14
converter::helper::CandConverter< reco::Track >::type
TrackToRefCandidate type
Definition:
TrackToRefCandidate.h:27
converter::TrackToRefCandidate::value_type
reco::Track value_type
Definition:
TrackToRefCandidate.h:13
CandidateProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:36
CandidateFwd.h
converter::TrackToRefCandidate::TrackToRefCandidate
TrackToRefCandidate(const edm::ParameterSet &cfg)
Definition:
TrackToRefCandidate.h:16
Track.h
reco::RecoChargedRefCandidate
Definition:
RecoChargedRefCandidate.h:14
Generated for CMSSW Reference Manual by
1.8.11