Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
looper.cfg
tuple cfg
Definition:
looper.py:293
edm::Ref< TrackCollection >
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
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
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:106
EnergyCorrector.c
tuple c
Definition:
EnergyCorrector.py:43
converter::MassiveCandidateConverter::massSqr_
double massSqr_
Definition:
MassiveCandidateConverter.h:15
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:48
RecoChargedRefCandidate.h
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.5