Main Page
Namespaces
Classes
Package Documentation
src
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
TrackerMuonHitExtractor::inputDTRecSegment4DCollection_
edm::InputTag inputDTRecSegment4DCollection_
Definition:
TrackerMuonHitExtractor.h:33
TrackerMuonHitExtractor::getMuonHits
std::vector< const TrackingRecHit * > getMuonHits(const reco::Muon &mu) const
Definition:
TrackerMuonHitExtractor.cc:100
TrackerMuonHitExtractor::inputCSCSegmentCollection_
edm::InputTag inputCSCSegmentCollection_
Definition:
TrackerMuonHitExtractor.h:34
Event.h
edm::Handle< DTRecSegment4DCollection >
TrackerMuonHitExtractor::cscSegmentCollectionH_
edm::Handle< CSCSegmentCollection > cscSegmentCollectionH_
Definition:
TrackerMuonHitExtractor.h:29
edm::EDGetTokenT< DTRecSegment4DCollection >
MuonFwd.h
ParameterSet.h
edm::EventSetup
Definition:
EventSetup.h:57
RPCpg::mu
const int mu
Definition:
Constants.h:22
Muon.h
reco::Muon
Definition:
Muon.h:27
TrackerMuonHitExtractor
Definition:
TrackerMuonHitExtractor.h:18
TrackerMuonHitExtractor::init
void init(const edm::Event &, const edm::EventSetup &)
Definition:
TrackerMuonHitExtractor.cc:30
TrackerMuonHitExtractor::dtSegmentCollectionH_
edm::Handle< DTRecSegment4DCollection > dtSegmentCollectionH_
Definition:
TrackerMuonHitExtractor.h:28
CSCSegmentCollection.h
TrackerMuonHitExtractor::inputDTRecSegment4DToken_
edm::EDGetTokenT< DTRecSegment4DCollection > inputDTRecSegment4DToken_
Definition:
TrackerMuonHitExtractor.h:31
TrackerMuonHitExtractor::TrackerMuonHitExtractor
TrackerMuonHitExtractor(const edm::ParameterSet &, edm::ConsumesCollector &&ic)
Definition:
TrackerMuonHitExtractor.cc:16
edm::InputTag
Definition:
InputTag.h:15
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:71
TrackerMuonHitExtractor::inputCSCSegmentToken_
edm::EDGetTokenT< CSCSegmentCollection > inputCSCSegmentToken_
Definition:
TrackerMuonHitExtractor.h:32
ConsumesCollector.h
TrackerMuonHitExtractor::~TrackerMuonHitExtractor
~TrackerMuonHitExtractor()
Definition:
TrackerMuonHitExtractor.cc:28
DTRecSegment4DCollection.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Generated for CMSSW Reference Manual by
1.8.11