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  private:
47  // ----------member data ---------------------------
48 
50  // Switch for verbosity
51  std::string metname;
52  // STA Label
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  //the histos
90  // global muon
91  std::vector<MonitorElement*> etaGlbTrack;
92  std::vector<MonitorElement*> etaResolution;
93  std::vector<MonitorElement*> thetaGlbTrack;
94  std::vector<MonitorElement*> thetaResolution;
95  std::vector<MonitorElement*> phiGlbTrack;
96  std::vector<MonitorElement*> phiResolution;
97  std::vector<MonitorElement*> chi2OvDFGlbTrack;
98  std::vector<MonitorElement*> probchi2GlbTrack;
99  std::vector<MonitorElement*> pGlbTrack;
100  std::vector<MonitorElement*> ptGlbTrack;
101  std::vector<MonitorElement*> qGlbTrack;
102  std::vector<MonitorElement*> qOverpResolution;
103  std::vector<MonitorElement*> qOverptResolution;
104  std::vector<MonitorElement*> oneOverpResolution;
105  std::vector<MonitorElement*> oneOverptResolution;
106  std::vector<MonitorElement*> rhAnalysis;
107  std::vector<MonitorElement*> muVStkSytemRotation;
108 
116 
117  // tracker muon
126  // sta muon
135  // efficiency
136  std::vector<MonitorElement*> etaEfficiency;
137  std::vector<MonitorElement*> phiEfficiency;
138 
139 };
140 #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
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
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