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
,
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::helper::CandConverter< reco::Track >::type
TrackToRefCandidate type
Definition:
TrackToRefCandidate.h:25
converter::MassiveCandidateConverter
Definition:
MassiveCandidateConverter.h:15
reco::RecoChargedRefCandidate
Definition:
RecoChargedRefCandidate.h:12
converter::TrackToRefCandidate
Definition:
TrackToRefCandidate.h:12
converter
Definition:
CandidateProducer.h:25
converter::TrackToRefCandidate::convert
void convert(reco::TrackRef trkRef, reco::RecoChargedRefCandidate &c) const
Definition:
TrackToRefCandidate.h:17
converter::TrackToRefCandidate::Components
reco::TrackCollection Components
Definition:
TrackToRefCandidate.h:14
converter::TrackToRefCandidate::value_type
reco::Track value_type
Definition:
TrackToRefCandidate.h:13
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
CandidateProducer.h
RecoChargedRefCandidateFwd.h
edm::Ref< TrackCollection >
CandidateFwd.h
converter::TrackToRefCandidate::TrackToRefCandidate
TrackToRefCandidate(const edm::ParameterSet &cfg, edm::ConsumesCollector iC)
Definition:
TrackToRefCandidate.h:16
Track.h
converter::TrackToRefCandidate::Candidate
reco::RecoChargedRefCandidate Candidate
Definition:
TrackToRefCandidate.h:15
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
reco::Track
Definition:
Track.h:27
MassiveCandidateConverter.h
RecoChargedRefCandidate.h
edm::ParameterSet
Definition:
ParameterSet.h:47
helper
Definition:
helper.py:1
looper.cfg
cfg
Definition:
looper.py:296
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:20
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:56
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Generated for CMSSW Reference Manual by
1.8.16