CommonTools
RecoAlgos
interface
TrackToRefCandidate.h
Go to the documentation of this file.
1
#ifndef RecoAlgos_TrackToRefCandidate_h
2
#define RecoAlgos_TrackToRefCandidate_h
3
#include "
CommonTools/RecoAlgos/interface/MassiveCandidateConverter.h
"
4
#include "
CommonTools/RecoAlgos/interface/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
,
edm::ConsumesCollector
iC) :
MassiveCandidateConverter
(
cfg
, iC) {}
17
void
convert
(
reco::TrackRef
trkRef,
reco::RecoChargedRefCandidate
&
c
)
const
{
18
c
=
reco::RecoChargedRefCandidate
(trkRef,
sqrt
(
massSqr_
));
19
}
20
};
21
22
namespace
helper
{
23
template
<>
24
struct
CandConverter
<
reco
::Track> {
25
typedef
TrackToRefCandidate
type
;
26
};
27
}
// namespace helper
28
29
}
// namespace converter
30
31
#endif
converter::TrackToRefCandidate
Definition:
TrackToRefCandidate.h:12
RecoChargedRefCandidateFwd.h
helper
Definition:
helper.py:1
edm::Ref< TrackCollection >
converter::helper::CandConverter
Definition:
CandidateProducer.h:28
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
converter::MassiveCandidateConverter
Definition:
MassiveCandidateConverter.h:15
converter::TrackToRefCandidate::Candidate
reco::RecoChargedRefCandidate Candidate
Definition:
TrackToRefCandidate.h:15
converter::TrackToRefCandidate::TrackToRefCandidate
TrackToRefCandidate(const edm::ParameterSet &cfg, edm::ConsumesCollector iC)
Definition:
TrackToRefCandidate.h:16
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:20
converter
Definition:
CandidateProducer.h:25
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
converter::TrackToRefCandidate::convert
void convert(reco::TrackRef trkRef, reco::RecoChargedRefCandidate &c) const
Definition:
TrackToRefCandidate.h:17
RecoChargedRefCandidate.h
looper.cfg
cfg
Definition:
looper.py:296
MassiveCandidateConverter.h
reco::Track
Definition:
Track.h:27
converter::TrackToRefCandidate::Components
reco::TrackCollection Components
Definition:
TrackToRefCandidate.h:14
converter::helper::CandConverter< reco::Track >::type
TrackToRefCandidate type
Definition:
TrackToRefCandidate.h:25
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
converter::TrackToRefCandidate::value_type
reco::Track value_type
Definition:
TrackToRefCandidate.h:13
CandidateProducer.h
Track.h
edm::ParameterSet
Definition:
ParameterSet.h:47
CandidateFwd.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
reco::RecoChargedRefCandidate
Definition:
RecoChargedRefCandidate.h:12
Generated for CMSSW Reference Manual by
1.8.14