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>
20 
23 
25 
28 
30  public:
31 
34 
36  virtual ~MuonRecoAnalyzer();
37 
39  void beginJob();
40  void beginRun(const edm::Run& iRun, const edm::EventSetup& iSetup);
41 
43  void analyze(const edm::Event&, const edm::EventSetup&);
44 
45  //calculate residual & pull:
46  void GetRes( reco::TrackRef t1, reco::TrackRef t2, std::string par, float &res, float &pull);
47 
48  private:
49  // ----------member data ---------------------------
53 
55  // Switch for verbosity
57 
58 
59  //histo binning parameters
60  int etaBin;
61  double etaMin;
62  double etaMax;
63 
64  int thetaBin;
65  double thetaMin;
66  double thetaMax;
67 
68  int phiBin;
69  double phiMin;
70  double phiMax;
71 
72  int chi2Bin;
73  double chi2Min;
74  double chi2Max;
75 
76  int pBin;
77  double pMin;
78  double pMax;
79 
80  int ptBin;
81  double ptMin;
82  double ptMax;
83 
84  int pResBin;
85  double pResMin;
86  double pResMax;
87 
88  int rhBin;
89  double rhMin;
90  double rhMax;
91 
92  int tunePBin;
93  double tunePMin;
94  double tunePMax;
95 
96  //the histos
98  // global muon
99  std::vector<MonitorElement*> etaGlbTrack;
100  std::vector<MonitorElement*> etaResolution;
101  std::vector<MonitorElement*> thetaGlbTrack;
102  std::vector<MonitorElement*> thetaResolution;
103  std::vector<MonitorElement*> phiGlbTrack;
104  std::vector<MonitorElement*> phiResolution;
105  std::vector<MonitorElement*> chi2OvDFGlbTrack;
106  std::vector<MonitorElement*> probchi2GlbTrack;
107  std::vector<MonitorElement*> pGlbTrack;
108  std::vector<MonitorElement*> ptGlbTrack;
109  std::vector<MonitorElement*> qGlbTrack;
110  std::vector<MonitorElement*> qOverpResolution;
111  std::vector<MonitorElement*> qOverptResolution;
112  std::vector<MonitorElement*> oneOverpResolution;
113  std::vector<MonitorElement*> oneOverptResolution;
114  std::vector<MonitorElement*> rhAnalysis;
115  std::vector<MonitorElement*> muVStkSytemRotation;
116 
117 
119 
127 
128  // tracker muon
137  // sta muon
146  // efficiency
147  std::vector<MonitorElement*> etaEfficiency;
148  std::vector<MonitorElement*> phiEfficiency;
149 
150 };
151 #endif
virtual ~MuonRecoAnalyzer()
Destructor.
MonitorElement * muReco
std::vector< MonitorElement * > oneOverpResolution
MonitorElement * qOverptPull
std::vector< MonitorElement * > ptGlbTrack
std::vector< MonitorElement * > chi2OvDFGlbTrack
MonitorElement * etaStaTrack
std::vector< MonitorElement * > phiGlbTrack
MonitorElement * chi2OvDFStaTrack
MuonServiceProxy * theService
MonitorElement * phiStaTrack
MonitorElement * qOverpPull
void analyze(const edm::Event &, const edm::EventSetup &)
Get the analysis.
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
void beginRun(const edm::Run &iRun, const edm::EventSetup &iSetup)
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
void beginJob()
Inizialize parameters for histo binning.
MonitorElement * qTrack
MonitorElement * thetaPull
Definition: Run.h:41
edm::EDGetTokenT< reco::MuonCollection > theMuonCollectionLabel_
MonitorElement * qStaTrack
MuonRecoAnalyzer(const edm::ParameterSet &)
Constructor.