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 
4 
15 #include <memory>
16 #include <fstream>
26 
27 
29  public:
30 
33 
35  virtual ~MuonRecoAnalyzer();
36 
38  void beginJob(DQMStore *dbe);
39 
41  void analyze(const edm::Event&, const edm::EventSetup&, const reco::Muon& recoMu);
42 
43  //calculate residual & pull:
44  void GetRes( reco::TrackRef t1, reco::TrackRef t2, std::string par, float &res, float &pull);
45 
46 
47 
48 
49  private:
50  // ----------member data ---------------------------
51 
53  // Switch for verbosity
55  // STA Label
57 
58  //histo binning parameters
59  int etaBin;
60  double etaMin;
61  double etaMax;
62 
63  int thetaBin;
64  double thetaMin;
65  double thetaMax;
66 
67  int phiBin;
68  double phiMin;
69  double phiMax;
70 
71  int chi2Bin;
72  double chi2Min;
73  double chi2Max;
74 
75  int pBin;
76  double pMin;
77  double pMax;
78 
79  int ptBin;
80  double ptMin;
81  double ptMax;
82 
83  int pResBin;
84  double pResMin;
85  double pResMax;
86 
87  int rhBin;
88  double rhMin;
89  double rhMax;
90 
91  int tunePBin;
92  double tunePMin;
93  double tunePMax;
94 
95  //the histos
97  // global muon
98  std::vector<MonitorElement*> etaGlbTrack;
99  std::vector<MonitorElement*> etaResolution;
100  std::vector<MonitorElement*> thetaGlbTrack;
101  std::vector<MonitorElement*> thetaResolution;
102  std::vector<MonitorElement*> phiGlbTrack;
103  std::vector<MonitorElement*> phiResolution;
104  std::vector<MonitorElement*> chi2OvDFGlbTrack;
105  std::vector<MonitorElement*> probchi2GlbTrack;
106  std::vector<MonitorElement*> pGlbTrack;
107  std::vector<MonitorElement*> ptGlbTrack;
108  std::vector<MonitorElement*> qGlbTrack;
109  std::vector<MonitorElement*> qOverpResolution;
110  std::vector<MonitorElement*> qOverptResolution;
111  std::vector<MonitorElement*> oneOverpResolution;
112  std::vector<MonitorElement*> oneOverptResolution;
113  std::vector<MonitorElement*> rhAnalysis;
114  std::vector<MonitorElement*> muVStkSytemRotation;
115 
116 
118 
126 
127  // tracker muon
136  // sta muon
145  // efficiency
146  std::vector<MonitorElement*> etaEfficiency;
147  std::vector<MonitorElement*> phiEfficiency;
148 
149 };
150 #endif
virtual ~MuonRecoAnalyzer()
Destructor.
MonitorElement * muReco
std::vector< MonitorElement * > oneOverpResolution
MonitorElement * qOverptPull
std::vector< MonitorElement * > ptGlbTrack
std::vector< MonitorElement * > chi2OvDFGlbTrack
MuonServiceProxy * theService
void analyze(const edm::Event &, const edm::EventSetup &, const reco::Muon &recoMu)
Get the analysis.
MonitorElement * etaStaTrack
std::vector< MonitorElement * > phiGlbTrack
void beginJob(DQMStore *dbe)
Inizialize parameters for histo binning.
MonitorElement * chi2OvDFStaTrack
MonitorElement * phiStaTrack
MonitorElement * qOverpPull
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:18
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
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
MuonRecoAnalyzer(const edm::ParameterSet &, MuonServiceProxy *theService)
Constructor.
MonitorElement * probchi2StaTrack
edm::InputTag theSTACollectionLabel
MonitorElement * ptStaTrack
std::vector< MonitorElement * > rhAnalysis
MonitorElement * etaPull
MonitorElement * pStaTrack
MonitorElement * thetaTrack
std::vector< MonitorElement * > thetaResolution
MonitorElement * qTrack
MonitorElement * thetaPull
MonitorElement * qStaTrack