SimMuon
MCTruth
interface
TrackerMuonHitExtractor.h
Go to the documentation of this file.
1
//
2
// modified & integrated by Giovanni Abbiendi
3
// from code by Arun Luthra:
4
// UserCode/luthra/MuonTrackSelector/src/MuonTrackSelector.cc
5
//
6
#ifndef MCTruth_TrackerMuonHitExtractor_h
7
#define MCTruth_TrackerMuonHitExtractor_h
8
9
#include "
DataFormats/CSCRecHit/interface/CSCSegmentCollection.h
"
10
#include "
DataFormats/DTRecHit/interface/DTRecSegment4DCollection.h
"
11
#include "
DataFormats/MuonReco/interface/Muon.h
"
12
#include "
DataFormats/MuonReco/interface/MuonFwd.h
"
13
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
14
#include "
FWCore/Framework/interface/Event.h
"
15
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
16
#include <memory>
17
18
class
TrackerMuonHitExtractor
{
19
public
:
20
explicit
TrackerMuonHitExtractor
(
const
edm::ParameterSet
&,
edm::ConsumesCollector
&&ic);
21
explicit
TrackerMuonHitExtractor
(
const
edm::ParameterSet
&);
22
~TrackerMuonHitExtractor
();
23
24
void
init
(
const
edm::Event
&,
const
edm::EventSetup
&);
25
std::vector<const TrackingRecHit *>
getMuonHits
(
const
reco::Muon
&
mu
)
const
;
26
27
private
:
28
edm::Handle<DTRecSegment4DCollection>
dtSegmentCollectionH_
;
29
edm::Handle<CSCSegmentCollection>
cscSegmentCollectionH_
;
30
31
edm::EDGetTokenT<DTRecSegment4DCollection>
inputDTRecSegment4DToken_
;
32
edm::EDGetTokenT<CSCSegmentCollection>
inputCSCSegmentToken_
;
33
edm::InputTag
inputDTRecSegment4DCollection_
;
34
edm::InputTag
inputCSCSegmentCollection_
;
35
};
36
37
#endif
Muon.h
amptDefaultParameters_cff.mu
mu
Definition:
amptDefaultParameters_cff.py:16
edm::EDGetTokenT< DTRecSegment4DCollection >
TrackerMuonHitExtractor::cscSegmentCollectionH_
edm::Handle< CSCSegmentCollection > cscSegmentCollectionH_
Definition:
TrackerMuonHitExtractor.h:29
TrackerMuonHitExtractor::inputCSCSegmentCollection_
edm::InputTag inputCSCSegmentCollection_
Definition:
TrackerMuonHitExtractor.h:34
edm::Handle< DTRecSegment4DCollection >
TrackerMuonHitExtractor::getMuonHits
std::vector< const TrackingRecHit * > getMuonHits(const reco::Muon &mu) const
Definition:
TrackerMuonHitExtractor.cc:100
reco::Muon
Definition:
Muon.h:27
MuonFwd.h
TrackerMuonHitExtractor::init
void init(const edm::Event &, const edm::EventSetup &)
Definition:
TrackerMuonHitExtractor.cc:30
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
edm::EventSetup
Definition:
EventSetup.h:57
TrackerMuonHitExtractor::dtSegmentCollectionH_
edm::Handle< DTRecSegment4DCollection > dtSegmentCollectionH_
Definition:
TrackerMuonHitExtractor.h:28
TrackerMuonHitExtractor::inputDTRecSegment4DToken_
edm::EDGetTokenT< DTRecSegment4DCollection > inputDTRecSegment4DToken_
Definition:
TrackerMuonHitExtractor.h:31
TrackerMuonHitExtractor::~TrackerMuonHitExtractor
~TrackerMuonHitExtractor()
Definition:
TrackerMuonHitExtractor.cc:28
TrackerMuonHitExtractor::TrackerMuonHitExtractor
TrackerMuonHitExtractor(const edm::ParameterSet &, edm::ConsumesCollector &&ic)
Definition:
TrackerMuonHitExtractor.cc:16
ConsumesCollector.h
TrackerMuonHitExtractor
Definition:
TrackerMuonHitExtractor.h:18
ParameterSet.h
edm::Event
Definition:
Event.h:73
edm::InputTag
Definition:
InputTag.h:15
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
TrackerMuonHitExtractor::inputDTRecSegment4DCollection_
edm::InputTag inputDTRecSegment4DCollection_
Definition:
TrackerMuonHitExtractor.h:33
TrackerMuonHitExtractor::inputCSCSegmentToken_
edm::EDGetTokenT< CSCSegmentCollection > inputCSCSegmentToken_
Definition:
TrackerMuonHitExtractor.h:32
DTRecSegment4DCollection.h
CSCSegmentCollection.h
Generated for CMSSW Reference Manual by
1.8.16