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