test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
23 
25 
28 
30  public:
31 
34 
36  virtual ~MuonRecoAnalyzer();
37 
39  void analyze(const edm::Event&, const edm::EventSetup&);
40  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
41 
42  //calculate residual & pull:
43  void GetRes( reco::TrackRef t1, reco::TrackRef t2, std::string par, float &res, float &pull);
44 
45  private:
46  // ----------member data ---------------------------
49 
51  // Switch for verbosity
53 
54 
55  //histo binning parameters
56  int etaBin;
57  double etaMin;
58  double etaMax;
59 
60  int thetaBin;
61  double thetaMin;
62  double thetaMax;
63 
64  int phiBin;
65  double phiMin;
66  double phiMax;
67 
68  int chi2Bin;
69  double chi2Min;
70  double chi2Max;
71 
72  int pBin;
73  double pMin;
74  double pMax;
75 
76  int ptBin;
77  double ptMin;
78  double ptMax;
79 
80  int pResBin;
81  double pResMin;
82  double pResMax;
83 
84  int rhBin;
85  double rhMin;
86  double rhMax;
87 
88  int tunePBin;
89  double tunePMin;
90  double tunePMax;
91 
92  //the histos
94  // global muon
95  std::vector<MonitorElement*> etaGlbTrack;
96  std::vector<MonitorElement*> etaResolution;
97  std::vector<MonitorElement*> thetaGlbTrack;
98  std::vector<MonitorElement*> thetaResolution;
99  std::vector<MonitorElement*> phiGlbTrack;
100  std::vector<MonitorElement*> phiResolution;
101  std::vector<MonitorElement*> chi2OvDFGlbTrack;
102  std::vector<MonitorElement*> probchi2GlbTrack;
103  std::vector<MonitorElement*> pGlbTrack;
104  std::vector<MonitorElement*> ptGlbTrack;
105  std::vector<MonitorElement*> qGlbTrack;
106  std::vector<MonitorElement*> qOverpResolution;
107  std::vector<MonitorElement*> qOverptResolution;
108  std::vector<MonitorElement*> oneOverpResolution;
109  std::vector<MonitorElement*> oneOverptResolution;
110  std::vector<MonitorElement*> rhAnalysis;
111  std::vector<MonitorElement*> muVStkSytemRotation;
112  std::vector<MonitorElement*> phiVsetaGlbTrack;
113 
114 
116 
124 
125  // tracker muon
134  // sta muon
143  // efficiency
144  std::vector<MonitorElement*> etaEfficiency;
145  std::vector<MonitorElement*> phiEfficiency;
146 
147 };
148 #endif
virtual ~MuonRecoAnalyzer()
Destructor.
MonitorElement * muReco
std::vector< MonitorElement * > oneOverpResolution
MonitorElement * qOverptPull
std::vector< MonitorElement * > ptGlbTrack
std::vector< MonitorElement * > chi2OvDFGlbTrack
std::vector< MonitorElement * > phiVsetaGlbTrack
MonitorElement * etaStaTrack
std::vector< MonitorElement * > phiGlbTrack
MonitorElement * chi2OvDFStaTrack
MuonServiceProxy * theService
MonitorElement * phiStaTrack
MonitorElement * qOverpPull
void analyze(const edm::Event &, const edm::EventSetup &)
Inizialize parameters for histo binning.
std::vector< MonitorElement * > phiEfficiency
MonitorElement * etaTrack
MonitorElement * chi2OvDFTrack
std::vector< MonitorElement * > qOverptResolution
std::vector< MonitorElement * > etaGlbTrack
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16
std::vector< MonitorElement * > pGlbTrack
std::vector< MonitorElement * > qOverpResolution
MonitorElement * oneOverpPull
std::string metname
std::vector< MonitorElement * > qGlbTrack
MonitorElement * pTrack
std::vector< MonitorElement * > probchi2GlbTrack
std::vector< MonitorElement * > etaResolution
MonitorElement * oneOverptPull
MonitorElement * tunePResolution
std::vector< MonitorElement * > etaEfficiency
void GetRes(reco::TrackRef t1, reco::TrackRef t2, std::string par, float &res, float &pull)
MonitorElement * thetaStaTrack
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< MonitorElement * > phiResolution
edm::ParameterSet parameters
std::vector< MonitorElement * > thetaGlbTrack
MonitorElement * phiPull
MonitorElement * phiTrack
std::vector< MonitorElement * > oneOverptResolution
MonitorElement * probchi2Track
std::vector< MonitorElement * > muVStkSytemRotation
MonitorElement * ptTrack
MonitorElement * probchi2StaTrack
MonitorElement * ptStaTrack
std::vector< MonitorElement * > rhAnalysis
MonitorElement * etaPull
MonitorElement * pStaTrack
MonitorElement * thetaTrack
std::vector< MonitorElement * > thetaResolution
MonitorElement * qTrack
MonitorElement * thetaPull
Definition: Run.h:43
edm::EDGetTokenT< reco::MuonCollection > theMuonCollectionLabel_
MonitorElement * qStaTrack
MuonRecoAnalyzer(const edm::ParameterSet &)
Constructor.