CMS 3D CMS Logo

MuonKinVsEtaAnalyzer.h
Go to the documentation of this file.
1 #ifndef MuonKinVsEtaAnalyzer_H
2 #define MuonKinVsEtaAnalyzer_H
3 
11 #include <memory>
12 #include <fstream>
20 
32 
34 public:
37 
39  ~MuonKinVsEtaAnalyzer() override;
40 
41  void analyze(const edm::Event &, const edm::EventSetup &) override;
42  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
43 
44 private:
45  // ----------member data ---------------------------
48 
49  // Switch for verbosity
51 
52  //Vertex requirements
56 
57  //histo binning parameters
58  int pBin;
59  double pMin;
60  double pMax;
61 
62  int ptBin;
63  double ptMin;
64  double ptMax;
65 
66  int etaBin;
67  double etaMin;
68  double etaMax;
69 
70  int phiBin;
71  double phiMin;
72  double phiMax;
73 
74  int chiBin;
75  double chiMin;
76  double chiMax;
77 
78  double chiprobMin;
79  double chiprobMax;
80 
81  //Defining relevant eta regions
82  double EtaCutMin;
83  double EtaCutMax;
84  double etaBMin;
85  double etaBMax;
86  double etaECMin;
87  double etaECMax;
88  double etaOvlpMin;
89  double etaOvlpMax;
90 
91  //the histos
92  // global muon
93  std::vector<MonitorElement *> etaGlbTrack;
94  std::vector<MonitorElement *> phiGlbTrack;
95  std::vector<MonitorElement *> pGlbTrack;
96  std::vector<MonitorElement *> ptGlbTrack;
97  std::vector<MonitorElement *> chi2GlbTrack;
98  std::vector<MonitorElement *> chi2probGlbTrack;
99 
100  // tracker muon
101  std::vector<MonitorElement *> etaTrack;
102  std::vector<MonitorElement *> phiTrack;
103  std::vector<MonitorElement *> pTrack;
104  std::vector<MonitorElement *> ptTrack;
105  std::vector<MonitorElement *> chi2Track;
106  std::vector<MonitorElement *> chi2probTrack;
107 
108  // sta muon
109  std::vector<MonitorElement *> etaStaTrack;
110  std::vector<MonitorElement *> phiStaTrack;
111  std::vector<MonitorElement *> pStaTrack;
112  std::vector<MonitorElement *> ptStaTrack;
113  std::vector<MonitorElement *> chi2StaTrack;
114  std::vector<MonitorElement *> chi2probStaTrack;
115 
116  // GMPT muon
117  std::vector<MonitorElement *> etaTightTrack;
118  std::vector<MonitorElement *> phiTightTrack;
119  std::vector<MonitorElement *> pTightTrack;
120  std::vector<MonitorElement *> ptTightTrack;
121  std::vector<MonitorElement *> chi2TightTrack;
122  std::vector<MonitorElement *> chi2probTightTrack;
123 
124  // Loose muon;
125  std::vector<MonitorElement *> etaLooseTrack;
126  std::vector<MonitorElement *> phiLooseTrack;
127  std::vector<MonitorElement *> pLooseTrack;
128  std::vector<MonitorElement *> ptLooseTrack;
129  std::vector<MonitorElement *> chi2LooseTrack;
130  std::vector<MonitorElement *> chi2probLooseTrack;
131 
132  // Medium muon;
133  std::vector<MonitorElement *> etaMediumTrack;
134  std::vector<MonitorElement *> phiMediumTrack;
135  std::vector<MonitorElement *> pMediumTrack;
136  std::vector<MonitorElement *> ptMediumTrack;
137  std::vector<MonitorElement *> chi2MediumTrack;
138  std::vector<MonitorElement *> chi2probMediumTrack;
139 
140  // Soft muon;
141  std::vector<MonitorElement *> etaSoftTrack;
142  std::vector<MonitorElement *> phiSoftTrack;
143  std::vector<MonitorElement *> pSoftTrack;
144  std::vector<MonitorElement *> ptSoftTrack;
145  std::vector<MonitorElement *> chi2SoftTrack;
146  std::vector<MonitorElement *> chi2probSoftTrack;
147 
148  // HighPt muon;
149  std::vector<MonitorElement *> etaHighPtTrack;
150  std::vector<MonitorElement *> phiHighPtTrack;
151  std::vector<MonitorElement *> pHighPtTrack;
152  std::vector<MonitorElement *> ptHighPtTrack;
153  std::vector<MonitorElement *> chi2HighPtTrack;
154  std::vector<MonitorElement *> chi2probHighPtTrack;
155 
157 };
158 #endif
std::vector< MonitorElement * > pGlbTrack
MuonServiceProxy * theService
std::vector< MonitorElement * > phiHighPtTrack
std::vector< MonitorElement * > chi2GlbTrack
std::vector< MonitorElement * > phiSoftTrack
std::vector< MonitorElement * > ptTrack
edm::EDGetTokenT< edm::View< reco::Muon > > theMuonCollectionLabel_
std::vector< MonitorElement * > ptTightTrack
edm::EDGetTokenT< reco::VertexCollection > theVertexLabel_
std::vector< MonitorElement * > phiMediumTrack
std::vector< MonitorElement * > chi2TightTrack
std::vector< MonitorElement * > ptSoftTrack
std::vector< MonitorElement * > etaMediumTrack
std::vector< MonitorElement * > chi2probGlbTrack
std::vector< MonitorElement * > chi2HighPtTrack
std::vector< MonitorElement * > etaLooseTrack
std::vector< MonitorElement * > etaHighPtTrack
std::vector< MonitorElement * > chi2probLooseTrack
std::vector< MonitorElement * > chi2probTrack
std::vector< MonitorElement * > pLooseTrack
std::vector< MonitorElement * > chi2probStaTrack
std::vector< MonitorElement * > phiLooseTrack
std::vector< MonitorElement * > chi2probTightTrack
std::vector< MonitorElement * > ptGlbTrack
std::vector< MonitorElement * > ptHighPtTrack
std::vector< MonitorElement * > etaTrack
std::vector< MonitorElement * > pSoftTrack
std::vector< MonitorElement * > etaTightTrack
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< MonitorElement * > pHighPtTrack
std::vector< MonitorElement * > pTightTrack
std::vector< MonitorElement * > ptStaTrack
std::vector< MonitorElement * > phiTightTrack
std::vector< MonitorElement * > etaGlbTrack
edm::ParameterSet parameters
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< MonitorElement * > ptLooseTrack
std::vector< MonitorElement * > etaStaTrack
std::vector< MonitorElement * > chi2SoftTrack
std::vector< MonitorElement * > chi2probHighPtTrack
std::vector< MonitorElement * > pMediumTrack
std::vector< MonitorElement * > chi2MediumTrack
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotLabel_
std::vector< MonitorElement * > chi2probSoftTrack
std::vector< MonitorElement * > phiTrack
std::vector< MonitorElement * > phiStaTrack
~MuonKinVsEtaAnalyzer() override
Destructor.
std::vector< MonitorElement * > ptMediumTrack
std::vector< MonitorElement * > pTrack
std::vector< MonitorElement * > chi2LooseTrack
std::vector< MonitorElement * > phiGlbTrack
std::vector< MonitorElement * > chi2probMediumTrack
std::vector< MonitorElement * > chi2Track
std::vector< MonitorElement * > chi2StaTrack
MuonKinVsEtaAnalyzer(const edm::ParameterSet &pSet)
Constructor.
Definition: Run.h:45
std::vector< MonitorElement * > pStaTrack
std::vector< MonitorElement * > etaSoftTrack