Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:10
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
L1Trigger_dataformats.reco
dictionary reco
Definition:
L1Trigger_dataformats.py:9
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:48
RecoChargedRefCandidate.h
MassiveCandidateConverter.h
trackerHits.c
tuple c
Definition:
trackerHits.py:26
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:27
converter::TrackToRefCandidate::value_type
reco::Track value_type
Definition:
TrackToRefCandidate.h:13
CandidateProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:35
CandidateFwd.h
converter::TrackToRefCandidate::TrackToRefCandidate
TrackToRefCandidate(const edm::ParameterSet &cfg)
Definition:
TrackToRefCandidate.h:16
Track.h
edm::Ref< TrackCollection >
reco::RecoChargedRefCandidate
Definition:
RecoChargedRefCandidate.h:14
Generated for CMSSW Reference Manual by
1.8.5