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