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 
25 
26 namespace edm {
27  class ParameterSet;
28  class Event;
29  class EventSetup;
30 } // namespace edm
31 
32 class Trajectory;
35 
37 public:
42 
47  typedef std::pair<const Trajectory*, reco::TrackRef> TrackCand;
48 
53 
56 
59 
61 
63  CandidateContainer trajectories(const TrackCand&) override;
64 
66  std::vector<TrackCand> match(const TrackCand&, const edm::Handle<reco::TrackCollection>&);
67 
68  void setEvent(const edm::Event&) override;
69 
70 private:
72 
74 
76 
77  const CosmicMuonUtilities* utilities() const { return smoother()->utilities(); }
78 
79  bool isTraversing(const reco::Track& tk) const;
80 
82 
84 
86 
89 
92 
95 
97 
99 
100  const std::vector<Trajectory>* allTrackerTrajs;
101 
103 };
104 #endif
GlobalCosmicMuonTrajectoryBuilder::tkTrajsAvailable
bool tkTrajsAvailable
Definition: GlobalCosmicMuonTrajectoryBuilder.h:98
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:60
ESHandle.h
SiStripMatchedRecHit2DCollection.h
GlobalCosmicMuonTrajectoryBuilder::MuonRecHitContainer
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:45
GlobalCosmicMuonTrajectoryBuilder::allTrackerTrajs
const std::vector< Trajectory > * allTrackerTrajs
Definition: GlobalCosmicMuonTrajectoryBuilder.h:100
edm::EDGetTokenT< reco::TrackCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
GlobalMuonTrackMatcher.h
GlobalCosmicMuonTrajectoryBuilder::sortHits
void sortHits(ConstRecHitContainer &, ConstRecHitContainer &, ConstRecHitContainer &)
Definition: GlobalCosmicMuonTrajectoryBuilder.cc:209
GlobalCosmicMuonTrajectoryBuilder
Definition: GlobalCosmicMuonTrajectoryBuilder.h:36
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:77
reco::Track
Definition: Track.h:27
edm::ESHandle< TransientTrackingRecHitBuilder >
Event
GlobalCosmicMuonTrajectoryBuilder::TrackCand
std::pair< const Trajectory *, reco::TrackRef > TrackCand
Definition: GlobalCosmicMuonTrajectoryBuilder.h:47
GlobalCosmicMuonTrajectoryBuilder::MuonRecHitPointer
MuonTransientTrackingRecHit::MuonRecHitPointer MuonRecHitPointer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:43
MuonTrajectoryBuilder
Definition: MuonTrajectoryBuilder.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CosmicMuonUtilities
Definition: CosmicMuonUtilities.h:30
GlobalCosmicMuonTrajectoryBuilder::ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:39
SiPixelRecHitCollection.h
GlobalCosmicMuonTrajectoryBuilder::theMuonRecHitBuilder
edm::ESHandle< TransientTrackingRecHitBuilder > theMuonRecHitBuilder
Definition: GlobalCosmicMuonTrajectoryBuilder.h:94
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:81
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:85
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::RecHitContainer
TransientTrackingRecHit::RecHitContainer RecHitContainer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:38
GlobalMuonTrackMatcher
Definition: GlobalMuonTrackMatcher.h:39
GlobalCosmicMuonTrajectoryBuilder::RecHitPointer
TransientTrackingRecHit::RecHitPointer RecHitPointer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:40
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:102
GlobalCosmicMuonTrajectoryBuilder::theMuonRecHitBuilderName
std::string theMuonRecHitBuilderName
Definition: GlobalCosmicMuonTrajectoryBuilder.h:93
MuonTrajectoryBuilder::TrajectoryContainer
MuonCandidate::TrajectoryContainer TrajectoryContainer
Definition: MuonTrajectoryBuilder.h:23
GlobalCosmicMuonTrajectoryBuilder::theTrackerTracks
edm::Handle< reco::TrackCollection > theTrackerTracks
Definition: GlobalCosmicMuonTrajectoryBuilder.h:96
ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: MillePedeAlignmentAlgorithm.cc:74
GlobalCosmicMuonTrajectoryBuilder::theTkTrackToken
edm::EDGetTokenT< reco::TrackCollection > theTkTrackToken
Definition: GlobalCosmicMuonTrajectoryBuilder.h:88
Trajectory
Definition: Trajectory.h:38
GlobalCosmicMuonTrajectoryBuilder::thePropagatorName
std::string thePropagatorName
Definition: GlobalCosmicMuonTrajectoryBuilder.h:87
MuonServiceProxy.h
GlobalCosmicMuonTrajectoryBuilder::theSmoother
CosmicMuonSmoother * theSmoother
Definition: GlobalCosmicMuonTrajectoryBuilder.h:83
DetLayer.h
TrajectorySeed
Definition: TrajectorySeed.h:18
GlobalCosmicMuonTrajectoryBuilder::ConstMuonRecHitPointer
MuonTransientTrackingRecHit::ConstMuonRecHitPointer ConstMuonRecHitPointer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:44
EventSetup.h
GlobalCosmicMuonTrajectoryBuilder::trajectories
TrajectoryContainer trajectories(const TrajectorySeed &) override
dummy implementation, unused in this class
Definition: GlobalCosmicMuonTrajectoryBuilder.h:58
MuonTrajectoryBuilder.h
TransientTrackingRecHitBuilder.h
GlobalCosmicMuonTrajectoryBuilder::theTrackerRecHitBuilderName
std::string theTrackerRecHitBuilderName
Definition: GlobalCosmicMuonTrajectoryBuilder.h:90
ConsumesCollector.h
EventSetup
MuonServiceProxy
Definition: MuonServiceProxy.h:38
GlobalCosmicMuonTrajectoryBuilder::ConstRecHitPointer
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
Definition: GlobalCosmicMuonTrajectoryBuilder.h:41
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:46
GlobalCosmicMuonTrajectoryBuilder::smoother
CosmicMuonSmoother * smoother() const
Definition: GlobalCosmicMuonTrajectoryBuilder.h:75
GlobalCosmicMuonTrajectoryBuilder::GlobalCosmicMuonTrajectoryBuilder
GlobalCosmicMuonTrajectoryBuilder(const edm::ParameterSet &, const MuonServiceProxy *service, edm::ConsumesCollector &iC)
Constructor.
Definition: GlobalCosmicMuonTrajectoryBuilder.cc:30
GlobalCosmicMuonTrajectoryBuilder::theTrackerRecHitBuilder
edm::ESHandle< TransientTrackingRecHitBuilder > theTrackerRecHitBuilder
Definition: GlobalCosmicMuonTrajectoryBuilder.h:91