252 edm::LogWarning(
"TrackingMonitor") <<
"Qualty Name is invalid, using no quality criterea by default";
261 int TKNoBin = conf->getParameter<
int>(
"TkSizeBin");
262 double TKNoMin = conf->getParameter<
double>(
"TkSizeMin");
263 double TKNoMax = conf->getParameter<
double>(
"TkSizeMax");
265 int TCNoBin = conf->getParameter<
int>(
"TCSizeBin");
266 double TCNoMin = conf->getParameter<
double>(
"TCSizeMin");
267 double TCNoMax = conf->getParameter<
double>(
"TCSizeMax");
269 int TKNoSeedBin = conf->getParameter<
int>(
"TkSeedSizeBin");
270 double TKNoSeedMin = conf->getParameter<
double>(
"TkSeedSizeMin");
271 double TKNoSeedMax = conf->getParameter<
double>(
"TkSeedSizeMax");
274 double RecHitMin = conf->getParameter<
double>(
"RecHitMin");
275 double RecHitMax = conf->getParameter<
double>(
"RecHitMax");
277 int MeanHitBin = conf->getParameter<
int>(
"MeanHitBin");
278 double MeanHitMin = conf->getParameter<
double>(
"MeanHitMin");
279 double MeanHitMax = conf->getParameter<
double>(
"MeanHitMax");
281 int MeanLayBin = conf->getParameter<
int>(
"MeanLayBin");
282 double MeanLayMin = conf->getParameter<
double>(
"MeanLayMin");
283 double MeanLayMax = conf->getParameter<
double>(
"MeanLayMax");
285 int LSBin = conf->getParameter<
int>(
"LSBin");
286 int LSMin = conf->getParameter<
double>(
"LSMin");
287 int LSMax = conf->getParameter<
double>(
"LSMax");
290 if (StateName !=
"OuterSurface" && StateName !=
"InnerSurface" && StateName !=
"ImpactPoint" &&
291 StateName !=
"default" && StateName !=
"All") {
293 edm::LogWarning(
"TrackingMonitor") <<
"State Name is invalid, using 'ImpactPoint' by default";
304 histname =
"NumberOfTracks_" + CategoryName;
310 if (Folder ==
"Tr") {
311 histname =
"NumberOfTracks_PUvtx_" + CategoryName;
316 histname =
"NumberofTracks_Hardvtx_" + CategoryName;
322 histname =
"NumberofTracks_Hardvtx_PUvtx_" + CategoryName;
330 histname =
"NumberOfMeanRecHitsPerTrack_" + CategoryName;
335 histname =
"NumberOfMeanLayersPerTrack_" + CategoryName;
341 histname =
"FractionOfGoodTracks_" + CategoryName;
353 histname =
"NumberOfTracks_lumiFlag_" + CategoryName;
365 histname =
"NumberOfTracksVsLS_" + CategoryName;
371 histname =
"NumberOfRecHitsPerTrackVsLS_" + CategoryName;
378 histname =
"NumberEventsVsLS_" + CategoryName;
386 double GoodPVtxMin = ParametersGoodPVtx.
getParameter<
double>(
"GoodPVtxMin");
387 double GoodPVtxMax = ParametersGoodPVtx.
getParameter<
double>(
"GoodPVtxMax");
389 histname =
"NumberOfGoodPVtxVsLS_" + CategoryName;
391 ibooker.
bookProfile(histname, histname, LSBin, LSMin, LSMax, GoodPVtxMin, 3. * GoodPVtxMax,
"");
396 histname =
"NumberOfGoodPVtxWO0VsLS_" + CategoryName;
398 ibooker.
bookProfile(histname, histname, LSBin, LSMin, LSMax, GoodPVtxMin, 3. * GoodPVtxMax,
"");
403 histname =
"GoodTracksFractionVsLS_" + CategoryName;
414 double BXMax = 3564.5;
416 histname =
"NumberEventsVsBX_" + CategoryName;
421 histname =
"NumberOfTracksVsBX_" + CategoryName;
426 histname =
"NumberOfRecHitsPerTrackVsBX_" + CategoryName;
428 ibooker.
bookProfile(histname, histname, BXBin, BXMin, BXMax, RecHitMin, RecHitMax * 5,
"");
432 histname =
"NumberOfGoodPVtxVsBX_" + CategoryName;
434 ibooker.
bookProfile(histname, histname, BXBin, BXMin, BXMax, GoodPVtxMin, 3. * GoodPVtxMax,
"");
438 histname =
"NumberOfGoodPVtxWO0VsBX_" + CategoryName;
440 ibooker.
bookProfile(histname, histname, BXBin, BXMin, BXMax, GoodPVtxMin, 3. * GoodPVtxMax,
"");
445 histname =
"GoodTracksFractionVsBX_" + CategoryName;
464 int PVBin = conf->getParameter<
int>(
"PVBin");
465 float PVMin = conf->getParameter<
double>(
"PVMin");
466 float PVMax = conf->getParameter<
double>(
"PVMax");
468 histname =
"NumberOfTracksVsGoodPVtx";
473 histname =
"NumberOfTracksVsPUPVtx";
478 histname =
"NumberEventsVsGoodPVtx";
484 histname =
"GoodTracksFractionVsGoodPVtx";
490 histname =
"NumberOfRecHitsPerTrackVsGoodPVtx";
495 histname =
"NumberOfPVtxVsGoodPVtx";
500 double NClusPxMin = conf->getParameter<
double>(
"NClusPxMin");
501 double NClusPxMax = conf->getParameter<
double>(
"NClusPxMax");
502 histname =
"NumberOfPixelClustersVsGoodPVtx";
504 ibooker.
bookProfile(histname, histname, PVBin, PVMin, PVMax, NClusPxMin, 3. * NClusPxMax,
"");
508 double NClusStrMin = conf->getParameter<
double>(
"NClusStrMin");
509 double NClusStrMax = conf->getParameter<
double>(
"NClusStrMax");
510 histname =
"NumberOfStripClustersVsGoodPVtx";
512 ibooker.
bookProfile(histname, histname, PVBin, PVMin, PVMax, NClusStrMin, 3. * NClusStrMax,
"");
519 int LUMIBin = conf->getParameter<
int>(
"LUMIBin");
520 float LUMIMin = conf->getParameter<
double>(
"LUMIMin");
521 float LUMIMax = conf->getParameter<
double>(
"LUMIMax");
523 histname =
"NumberEventsVsLUMI";
528 histname =
"NumberOfTracksVsLUMI";
534 histname =
"GoodTracksFractionVsLUMI";
540 histname =
"NumberOfRecHitsPerTrackVsLUMI";
542 ibooker.
bookProfile(histname, histname, LUMIBin, LUMIMin, LUMIMax, RecHitMin, RecHitMax * 5,
"");
546 double PVMin = conf->getParameter<
double>(
"PVMin");
547 double PVMax = conf->getParameter<
double>(
"PVMax");
549 histname =
"NumberOfGoodPVtxVsLUMI";
554 histname =
"NumberOfGoodPVtxWO0VsLUMI";
556 ibooker.
bookProfile(histname, histname, LUMIBin, LUMIMin, LUMIMax, PVMin, 3. * PVMax,
"");
560 double NClusPxMin = conf->getParameter<
double>(
"NClusPxMin");
561 double NClusPxMax = conf->getParameter<
double>(
"NClusPxMax");
562 histname =
"NumberOfPixelClustersVsGoodPVtx";
564 ibooker.
bookProfile(histname, histname, LUMIBin, LUMIMin, LUMIMax, NClusPxMin, 3. * NClusPxMax,
"");
568 double NClusStrMin = conf->getParameter<
double>(
"NClusStrMin");
569 double NClusStrMax = conf->getParameter<
double>(
"NClusStrMax");
570 histname =
"NumberOfStripClustersVsLUMI";
572 ibooker.
bookProfile(histname, histname, LUMIBin, LUMIMin, LUMIMax, NClusStrMin, 3. * NClusStrMax,
"");
581 int BXlumiBin = BXlumiParameters.
getParameter<
int>(
"BXlumiBin");
582 double BXlumiMin = BXlumiParameters.
getParameter<
double>(
"BXlumiMin");
583 double BXlumiMax = BXlumiParameters.
getParameter<
double>(
"BXlumiMax");
585 histname =
"NumberOfTracksVsBXlumi_" + CategoryName;
587 ibooker.
bookProfile(histname, histname, BXlumiBin, BXlumiMin, BXlumiMax, TKNoMin, 3. * TKNoMax,
"");
612 histname =
"NumberOfSeeds_" + seedProducer.label() +
"_" + CategoryName;
617 if (doSeedLumiAnalysis_) {
620 histname =
"NumberOfSeeds_lumiFlag_" + seedProducer.label() +
"_" + CategoryName;
630 ClusterLabels = conf->getParameter<std::vector<std::string> >(
"ClusterLabels");
632 std::vector<double> histoMin, histoMax;
633 std::vector<int> histoBin;
635 int NClusPxBin = conf->getParameter<
int>(
"NClusPxBin");
636 double NClusPxMin = conf->getParameter<
double>(
"NClusPxMin");
637 double NClusPxMax = conf->getParameter<
double>(
"NClusPxMax");
639 int NClusStrBin = conf->getParameter<
int>(
"NClusStrBin");
640 double NClusStrMin = conf->getParameter<
double>(
"NClusStrMin");
641 double NClusStrMax = conf->getParameter<
double>(
"NClusStrMax");
644 histoMin, histoMax, histoBin, NClusStrMin, NClusStrMax, NClusStrBin, NClusPxMin, NClusPxMax, NClusPxBin);
647 histname =
"SeedsVsClusters_" + seedProducer.label() +
"_Vs_" +
ClusterLabels[
i] +
"_" + CategoryName;
649 histname, histname, histoBin[
i], histoMin[i], histoMax[i], TKNoSeedBin, TKNoSeedMin, TKNoSeedMax)));
659 int regionBin = conf->getParameter<
int>(
"RegionSizeBin");
660 double regionMin = conf->getParameter<
double>(
"RegionSizeMin");
661 double regionMax = conf->getParameter<
double>(
"RegionSizeMax");
663 histname =
"TrackingRegionsNumberOf_" + seedProducer.label() +
"_" + CategoryName;
674 histname =
"NumberOfTrackCandidates_" + tcProducer.
label() +
"_" + CategoryName;
679 histname =
"FractionOfCandOverSeeds_" + tcProducer.
label() +
"_" + CategoryName;
688 ClusterLabels = conf->getParameter<std::vector<std::string> >(
"ClusterLabels");
690 std::vector<double> histoMin, histoMax;
691 std::vector<int> histoBin;
693 int NClusStrBin = conf->getParameter<
int>(
"NClusStrBin");
694 double NClusStrMin = conf->getParameter<
double>(
"NClusStrMin");
695 double NClusStrMax = conf->getParameter<
double>(
"NClusStrMax");
697 int NClusPxBin = conf->getParameter<
int>(
"NClusPxBin");
698 double NClusPxMin = conf->getParameter<
double>(
"NClusPxMin");
699 double NClusPxMax = conf->getParameter<
double>(
"NClusPxMax");
702 int NTrk2DBin = ParametersNTrk2D.
getParameter<
int>(
"NTrk2DBin");
703 double NTrk2DMin = ParametersNTrk2D.getParameter<
double>(
"NTrk2DMin");
704 double NTrk2DMax = ParametersNTrk2D.getParameter<
double>(
"NTrk2DMax");
707 histoMin, histoMax, histoBin, NClusStrMin, NClusStrMax, NClusStrBin, NClusPxMin, NClusPxMax, NClusPxBin);
713 histname =
"TracksVs" +
ClusterLabels[
i] +
"Cluster_" + CategoryName;
715 ibooker.
book2D(histname, histname, histoBin[i], histoMin[i], histoMax[i], NTrk2DBin, NTrk2DMin, NTrk2DMax)));
718 title =
"# of Clusters in (Pixel+Strip) Detectors";
std::vector< MonitorElement * > NumberOfTrkVsClusters
MonitorElement * FractionOfGoodTracks
virtual void setMaxMinBin(std::vector< double > &, std::vector< double > &, std::vector< int > &, double, double, int, double, double, int)
MonitorElement * NumberOfTracksVsBX
MonitorElement * NumberOfRecHitsPerTrackVsBX
MonitorElement * NumberOfRecHitsPerTrackVsLUMI
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * NumberEventsOfVsGoodPVtx
MonitorElement * FractionCandidatesOverSeeds
MonitorElement * GoodTracksFractionVsLUMI
MonitorElement * NumberOfPVtxVsGoodPVtx
MonitorElement * NumberOfMeanRecHitsPerTrack
MonitorElement * NumberOfTracksVsGoodPVtx
void initHisto(DQMStore::IBooker &ibooker, const edm::ParameterSet &)
void initHisto(DQMStore::IBooker &ibooker, const edm::EventSetup &, const edm::ParameterSet &)
MonitorElement * NumberOfStripClustersVsLUMI
MonitorElement * GoodTracksFractionVsLS
MonitorElement * NumberofTracks_Hardvtx_PUvtx
MonitorElement * NumberOfGoodPVtxWO0VsLUMI
MonitorElement * NumberOfSeeds
MonitorElement * NumberOfTrackingRegions
MonitorElement * NumberOfGoodPVtxVsLS
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
MonitorElement * NumberOfGoodPVtxVsLUMI
MonitorElement * NumberOfTracks_PUvtx
MonitorElement * NumberOfTracksVsLS
MonitorElement * NumberOfGoodPVtxWO0VsLS
bool getMapped(key_type const &k, value_type &result) const
MonitorElement * NumberOfTracksVsPUPVtx
UseScope< MonitorElementData::Scope::LUMI > UseLumiScope
MonitorElement * NumberEventsOfVsBX
MonitorElement * NumberOfStripClustersVsGoodPVtx
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * NumberOfPixelClustersVsGoodPVtx
MonitorElement * NumberOfRecHitsPerTrackVsLS
MonitorElement * GoodTracksFractionVsGoodPVtx
MonitorElement * NumberOfRecHitsPerTrackVsGoodPVtx
edm::ParameterSetID confID_
MonitorElement * NumberOfPixelClustersVsLUMI
std::vector< VertexMonitor * > theVertexMonitor
MonitorElement * NumberOfTracksVsBXlumi
bool doGeneralPropertiesPlots_
TrackBuildingAnalyzer * theTrackBuildingAnalyzer
MonitorElement * NumberOfMeanLayersPerTrack
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
T getParameter(std::string const &) const
tadqm::TrackAnalyzer * theTrackAnalyzer
GenericTriggerEventFlag * genTriggerEventFlag_
MonitorElement * GoodTracksFractionVsBX
MonitorElement * NumberOfSeeds_lumiFlag
MonitorElement * NumberofTracks_Hardvtx
MonitorElement * NumberOfTrackCandidates
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
Log< level::Warning, false > LogWarning
MonitorElement * NumberOfGoodPVtxVsBX
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * NumberEventsOfVsLUMI
std::vector< MonitorElement * > SeedsVsClusters
MonitorElement * NumberOfTracks_lumiFlag
MonitorElement * NumberOfTracks
static Registry * instance()
MonitorElement * NumberEventsOfVsLS
MonitorElement * NumberOfTracksVsLUMI
std::vector< std::string > ClusterLabels
MonitorElement * NumberOfGoodPVtxWO0VsBX
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)