CMS 3D CMS Logo

MuonTrackAnalyzer.h
Go to the documentation of this file.
1 #ifndef Validation_RecoMuon_MuonTrackAnalyzer_H
2 #define Validation_RecoMuon_MuonTrackAnalyzer_H
3 
10 // Base Class Headers
13 
16 
18 
20 
28 
29 namespace edm {
30  class ParameterSet;
31  class Event;
32  class EventSetup;
33 } // namespace edm
34 namespace reco {
35  class TransientTrack;
36 }
37 
38 class TFile;
39 class TH1F;
40 class TH2F;
41 class HTrackVariables;
42 class HTrack;
43 
46 class MuonServiceProxy;
48 class TrajectorySeed;
50 
52 public:
53  enum EtaRange { all, barrel, endcap };
54 
55 public:
58 
60  ~MuonTrackAnalyzer() override;
61 
62  // Operations
63 
64  void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override;
65  void tracksAnalysis(const edm::Event &event,
66  const edm::EventSetup &eventSetup,
68  void seedsAnalysis(const edm::Event &event,
69  const edm::EventSetup &eventSetup,
71 
72  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
73 
74 protected:
75 private:
76  bool isInTheAcceptance(double eta);
78 
79  std::pair<SimTrack, double> getSimTrack(TrajectoryStateOnSurface &tsos,
81 
86 
88 
91 
95  //TFile* theFile;
96 
98 
105 
112 
116 
119 
120  // Histograms
126 
132 
140 
142 
148 
149  // Counters
152 };
153 #endif
MuonTrackAnalyzer::hNumberOfTracksVsEta
MonitorElement * hNumberOfTracksVsEta
Definition: MuonTrackAnalyzer.h:128
MuonUpdatorAtVertex
Definition: MuonUpdatorAtVertex.h:42
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
MuonTrackAnalyzer::hRecoTracksPCA
HTrack * hRecoTracksPCA
Definition: MuonTrackAnalyzer.h:145
MuonTrackAnalyzer::theSeedsToken
edm::EDGetTokenT< TrajectorySeedCollection > theSeedsToken
Definition: MuonTrackAnalyzer.h:107
FreeTrajectoryState.h
HTrackVariables
Definition: Histograms.h:23
MuonTrackAnalyzer::hRecoTracksOuter
HTrack * hRecoTracksOuter
Definition: MuonTrackAnalyzer.h:147
ESHandle.h
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< edm::SimTrackContainer >
MuonTrackAnalyzer::dirName_
std::string dirName_
Definition: MuonTrackAnalyzer.h:90
edm
HLT enums.
Definition: AlignableModifier.h:19
MuonTrackAnalyzer::hDeltaPtVsEta
MonitorElement * hDeltaPtVsEta
Definition: MuonTrackAnalyzer.h:138
MuonTrackAnalyzer::hChi2ProbVsEta
MonitorElement * hChi2ProbVsEta
Definition: MuonTrackAnalyzer.h:137
PSimHitContainer.h
MuonTrackAnalyzer::hChi2Norm
MonitorElement * hChi2Norm
Definition: MuonTrackAnalyzer.h:122
MuonTrackAnalyzer::theSeedPropagatorName
std::string theSeedPropagatorName
Definition: MuonTrackAnalyzer.h:115
MuonTrackAnalyzer::checkMuonSimHitPresence
bool checkMuonSimHitPresence(const edm::Event &event, edm::Handle< edm::SimTrackContainer > simTracks)
Definition: MuonTrackAnalyzer.cc:394
MuonTrackAnalyzer::numberOfSimTracks
int numberOfSimTracks
Definition: MuonTrackAnalyzer.h:150
timingPdfMaker.histo
histo
Definition: timingPdfMaker.py:279
TrackCandidateProducer_cfi.simTracks
simTracks
Definition: TrackCandidateProducer_cfi.py:15
MuonTrackAnalyzer::hRecoTracksInner
HTrack * hRecoTracksInner
Definition: MuonTrackAnalyzer.h:146
DQMStore.h
MuonTrackAnalyzer::getSeedTSOS
TrajectoryStateOnSurface getSeedTSOS(const TrajectorySeed &seed)
Definition: MuonTrackAnalyzer.cc:441
MuonTrackAnalyzer::theCSCSimHitToken
edm::EDGetTokenT< std::vector< PSimHit > > theCSCSimHitToken
Definition: MuonTrackAnalyzer.h:109
MuonTrackAnalyzer::theDTSimHitToken
edm::EDGetTokenT< std::vector< PSimHit > > theDTSimHitToken
Definition: MuonTrackAnalyzer.h:110
MuonTrackAnalyzer::theCSCSimHitLabel
edm::InputTag theCSCSimHitLabel
Definition: MuonTrackAnalyzer.h:102
EDAnalyzer.h
MuonTrackAnalyzer::seedsAnalysis
void seedsAnalysis(const edm::Event &event, const edm::EventSetup &eventSetup, edm::Handle< edm::SimTrackContainer > simTracks)
Definition: MuonTrackAnalyzer.cc:187
MuonTrackAnalyzer::doTracksAnalysis
bool doTracksAnalysis
Definition: MuonTrackAnalyzer.h:113
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
MuonTrackAnalyzer::getSimTrack
std::pair< SimTrack, double > getSimTrack(TrajectoryStateOnSurface &tsos, edm::Handle< edm::SimTrackContainer > simTracks)
Definition: MuonTrackAnalyzer.cc:339
edm::Handle< edm::SimTrackContainer >
MuonTrackAnalyzer::hPtRecVsPtGen
MonitorElement * hPtRecVsPtGen
Definition: MuonTrackAnalyzer.h:131
MuonTrackAnalyzer::theSimTracksToken
edm::EDGetTokenT< edm::SimTrackContainer > theSimTracksToken
Definition: MuonTrackAnalyzer.h:106
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
MuonTrackAnalyzer::theDTSimHitLabel
edm::InputTag theDTSimHitLabel
Definition: MuonTrackAnalyzer.h:103
dqm::legacy::DQMStore::IBooker
dqm::implementation::IBooker IBooker
Definition: DQMStore.h:729
MuonTrackAnalyzer::hChi2
MonitorElement * hChi2
Definition: MuonTrackAnalyzer.h:121
debug
#define debug
Definition: HDRShower.cc:19
MuonTrackAnalyzer::subsystemname_
std::string subsystemname_
Definition: MuonTrackAnalyzer.h:93
PSimHit.h
Track.h
TrackFwd.h
dqm::legacy::DQMStore
Definition: DQMStore.h:727
MuonTrackAnalyzer::MuonTrackAnalyzer
MuonTrackAnalyzer(const edm::ParameterSet &pset)
Constructor.
Definition: MuonTrackAnalyzer.cc:41
MuonPatternRecoDumper
Definition: MuonPatternRecoDumper.h:18
Service.h
PVValHelper::eta
Definition: PVValidationHelpers.h:69
MuonTrackAnalyzer::all
Definition: MuonTrackAnalyzer.h:53
MuonTrackAnalyzer::hRecoSeedInner
HTrack * hRecoSeedInner
Definition: MuonTrackAnalyzer.h:143
Event
MuonTrackAnalyzer::hDofVsEta
MonitorElement * hDofVsEta
Definition: MuonTrackAnalyzer.h:136
MuonTrackAnalyzer::theSeedsLabel
edm::InputTag theSeedsLabel
Definition: MuonTrackAnalyzer.h:100
MuonTrackAnalyzer::hSimTracks
HTrackVariables * hSimTracks
Definition: MuonTrackAnalyzer.h:141
MuonTrackAnalyzer::hChargeVsEta
MonitorElement * hChargeVsEta
Definition: MuonTrackAnalyzer.h:129
DQMEDAnalyzer.h
MuonTrackAnalyzer::hRecoSeedPCA
HTrack * hRecoSeedPCA
Definition: MuonTrackAnalyzer.h:144
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MuonTrackAnalyzer::theEtaRange
EtaRange theEtaRange
Definition: MuonTrackAnalyzer.h:97
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
MuonTrackAnalyzer::out
std::string out
Definition: MuonTrackAnalyzer.h:92
MuonTrackAnalyzer::theRPCSimHitToken
edm::EDGetTokenT< std::vector< PSimHit > > theRPCSimHitToken
Definition: MuonTrackAnalyzer.h:111
MuonTrackAnalyzer::isInTheAcceptance
bool isInTheAcceptance(double eta)
Definition: MuonTrackAnalyzer.cc:379
MuonTrackAnalyzer::theTracksToken
edm::EDGetTokenT< reco::TrackCollection > theTracksToken
Definition: MuonTrackAnalyzer.h:108
MuonTrackAnalyzer::hHitsPerTrackVsEta
MonitorElement * hHitsPerTrackVsEta
Definition: MuonTrackAnalyzer.h:135
edm::ParameterSet
Definition: ParameterSet.h:36
MuonTrackAnalyzer::pset
edm::ParameterSet pset
Definition: MuonTrackAnalyzer.h:94
ParameterSet
Definition: Functions.h:16
muonSimHitMatcherPSet.simTrack
simTrack
Definition: muonSimHitMatcherPSet.py:4
MuonTrackAnalyzer::endcap
Definition: MuonTrackAnalyzer.h:53
MuonTrackAnalyzer::hHitsPerTrack
MonitorElement * hHitsPerTrack
Definition: MuonTrackAnalyzer.h:123
edm::EventSetup
Definition: EventSetup.h:57
MuonTrackAnalyzer::theUpdator
MuonUpdatorAtVertex * theUpdator
Definition: MuonTrackAnalyzer.h:118
MuonTrackAnalyzer::hNumberOfTracks
MonitorElement * hNumberOfTracks
Definition: MuonTrackAnalyzer.h:127
MuonTrackAnalyzer::doSeedsAnalysis
bool doSeedsAnalysis
Definition: MuonTrackAnalyzer.h:114
TrajectorySeedCollection.h
MuonTrackAnalyzer::hChargeVsPt
MonitorElement * hChargeVsPt
Definition: MuonTrackAnalyzer.h:130
InputTag.h
MuonTrackAnalyzer::theSimTracksLabel
edm::InputTag theSimTracksLabel
Definition: MuonTrackAnalyzer.h:99
MuonTrackAnalyzer::theRPCSimHitLabel
edm::InputTag theRPCSimHitLabel
Definition: MuonTrackAnalyzer.h:104
reco::TransientTrack
Definition: TransientTrack.h:19
MuonTrackAnalyzer::hChi2Prob
MonitorElement * hChi2Prob
Definition: MuonTrackAnalyzer.h:125
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
HTrack
Definition: HTrack.h:12
SimTrack
Definition: SimTrack.h:6
MuonTrackAnalyzer::numberOfRecTracks
int numberOfRecTracks
Definition: MuonTrackAnalyzer.h:151
MuonTrackAnalyzer::hChi2NormVsEta
MonitorElement * hChi2NormVsEta
Definition: MuonTrackAnalyzer.h:134
TrajectorySeed
Definition: TrajectorySeed.h:17
MuonTrackAnalyzer::dbe_
DQMStore * dbe_
Definition: MuonTrackAnalyzer.h:89
MuonTrackAnalyzer::analyze
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: MuonTrackAnalyzer.cc:170
MuonTrackAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: MuonTrackAnalyzer.cc:91
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
MuonTrackAnalyzer::EtaRange
EtaRange
Definition: MuonTrackAnalyzer.h:53
EventSetup
MuonServiceProxy
Definition: MuonServiceProxy.h:38
event
Definition: event.py:1
MuonTrackAnalyzer::hDeltaPt_In_Out_VsEta
MonitorElement * hDeltaPt_In_Out_VsEta
Definition: MuonTrackAnalyzer.h:139
MuonTrackAnalyzer::~MuonTrackAnalyzer
~MuonTrackAnalyzer() override
Destructor.
Definition: MuonTrackAnalyzer.cc:86
edm::Event
Definition: Event.h:73
MuonTrackAnalyzer::barrel
Definition: MuonTrackAnalyzer.h:53
MuonTrackAnalyzer::theTracksLabel
edm::InputTag theTracksLabel
Definition: MuonTrackAnalyzer.h:101
MuonTrackAnalyzer::tracksAnalysis
void tracksAnalysis(const edm::Event &event, const edm::EventSetup &eventSetup, edm::Handle< edm::SimTrackContainer > simTracks)
Definition: MuonTrackAnalyzer.cc:211
SimTrackContainer.h
MuonTrackAnalyzer::hChi2VsEta
MonitorElement * hChi2VsEta
Definition: MuonTrackAnalyzer.h:133
edm::InputTag
Definition: InputTag.h:15
MuonTrackAnalyzer::theService
MuonServiceProxy * theService
Definition: MuonTrackAnalyzer.h:117
SurveyInfoScenario_cff.seed
seed
Definition: SurveyInfoScenario_cff.py:295
MuonTrackAnalyzer::fillPlots
void fillPlots(const edm::Event &event, edm::Handle< edm::SimTrackContainer > &simTracks)
Definition: MuonTrackAnalyzer.cc:263
MuonTrackAnalyzer
Definition: MuonTrackAnalyzer.h:51
MuonTrackAnalyzer::hDof
MonitorElement * hDof
Definition: MuonTrackAnalyzer.h:124