|
|
Go to the documentation of this file.
82 trackMinEnergy_(iConfig.getParameter<double>(
"trackMinimumEnergy")),
83 trackMinEta_(iConfig.getParameter<double>(
"trackMinimumEta")),
84 trackMaxEta_(iConfig.getParameter<double>(
"trackMaximumEta")) {
101 bool topo1Dis =
false;
102 bool topo2Dis =
false;
114 for (
const auto&
track : *RecTrackHandle) {
125 int numMTDBtlvalidhits = 0;
126 for (
const auto hit :
track.recHits()) {
127 if (
hit->isValid() ==
false)
130 if ((
Hit.det() == 6) && (
Hit.subdetId() == 1) && (
Hit.mtdSubDetector() == 1)) {
132 numMTDBtlvalidhits++;
138 if (MTDBtl ==
true) {
160 bool MTDEtlZnegD1 =
false;
161 bool MTDEtlZnegD2 =
false;
162 bool MTDEtlZposD1 =
false;
163 bool MTDEtlZposD2 =
false;
164 int numMTDEtlvalidhits = 0;
165 for (
const auto hit :
track.recHits()) {
166 if (
hit->isValid() ==
false)
169 if ((
Hit.det() == 6) && (
Hit.subdetId() == 1) && (
Hit.mtdSubDetector() == 2)) {
173 if ((ETLHit.
zside() == -1) && (ETLHit.
nDisc() == 1)) {
175 numMTDEtlvalidhits++;
177 if ((ETLHit.
zside() == -1) && (ETLHit.
nDisc() == 2)) {
179 numMTDEtlvalidhits++;
181 if ((ETLHit.
zside() == 1) && (ETLHit.
nDisc() == 1)) {
183 numMTDEtlvalidhits++;
185 if ((ETLHit.
zside() == 1) && (ETLHit.
nDisc() == 2)) {
187 numMTDEtlvalidhits++;
192 if (ETLHit.
zside() == -1) {
194 numMTDEtlvalidhits++;
196 if (ETLHit.
zside() == 1) {
198 numMTDEtlvalidhits++;
207 if (MTDEtlZnegD1 ==
true) {
213 if (MTDEtlZnegD2 ==
true) {
221 if (MTDEtlZposD1 ==
true) {
227 if (MTDEtlZposD2 ==
true) {
239 for (
const auto&
v : *RecVertexHandle) {
245 cout <<
"The vertex is not valid" << endl;
260 ibook.
book1D(
"TrackBTLEffPhiTot",
"Track efficiency vs phi (Tot);#phi_{RECO} [rad]", 100, -3.2, 3.2);
264 ibook.
book1D(
"TrackBTLEffPhiMtd",
"Track efficiency vs phi (Mtd);#phi_{RECO} [rad]", 100, -3.2, 3.2);
267 ibook.
book1D(
"TrackETLRPTimeZnegD1",
"Track t0 with respect to R.P. (-Z, Firstl Disk);t0 [ns]", 100, -1, 3);
269 ibook.
book1D(
"TrackETLRPTimeZnegD2",
"Track t0 with respect to R.P. (-Z, Second Disk);t0 [ns]", 100, -1, 3);
271 ibook.
book1D(
"TrackETLRPTimeZposD1",
"Track t0 with respect to R.P. (+Z, First Disk);t0 [ns]", 100, -1, 3);
273 ibook.
book1D(
"TrackETLRPTimeZposD2",
"Track t0 with respect to R.P. (+Z, Second Disk);t0 [ns]", 100, -1, 3);
275 ibook.
book1D(
"TrackETLEffEtaTotZneg",
"Track efficiency vs eta (Tot) (-Z);#eta_{RECO}", 100, -3.2, -1.4);
277 ibook.
book1D(
"TrackETLEffEtaTotZpos",
"Track efficiency vs eta (Tot) (+Z);#eta_{RECO}", 100, 1.4, 3.2);
279 ibook.
book1D(
"TrackETLEffPhiTotZneg",
"Track efficiency vs phi (Tot) (-Z);#phi_{RECO} [rad]", 100, -3.2, 3.2);
281 ibook.
book1D(
"TrackETLEffPhiTotZpos",
"Track efficiency vs phi (Tot) (+Z);#phi_{RECO} [rad]", 100, -3.2, 3.2);
283 ibook.
book1D(
"TrackETLEffPtTotZneg",
"Track efficiency vs pt (Tot) (-Z);pt_{RECO} [GeV]", 50, 0, 10);
285 ibook.
book1D(
"TrackETLEffPtTotZpos",
"Track efficiency vs pt (Tot) (+Z);pt_{RECO} [GeV]", 50, 0, 10);
287 ibook.
book1D(
"TrackETLEffEtaMtdZnegD1",
288 "Track efficiency vs eta (Mtd) (-Z, Single(topo1D)/First(topo2D) Disk);#eta_{RECO}",
293 "TrackETLEffEtaMtdZnegD2",
"Track efficiency vs eta (Mtd) (-Z, Second Disk);#eta_{RECO}", 100, -3.2, -1.4);
295 ibook.
book1D(
"TrackETLEffEtaMtdZposD1",
296 "Track efficiency vs eta (Mtd) (+Z, Single(topo1D)/First(topo2D) Disk);#eta_{RECO}",
301 "TrackETLEffEtaMtdZposD2",
"Track efficiency vs eta (Mtd) (+Z, Second Disk);#eta_{RECO}", 100, 1.4, 3.2);
303 ibook.
book1D(
"TrackETLEffPhiMtdZnegD1",
304 "Track efficiency vs phi (Mtd) (-Z, Single(topo1D)/First(topo2D) Disk);#phi_{RECO} [rad]",
309 "TrackETLEffPhiMtdZnegD2",
"Track efficiency vs phi (Mtd) (-Z, Second Disk);#phi_{RECO} [rad]", 100, -3.2, 3.2);
311 ibook.
book1D(
"TrackETLEffPhiMtdZposD1",
312 "Track efficiency vs phi (Mtd) (+Z, Single(topo1D)/First(topo2D) Disk);#phi_{RECO} [rad]",
317 "TrackETLEffPhiMtdZposD2",
"Track efficiency vs phi (Mtd) (+Z, Second Disk);#phi_{RECO} [rad]", 100, -3.2, 3.2);
319 ibook.
book1D(
"TrackETLEffPtMtdZnegD1",
320 "Track efficiency vs pt (Mtd) (-Z, Single(topo1D)/First(topo2D) Disk);pt_{RECO} [GeV]",
325 "TrackETLEffPtMtdZnegD2",
"Track efficiency vs pt (Mtd) (-Z, Second Disk);pt_{RECO} [GeV]", 50, 0, 10);
327 ibook.
book1D(
"TrackETLEffPtMtdZposD1",
328 "Track efficiency vs pt (Mtd) (+Z, Single(topo1D)/First(topo2D) Disk);pt_{RECO} [GeV]",
333 "TrackETLEffPtMtdZposD2",
"Track efficiency vs pt (Mtd) (+Z, Second Disk);pt_{RECO} [GeV]", 50, 0, 10);
334 meTrackNumHits_ = ibook.
book1D(
"TrackNumHits",
"Number of valid MTD hits per track ; Number of hits", 10, -5, 5);
335 meVerZ_ = ibook.
book1D(
"VerZ",
"RECO Vertex Z;Z_{RECO} [cm]", 180, -18, 18);
336 meVerTime_ = ibook.
book1D(
"VerTime",
"RECO Vertex Time;t0 [ns]", 100, -1, 1);
337 meVerNumber_ = ibook.
book1D(
"VerNumber",
"RECO Vertex Number: Number of vertices", 100, 0, 500);
348 desc.add<
double>(
"trackMinimumEnergy", 1.0);
349 desc.add<
double>(
"trackMinimumEta", 1.5);
350 desc.add<
double>(
"trackMaximumEta", 3.2);
352 descriptions.
add(
"globalReco",
desc);
T const * product() const
MonitorElement * meETLTrackNumHits_[4]
MonitorElement * meETLTrackRPTime_[4]
const float trackMinEnergy_
~MtdGlobalRecoValidation() override
MonitorElement * meBTLTrackEffEtaMtd_
edm::EDGetTokenT< std::vector< reco::Vertex > > RecVertexToken_
MonitorElement * meETLTrackEffEtaMtd_[4]
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * meBTLTrackEffPhiTot_
MonitorElement * meETLTrackEffEtaTot_[2]
MonitorElement * meTrackNumHits_
edm::EDGetTokenT< reco::TrackCollection > RecTrackToken_
Detector identifier class for the Endcap Timing Layer.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * meETLTrackEffPhiTot_[2]
MonitorElement * meETLTrackEffPtTot_[2]
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
MonitorElement * meETLTrackEffPtMtd_[4]
const CaloTopology * topology(nullptr)
MonitorElement * meBTLTrackEffEtaTot_
MonitorElement * meBTLTrackEffPtMtd_
MonitorElement * meBTLTrackRPTime_
auto makeValid(const U &iOtherHandleType) noexcept(false)
MonitorElement * meVerNumber_
MonitorElement * meETLTrackEffPhiMtd_[4]
MonitorElement * meBTLTrackEffPhiMtd_
Detector identifier base class for the MIP Timing Layer.
T getParameter(std::string const &) const
void analyze(const edm::Event &, const edm::EventSetup &) override
const std::string folder_
MonitorElement * meVerTime_
MtdGlobalRecoValidation(const edm::ParameterSet &)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * meBTLTrackEffPtTot_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)