CMS 3D CMS Logo

MuonRecoAnalyzer.h
Go to the documentation of this file.
1 #ifndef MuonRecoAnalyzer_H
2 #define MuonRecoAnalyzer_H
3 
11 #include <memory>
12 #include <fstream>
19 
22 
24 
31 
33 public:
36 
38  ~MuonRecoAnalyzer() override;
39 
41  void analyze(const edm::Event&, const edm::EventSetup&) override;
42  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
43 
44  //calculate residual & pull:
45  void GetRes(reco::TrackRef t1, reco::TrackRef t2, std::string par, float& res, float& pull);
46 
47  //Functions needed by the SoftMuon MVA monitoring
48  double getDeltaR(reco::Track track1, reco::Track track2);
49 
50  int getPv(int tidx, const reco::VertexCollection* vc);
51 
52 private:
53  // ----------member data ---------------------------
56 
61 
62  // Switch for verbosity
64  bool doMVA;
65 
66  //histo binning parameters
67  int etaBin;
68  double etaMin;
69  double etaMax;
70 
71  int thetaBin;
72  double thetaMin;
73  double thetaMax;
74 
75  int phiBin;
76  double phiMin;
77  double phiMax;
78 
79  int chi2Bin;
80  double chi2Min;
81  double chi2Max;
82 
83  int pBin;
84  double pMin;
85  double pMax;
86 
87  int ptBin;
88  double ptMin;
89  double ptMax;
90 
91  int pResBin;
92  double pResMin;
93  double pResMax;
94 
95  int rhBin;
96  double rhMin;
97  double rhMax;
98 
99  int tunePBin;
100  double tunePMin;
101  double tunePMax;
102 
103  //the histos
105  // global muon
106  std::vector<MonitorElement*> etaGlbTrack;
107  std::vector<MonitorElement*> etaResolution;
108  std::vector<MonitorElement*> thetaGlbTrack;
109  std::vector<MonitorElement*> thetaResolution;
110  std::vector<MonitorElement*> phiGlbTrack;
111  std::vector<MonitorElement*> phiResolution;
112  std::vector<MonitorElement*> chi2OvDFGlbTrack;
113  std::vector<MonitorElement*> probchi2GlbTrack;
114  std::vector<MonitorElement*> pGlbTrack;
115  std::vector<MonitorElement*> ptGlbTrack;
116  std::vector<MonitorElement*> qGlbTrack;
117  std::vector<MonitorElement*> qOverpResolution;
118  std::vector<MonitorElement*> qOverptResolution;
119  std::vector<MonitorElement*> oneOverpResolution;
120  std::vector<MonitorElement*> oneOverptResolution;
121  std::vector<MonitorElement*> rhAnalysis;
122  std::vector<MonitorElement*> muVStkSytemRotation;
123  std::vector<MonitorElement*> phiVsetaGlbTrack;
124  std::vector<MonitorElement*> phiVsetaGlbTrack_badlumi;
125 
126  //Soft MVA Muon
157 
159 
167 
168  // tracker muon
177  // sta muon
186  // efficiency
187  std::vector<MonitorElement*> etaEfficiency;
188  std::vector<MonitorElement*> phiEfficiency;
189 
190  bool IsminiAOD;
192 };
193 #endif
MonitorElement * NTrkVHitsSoftMuonMVA
MonitorElement * muReco
std::vector< MonitorElement * > oneOverpResolution
MonitorElement * deltaRSoftMuonMVA
MonitorElement * trkRelChi2SoftMuonMVA
MonitorElement * qOverptPull
std::vector< MonitorElement * > ptGlbTrack
std::vector< MonitorElement * > chi2OvDFGlbTrack
std::vector< MonitorElement * > phiVsetaGlbTrack_badlumi
MonitorElement * gNchi2SoftMuonMVA
std::vector< MonitorElement * > phiVsetaGlbTrack
MonitorElement * getMuonHitsPerStationSoftMuonMVA
MonitorElement * segCompSoftMuonMVA
MonitorElement * iValFracSoftMuonMVA
MonitorElement * outerChi2SoftMuonMVA
MonitorElement * etaStaTrack
MonitorElement * vRPChitsSoftMuonMVA
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
MonitorElement * dzRefSoftMuonMVA
edm::EDGetTokenT< DcsStatusCollection > dcsStatusCollection_
std::vector< MonitorElement * > phiGlbTrack
MonitorElement * LWHSoftMuonMVA
MonitorElement * chi2OvDFStaTrack
MuonServiceProxy * theService
MonitorElement * vMuHitsSoftMuonMVA
MonitorElement * phiStaTrack
MonitorElement * vDThitsSoftMuonMVA
std::string theFolder
MonitorElement * qOverpPull
Definition: Electron.h:6
void analyze(const edm::Event &, const edm::EventSetup &) override
Inizialize parameters for histo binning.
std::vector< MonitorElement * > phiEfficiency
MonitorElement * mNuStationsSoftMuonMVA
MonitorElement * etaTrack
MonitorElement * innerChi2SoftMuonMVA
double getDeltaR(reco::Track track1, reco::Track track2)
MonitorElement * chi2OvDFTrack
std::vector< MonitorElement * > qOverptResolution
std::vector< MonitorElement * > etaGlbTrack
std::vector< MonitorElement * > pGlbTrack
std::vector< MonitorElement * > qOverpResolution
MonitorElement * timeAtIpInOutSoftMuonMVA
MonitorElement * oneOverpPull
std::string metname
MonitorElement * valPixHitsSoftMuonMVA
std::vector< MonitorElement * > qGlbTrack
MonitorElement * pTrack
MonitorElement * timeAtIpInOutErrSoftMuonMVA
std::vector< MonitorElement * > probchi2GlbTrack
std::vector< MonitorElement * > etaResolution
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotLabel_
MonitorElement * ptSoftMuonMVA
MonitorElement * oneOverptPull
MonitorElement * tunePResolution
MonitorElement * glbKinkFinderLogSoftMuonMVA
std::vector< MonitorElement * > etaEfficiency
MonitorElement * dxyRefSoftMuonMVA
void GetRes(reco::TrackRef t1, reco::TrackRef t2, std::string par, float &res, float &pull)
MonitorElement * staRelChi2SoftMuonMVA
MonitorElement * thetaStaTrack
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< edm::View< reco::Muon > > theMuonCollectionLabel_
std::vector< MonitorElement * > phiResolution
edm::ParameterSet parameters
MonitorElement * chi2LocMomSoftMuonMVA
std::vector< MonitorElement * > thetaGlbTrack
int getPv(int tidx, const reco::VertexCollection *vc)
MonitorElement * phiPull
MonitorElement * phiTrack
MonitorElement * vCSChitsSoftMuonMVA
std::vector< MonitorElement * > oneOverptResolution
MonitorElement * probchi2Track
std::vector< MonitorElement * > muVStkSytemRotation
MonitorElement * kinkFinderSoftMuonMVA
MonitorElement * ptTrack
MonitorElement * glbKinkFinderSoftMuonMVA
MonitorElement * chi2LocPosSoftMuonMVA
MonitorElement * glbDeltaEtaPhiSoftMuonMVA
MonitorElement * QprodSoftMuonMVA
MonitorElement * probchi2StaTrack
MonitorElement * ptStaTrack
std::vector< MonitorElement * > rhAnalysis
MonitorElement * etaPull
MonitorElement * pStaTrack
~MuonRecoAnalyzer() override
Destructor.
MonitorElement * thetaTrack
std::vector< MonitorElement * > thetaResolution
MonitorElement * glbTrackTailProbSoftMuonMVA
MonitorElement * qTrack
MonitorElement * thetaPull
Definition: Run.h:45
MonitorElement * qStaTrack
MuonRecoAnalyzer(const edm::ParameterSet &)
Constructor.
edm::EDGetTokenT< reco::VertexCollection > theVertexLabel_