src
TrackingTools
TrackRefitter
interface
TrackTransformerForCosmicMuons.h
Go to the documentation of this file.
1
#ifndef TrackingTools_TrackRefitter_TrackTransformerForCosmicMuons_H
2
#define TrackingTools_TrackRefitter_TrackTransformerForCosmicMuons_H
3
22
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
23
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
24
#include "
FWCore/Framework/interface/ESHandle.h
"
25
#include "
Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h
"
26
#include "
Geometry/Records/interface/GlobalTrackingGeometryRecord.h
"
27
#include "
MagneticField/Engine/interface/MagneticField.h
"
28
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
29
#include "
TrackingTools/TrackRefitter/interface/RefitDirection.h
"
30
#include "
TrackingTools/TrackRefitter/interface/RefitDirection.h
"
31
#include "
TrackingTools/TrackRefitter/interface/TrackTransformerBase.h
"
32
#include "
TrackingTools/TrackRefitter/interface/TrackTransformerBase.h
"
33
#include "
TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h
"
34
#include "
TrackingTools/Records/interface/TrackingComponentsRecord.h
"
35
#include "
TrackingTools/Records/interface/TransientRecHitRecord.h
"
36
#include "
TrackingTools/TrackFitters/interface/TrajectoryFitter.h
"
37
38
namespace
edm
{
39
class
ParameterSet
;
40
class
EventSetup
;
41
}
// namespace edm
42
namespace
reco
{
43
class
TransientTrack;
44
}
45
46
class
TrajectoryFitter
;
47
class
TrajectorySmoother
;
48
class
Propagator
;
49
class
TransientTrackingRecHitBuilder
;
50
class
Trajectory
;
51
52
class
TrackTransformerForCosmicMuons
:
public
TrackTransformerBase
{
53
public
:
55
TrackTransformerForCosmicMuons
(
const
edm::ParameterSet
&,
edm::ConsumesCollector
);
56
58
~TrackTransformerForCosmicMuons
()
override
;
59
60
// Operations
61
63
std::vector<Trajectory>
transform
(
const
reco::Track
&)
const override
;
64
66
const
MagneticField
*
magneticField
()
const
{
return
&*
theMGField
; }
67
69
edm::ESHandle<GlobalTrackingGeometry>
trackingGeometry
()
const
{
return
theTrackingGeometry
; }
70
72
void
setServices
(
const
edm::EventSetup
&)
override
;
73
75
bool
SlopeSum
(
const
TransientTrackingRecHit::ConstRecHitContainer
&)
const
;
76
float
SumDy
(
const
TransientTrackingRecHit::ConstRecHitContainer
&)
const
;
77
79
edm::ESHandle<TrajectoryFitter>
fitter
(
bool
,
int
,
float
)
const
;
80
82
edm::ESHandle<TrajectorySmoother>
smoother
(
bool
,
int
,
float
)
const
;
83
84
TransientTrackingRecHit::ConstRecHitContainer
getTransientRecHits
(
const
reco::TransientTrack
&
track
)
const
;
85
86
protected
:
87
private
:
88
const
edm::ESGetToken<Propagator, TrackingComponentsRecord>
theIOpropToken
;
89
const
edm::ESGetToken<Propagator, TrackingComponentsRecord>
theOIpropToken
;
90
const
edm::ESGetToken<GlobalTrackingGeometry, GlobalTrackingGeometryRecord>
thGlobTrackGeoToken
;
91
const
edm::ESGetToken<MagneticField, IdealMagneticFieldRecord>
theMFToken
;
92
const
edm::ESGetToken<TrajectoryFitter, TrajectoryFitter::Record>
theIOFitterToken
;
93
const
edm::ESGetToken<TrajectoryFitter, TrajectoryFitter::Record>
theOIFitterToken
;
94
const
edm::ESGetToken<TrajectorySmoother, TrajectoryFitter::Record>
theIOSmootherToken
;
95
const
edm::ESGetToken<TrajectorySmoother, TrajectoryFitter::Record>
theOISmootherToken
;
96
const
edm::ESGetToken<TransientTrackingRecHitBuilder, TransientRecHitRecord>
theTkRecHitBuildToken
;
97
const
edm::ESGetToken<TransientTrackingRecHitBuilder, TransientRecHitRecord>
theMuonRecHitBuildToken
;
98
99
edm::ESHandle<Propagator>
thePropagatorIO
;
100
edm::ESHandle<Propagator>
thePropagatorOI
;
101
102
edm::ESHandle<Propagator>
propagator
(
bool
,
int
,
float
)
const
;
103
104
unsigned
long
long
theCacheId_TC
;
105
unsigned
long
long
theCacheId_GTG
;
106
unsigned
long
long
theCacheId_MG
;
107
unsigned
long
long
theCacheId_TRH
;
108
109
bool
theRPCInTheFit
;
110
111
edm::ESHandle<GlobalTrackingGeometry>
theTrackingGeometry
;
112
edm::ESHandle<MagneticField>
theMGField
;
113
114
edm::ESHandle<TrajectoryFitter>
theFitterIO
;
115
edm::ESHandle<TrajectoryFitter>
theFitterOI
;
116
117
edm::ESHandle<TrajectorySmoother>
theSmootherIO
;
118
edm::ESHandle<TrajectorySmoother>
theSmootherOI
;
119
120
std::string
theTrackerRecHitBuilderName
;
121
edm::ESHandle<TransientTrackingRecHitBuilder>
theTrackerRecHitBuilder
;
122
123
std::string
theMuonRecHitBuilderName
;
124
edm::ESHandle<TransientTrackingRecHitBuilder>
theMuonRecHitBuilder
;
125
};
126
#endif
TrackingComponentsRecord.h
TrackTransformerForCosmicMuons::theIOpropToken
const edm::ESGetToken< Propagator, TrackingComponentsRecord > theIOpropToken
Definition:
TrackTransformerForCosmicMuons.h:88
TrackTransformerForCosmicMuons::SumDy
float SumDy(const TransientTrackingRecHit::ConstRecHitContainer &) const
decide if the track should be reversed
Definition:
TrackTransformerForCosmicMuons.cc:494
TrackTransformerForCosmicMuons::setServices
void setServices(const edm::EventSetup &) override
set the services needed by the TrackTransformer
Definition:
TrackTransformerForCosmicMuons.cc:55
GlobalTrackingGeometryRecord.h
TrackTransformerForCosmicMuons::theCacheId_GTG
unsigned long long theCacheId_GTG
Definition:
TrackTransformerForCosmicMuons.h:105
TrackTransformerForCosmicMuons::thePropagatorIO
edm::ESHandle< Propagator > thePropagatorIO
Definition:
TrackTransformerForCosmicMuons.h:99
ParameterSet
Definition:
Functions.h:16
TrackTransformerForCosmicMuons::theSmootherOI
edm::ESHandle< TrajectorySmoother > theSmootherOI
Definition:
TrackTransformerForCosmicMuons.h:118
TrackTransformerForCosmicMuons::theMFToken
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theMFToken
Definition:
TrackTransformerForCosmicMuons.h:91
TrackTransformerForCosmicMuons::theTrackingGeometry
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
Definition:
TrackTransformerForCosmicMuons.h:111
MagneticField
Definition:
MagneticField.h:19
TrackTransformerForCosmicMuons::theRPCInTheFit
bool theRPCInTheFit
Definition:
TrackTransformerForCosmicMuons.h:109
TrajectorySmoother
Definition:
TrajectorySmoother.h:11
TrackTransformerForCosmicMuons::theSmootherIO
edm::ESHandle< TrajectorySmoother > theSmootherIO
Definition:
TrackTransformerForCosmicMuons.h:117
TrackFwd.h
TrackTransformerForCosmicMuons::thePropagatorOI
edm::ESHandle< Propagator > thePropagatorOI
Definition:
TrackTransformerForCosmicMuons.h:100
TrackTransformerForCosmicMuons::theTkRecHitBuildToken
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > theTkRecHitBuildToken
Definition:
TrackTransformerForCosmicMuons.h:96
TransientTrackingRecHitBuilder
Definition:
TransientTrackingRecHitBuilder.h:6
TrackTransformerForCosmicMuons::theTrackerRecHitBuilderName
std::string theTrackerRecHitBuilderName
Definition:
TrackTransformerForCosmicMuons.h:120
Trajectory
Definition:
Trajectory.h:38
TrackTransformerBase
Definition:
TrackTransformerBase.h:17
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TrackTransformerForCosmicMuons::theCacheId_TC
unsigned long long theCacheId_TC
Definition:
TrackTransformerForCosmicMuons.h:104
MagneticField.h
TransientTrackingRecHit.h
TrackTransformerForCosmicMuons::theFitterOI
edm::ESHandle< TrajectoryFitter > theFitterOI
Definition:
TrackTransformerForCosmicMuons.h:115
TrackTransformerBase.h
edm::ESGetToken< Propagator, TrackingComponentsRecord >
TrackTransformerForCosmicMuons::theOIpropToken
const edm::ESGetToken< Propagator, TrackingComponentsRecord > theOIpropToken
Definition:
TrackTransformerForCosmicMuons.h:89
TrackTransformerForCosmicMuons::SlopeSum
bool SlopeSum(const TransientTrackingRecHit::ConstRecHitContainer &) const
calculate the sum of slopes for the track
Definition:
TrackTransformerForCosmicMuons.cc:438
EventSetup
TrackTransformerForCosmicMuons::theIOSmootherToken
const edm::ESGetToken< TrajectorySmoother, TrajectoryFitter::Record > theIOSmootherToken
Definition:
TrackTransformerForCosmicMuons.h:94
edm::ESHandle< GlobalTrackingGeometry >
TrackTransformerForCosmicMuons::~TrackTransformerForCosmicMuons
~TrackTransformerForCosmicMuons() override
Destructor.
Definition:
TrackTransformerForCosmicMuons.cc:53
TrackTransformerForCosmicMuons::magneticField
const MagneticField * magneticField() const
the magnetic field
Definition:
TrackTransformerForCosmicMuons.h:66
RefitDirection.h
ESHandle.h
TransientRecHitRecord.h
TrackTransformerForCosmicMuons::theTrackerRecHitBuilder
edm::ESHandle< TransientTrackingRecHitBuilder > theTrackerRecHitBuilder
Definition:
TrackTransformerForCosmicMuons.h:121
TrackTransformerForCosmicMuons::theMuonRecHitBuilderName
std::string theMuonRecHitBuilderName
Definition:
TrackTransformerForCosmicMuons.h:123
TrackTransformerForCosmicMuons::theFitterIO
edm::ESHandle< TrajectoryFitter > theFitterIO
Definition:
TrackTransformerForCosmicMuons.h:114
edm::EventSetup
Definition:
EventSetup.h:59
Propagator
Definition:
Propagator.h:44
HLT_2022v12_cff.track
track
Definition:
HLT_2022v12_cff.py:9241
TrackTransformerForCosmicMuons::theMuonRecHitBuilder
edm::ESHandle< TransientTrackingRecHitBuilder > theMuonRecHitBuilder
Definition:
TrackTransformerForCosmicMuons.h:124
TrackTransformerForCosmicMuons::fitter
edm::ESHandle< TrajectoryFitter > fitter(bool, int, float) const
the refitter used to refit the reco::Track
Definition:
TrackTransformerForCosmicMuons.cc:199
reco::TransientTrack
Definition:
TransientTrack.h:19
TrackingRecHit::ConstRecHitContainer
std::vector< ConstRecHitPointer > ConstRecHitContainer
Definition:
TrackingRecHit.h:32
TrackTransformerForCosmicMuons
Definition:
TrackTransformerForCosmicMuons.h:52
TrajectoryFitter
Definition:
TrajectoryFitter.h:19
TrackTransformerForCosmicMuons::trackingGeometry
edm::ESHandle< GlobalTrackingGeometry > trackingGeometry() const
the tracking geometry
Definition:
TrackTransformerForCosmicMuons.h:69
TrackTransformerForCosmicMuons::theCacheId_MG
unsigned long long theCacheId_MG
Definition:
TrackTransformerForCosmicMuons.h:106
TrackTransformerForCosmicMuons::theMuonRecHitBuildToken
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > theMuonRecHitBuildToken
Definition:
TrackTransformerForCosmicMuons.h:97
reco::Track
Definition:
Track.h:27
TrackTransformerForCosmicMuons::smoother
edm::ESHandle< TrajectorySmoother > smoother(bool, int, float) const
the smoother used to smooth the trajectory which came from the refitting step
Definition:
TrackTransformerForCosmicMuons.cc:232
TrackTransformerForCosmicMuons::TrackTransformerForCosmicMuons
TrackTransformerForCosmicMuons(const edm::ParameterSet &, edm::ConsumesCollector)
Constructor.
Definition:
TrackTransformerForCosmicMuons.cc:34
TrackTransformerForCosmicMuons::theOIFitterToken
const edm::ESGetToken< TrajectoryFitter, TrajectoryFitter::Record > theOIFitterToken
Definition:
TrackTransformerForCosmicMuons.h:93
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
edm
HLT enums.
Definition:
AlignableModifier.h:19
TrackTransformerForCosmicMuons::propagator
edm::ESHandle< Propagator > propagator(bool, int, float) const
Definition:
TrackTransformerForCosmicMuons.cc:263
TrackTransformerForCosmicMuons::theOISmootherToken
const edm::ESGetToken< TrajectorySmoother, TrajectoryFitter::Record > theOISmootherToken
Definition:
TrackTransformerForCosmicMuons.h:95
TrackTransformerForCosmicMuons::theIOFitterToken
const edm::ESGetToken< TrajectoryFitter, TrajectoryFitter::Record > theIOFitterToken
Definition:
TrackTransformerForCosmicMuons.h:92
edm::ParameterSet
Definition:
ParameterSet.h:47
TrackTransformerForCosmicMuons::theMGField
edm::ESHandle< MagneticField > theMGField
Definition:
TrackTransformerForCosmicMuons.h:112
TrackTransformerForCosmicMuons::theCacheId_TRH
unsigned long long theCacheId_TRH
Definition:
TrackTransformerForCosmicMuons.h:107
TrackTransformerForCosmicMuons::thGlobTrackGeoToken
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > thGlobTrackGeoToken
Definition:
TrackTransformerForCosmicMuons.h:90
TrackTransformerForCosmicMuons::getTransientRecHits
TransientTrackingRecHit::ConstRecHitContainer getTransientRecHits(const reco::TransientTrack &track) const
Definition:
TrackTransformerForCosmicMuons.cc:98
TrajectoryFitter.h
TrackTransformerForCosmicMuons::transform
std::vector< Trajectory > transform(const reco::Track &) const override
Convert a reco::Track into Trajectory.
Definition:
TrackTransformerForCosmicMuons.cc:295
GlobalTrackingGeometry.h
ConsumesCollector.h
IdealMagneticFieldRecord.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Generated for CMSSW Reference Manual by
1.8.14