CMS 3D CMS Logo

GlobalCosmicMuonTrajectoryBuilder.h
Go to the documentation of this file.
1 #ifndef RecoMuon_CosmicMuonProducer_GlobalCosmicMuonTrajectoryBuilder_H
2 #define RecoMuon_CosmicMuonProducer_GlobalCosmicMuonTrajectoryBuilder_H
3 
26 
27 namespace edm {
28  class ParameterSet;
29  class Event;
30  class EventSetup;
31 } // namespace edm
32 
33 class Trajectory;
36 
38 public:
43 
48  typedef std::pair<const Trajectory*, reco::TrackRef> TrackCand;
49 
54 
57 
60 
62 
64  CandidateContainer trajectories(const TrackCand&) override;
65 
67  std::vector<TrackCand> match(const TrackCand&, const edm::Handle<reco::TrackCollection>&);
68 
69  void setEvent(const edm::Event&) override;
70 
71 private:
73 
75 
77 
78  const CosmicMuonUtilities* utilities() const { return smoother()->utilities(); }
79 
80  bool isTraversing(const reco::Track& tk) const;
81 
83 
85 
87 
90 
93 
96 
98 
100 
101  const std::vector<Trajectory>* allTrackerTrajs;
102 
104 };
105 #endif
GlobalCosmicMuonTrajectoryBuilder::tkTrajsAvailable
bool tkTrajsAvailable
Definition: GlobalCosmicMuonTrajectoryBuilder.h:99
service
Definition: service.py:1
Handle.h
MuonTransientTrackingRecHit::ConstMuonRecHitPointer
std::shared_ptr< MuonTransientTrackingRecHit const > ConstMuonRecHitPointer
Definition: MuonTransientTrackingRecHit.h:22
CosmicMuonSmoother
Definition: CosmicMuonSmoother.h:38
GlobalCosmicMuonTrajectoryBuilder::propagator
const Propagator * propagator() const
Definition: GlobalCosmicMuonTrajectoryBuilder.h:61
ESHandle.h
SiStripMatchedRecHit2DCollection.h
GlobalCosmicMuonTrajectoryBuilder::theTrackerRecHitBuilderToken
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > theTrackerRecHitBuilderToken
Definition: GlobalCosmicMuonTrajectoryBuilder.h:91
GlobalCosmicMuonTrajectoryBuilder::MuonRecHitContainer
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:46
GlobalCosmicMuonTrajectoryBuilder::allTrackerTrajs
const std::vector< Trajectory > * allTrackerTrajs
Definition: GlobalCosmicMuonTrajectoryBuilder.h:101
edm::EDGetTokenT< reco::TrackCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
GlobalMuonTrackMatcher.h
GlobalCosmicMuonTrajectoryBuilder::sortHits
void sortHits(ConstRecHitContainer &, ConstRecHitContainer &, ConstRecHitContainer &)
Definition: GlobalCosmicMuonTrajectoryBuilder.cc:209
TransientRecHitRecord.h
GlobalCosmicMuonTrajectoryBuilder
Definition: GlobalCosmicMuonTrajectoryBuilder.h:37
MuonTransientTrackingRecHit::ConstMuonRecHitContainer
std::vector< ConstMuonRecHitPointer > ConstMuonRecHitContainer
Definition: MuonTransientTrackingRecHit.h:27
MuonTransientTrackingRecHit::MuonRecHitContainer
std::vector< MuonRecHitPointer > MuonRecHitContainer
Definition: MuonTransientTrackingRecHit.h:26
MuonTransientTrackingRecHit.h
TrackingRecHit::RecHitPointer
std::shared_ptr< TrackingRecHit const > RecHitPointer
Definition: TrackingRecHit.h:24
GlobalCosmicMuonTrajectoryBuilder::getTransientRecHits
ConstRecHitContainer getTransientRecHits(const reco::Track &) const
Definition: GlobalCosmicMuonTrajectoryBuilder.cc:317
edm::Handle< reco::TrackCollection >
MuonTrajectoryBuilder::CandidateContainer
MuonCandidate::CandidateContainer CandidateContainer
Definition: MuonTrajectoryBuilder.h:24
Propagator
Definition: Propagator.h:44
CosmicMuonSmoother.h
TrackingRecHit.h
MuonTransientTrackingRecHit::MuonRecHitPointer
std::shared_ptr< MuonTransientTrackingRecHit > MuonRecHitPointer
Definition: MuonTransientTrackingRecHit.h:21
GlobalCosmicMuonTrajectoryBuilder::isTraversing
bool isTraversing(const reco::Track &tk) const
Definition: GlobalCosmicMuonTrajectoryBuilder.cc:467
TrackingRecHit::RecHitContainer
std::vector< ConstRecHitPointer > RecHitContainer
Definition: TrackingRecHit.h:31
CosmicMuonSmoother::utilities
const CosmicMuonUtilities * utilities() const
Definition: CosmicMuonSmoother.h:62
GlobalCosmicMuonTrajectoryBuilder::utilities
const CosmicMuonUtilities * utilities() const
Definition: GlobalCosmicMuonTrajectoryBuilder.h:78
reco::Track
Definition: Track.h:27
edm::ESHandle< TransientTrackingRecHitBuilder >
Event
GlobalCosmicMuonTrajectoryBuilder::TrackCand
std::pair< const Trajectory *, reco::TrackRef > TrackCand
Definition: GlobalCosmicMuonTrajectoryBuilder.h:48
GlobalCosmicMuonTrajectoryBuilder::MuonRecHitPointer
MuonTransientTrackingRecHit::MuonRecHitPointer MuonRecHitPointer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:44
MuonTrajectoryBuilder
Definition: MuonTrajectoryBuilder.h:21
CosmicMuonUtilities
Definition: CosmicMuonUtilities.h:30
GlobalCosmicMuonTrajectoryBuilder::ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:40
SiPixelRecHitCollection.h
GlobalCosmicMuonTrajectoryBuilder::theMuonRecHitBuilder
edm::ESHandle< TransientTrackingRecHitBuilder > theMuonRecHitBuilder
Definition: GlobalCosmicMuonTrajectoryBuilder.h:95
edm::ParameterSet
Definition: ParameterSet.h:47
GlobalCosmicMuonTrajectoryBuilder::~GlobalCosmicMuonTrajectoryBuilder
~GlobalCosmicMuonTrajectoryBuilder() override
Destructor.
Definition: GlobalCosmicMuonTrajectoryBuilder.cc:52
Event.h
ParameterSet
Definition: Functions.h:16
TrackingRecHit::ConstRecHitContainer
std::vector< ConstRecHitPointer > ConstRecHitContainer
Definition: TrackingRecHit.h:32
GlobalCosmicMuonTrajectoryBuilder::theService
const MuonServiceProxy * theService
Definition: GlobalCosmicMuonTrajectoryBuilder.h:82
GlobalCosmicMuonTrajectoryBuilder::match
std::vector< TrackCand > match(const TrackCand &, const edm::Handle< reco::TrackCollection > &)
check if tk and muon Tracks are matched
Definition: GlobalCosmicMuonTrajectoryBuilder.cc:344
GlobalCosmicMuonTrajectoryBuilder::theTrackMatcher
GlobalMuonTrackMatcher * theTrackMatcher
Definition: GlobalCosmicMuonTrajectoryBuilder.h:86
TrackingRecHit::ConstRecHitPointer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
Definition: TrackingRecHit.h:25
MuonServiceProxy::propagator
edm::ESHandle< Propagator > propagator(std::string propagatorName) const
get the propagator
Definition: MuonServiceProxy.cc:177
SiStripRecHit2DCollection.h
GlobalCosmicMuonTrajectoryBuilder::theMuonRecHitBuilderToken
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > theMuonRecHitBuilderToken
Definition: GlobalCosmicMuonTrajectoryBuilder.h:94
GlobalCosmicMuonTrajectoryBuilder::RecHitContainer
TransientTrackingRecHit::RecHitContainer RecHitContainer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:39
GlobalMuonTrackMatcher
Definition: GlobalMuonTrackMatcher.h:39
edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GlobalCosmicMuonTrajectoryBuilder::RecHitPointer
TransientTrackingRecHit::RecHitPointer RecHitPointer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:41
GlobalCosmicMuonTrajectoryBuilder::setEvent
void setEvent(const edm::Event &) override
pass the Event to the algo at each event
Definition: GlobalCosmicMuonTrajectoryBuilder.cc:62
GlobalCosmicMuonTrajectoryBuilder::category_
std::string category_
Definition: GlobalCosmicMuonTrajectoryBuilder.h:103
MuonTrajectoryBuilder::TrajectoryContainer
MuonCandidate::TrajectoryContainer TrajectoryContainer
Definition: MuonTrajectoryBuilder.h:23
GlobalCosmicMuonTrajectoryBuilder::theTrackerTracks
edm::Handle< reco::TrackCollection > theTrackerTracks
Definition: GlobalCosmicMuonTrajectoryBuilder.h:97
ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: MillePedeAlignmentAlgorithm.cc:69
GlobalCosmicMuonTrajectoryBuilder::theTkTrackToken
edm::EDGetTokenT< reco::TrackCollection > theTkTrackToken
Definition: GlobalCosmicMuonTrajectoryBuilder.h:89
Trajectory
Definition: Trajectory.h:38
GlobalCosmicMuonTrajectoryBuilder::thePropagatorName
std::string thePropagatorName
Definition: GlobalCosmicMuonTrajectoryBuilder.h:88
MuonServiceProxy.h
GlobalCosmicMuonTrajectoryBuilder::theSmoother
CosmicMuonSmoother * theSmoother
Definition: GlobalCosmicMuonTrajectoryBuilder.h:84
DetLayer.h
TrajectorySeed
Definition: TrajectorySeed.h:18
GlobalCosmicMuonTrajectoryBuilder::ConstMuonRecHitPointer
MuonTransientTrackingRecHit::ConstMuonRecHitPointer ConstMuonRecHitPointer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:45
EventSetup.h
GlobalCosmicMuonTrajectoryBuilder::trajectories
TrajectoryContainer trajectories(const TrajectorySeed &) override
dummy implementation, unused in this class
Definition: GlobalCosmicMuonTrajectoryBuilder.h:59
MuonTrajectoryBuilder.h
TransientTrackingRecHitBuilder.h
ConsumesCollector.h
EventSetup
MuonServiceProxy
Definition: MuonServiceProxy.h:38
GlobalCosmicMuonTrajectoryBuilder::ConstRecHitPointer
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:42
edm::Event
Definition: Event.h:73
TrajectoryMeasurement
Definition: TrajectoryMeasurement.h:25
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
GlobalCosmicMuonTrajectoryBuilder::ConstMuonRecHitContainer
MuonTransientTrackingRecHit::ConstMuonRecHitContainer ConstMuonRecHitContainer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:47
GlobalCosmicMuonTrajectoryBuilder::smoother
CosmicMuonSmoother * smoother() const
Definition: GlobalCosmicMuonTrajectoryBuilder.h:76
GlobalCosmicMuonTrajectoryBuilder::GlobalCosmicMuonTrajectoryBuilder
GlobalCosmicMuonTrajectoryBuilder(const edm::ParameterSet &, const MuonServiceProxy *service, edm::ConsumesCollector &iC)
Constructor.
Definition: GlobalCosmicMuonTrajectoryBuilder.cc:29
GlobalCosmicMuonTrajectoryBuilder::theTrackerRecHitBuilder
edm::ESHandle< TransientTrackingRecHitBuilder > theTrackerRecHitBuilder
Definition: GlobalCosmicMuonTrajectoryBuilder.h:92