226 assert(conf !=
nullptr);
234 edm::LogWarning(
"TrackingMonitor") <<
"Qualty Name is invalid, using no quality criterea by default";
243 int TKNoBin = conf->getParameter<
int>(
"TkSizeBin");
244 double TKNoMin = conf->getParameter<
double>(
"TkSizeMin");
245 double TKNoMax = conf->getParameter<
double>(
"TkSizeMax");
247 int TCNoBin = conf->getParameter<
int>(
"TCSizeBin");
248 double TCNoMin = conf->getParameter<
double>(
"TCSizeMin");
249 double TCNoMax = conf->getParameter<
double>(
"TCSizeMax");
251 int TKNoSeedBin = conf->getParameter<
int>(
"TkSeedSizeBin");
252 double TKNoSeedMin = conf->getParameter<
double>(
"TkSeedSizeMin");
253 double TKNoSeedMax = conf->getParameter<
double>(
"TkSeedSizeMax");
255 int MeanHitBin = conf->getParameter<
int>(
"MeanHitBin");
256 double MeanHitMin = conf->getParameter<
double>(
"MeanHitMin");
257 double MeanHitMax = conf->getParameter<
double>(
"MeanHitMax");
259 int MeanLayBin = conf->getParameter<
int>(
"MeanLayBin");
260 double MeanLayMin = conf->getParameter<
double>(
"MeanLayMin");
261 double MeanLayMax = conf->getParameter<
double>(
"MeanLayMax");
263 int LSBin = conf->getParameter<
int>(
"LSBin");
264 int LSMin = conf->getParameter<
double>(
"LSMin");
265 int LSMax = conf->getParameter<
double>(
"LSMax");
269 StateName !=
"OuterSurface" &&
270 StateName !=
"InnerSurface" &&
271 StateName !=
"ImpactPoint" &&
272 StateName !=
"default" &&
276 edm::LogWarning(
"TrackingMonitor") <<
"State Name is invalid, using 'ImpactPoint' by default";
288 histname =
"NumberOfTracks_" + CategoryName;
294 histname =
"NumberOfMeanRecHitsPerTrack_" + CategoryName;
299 histname =
"NumberOfMeanLayersPerTrack_" + CategoryName;
305 histname =
"FractionOfGoodTracks_" + CategoryName;
316 histname =
"NumberOfTracks_lumiFlag_" + CategoryName;
331 histname =
"NumberOfTracksVsLS_"+ CategoryName;
337 histname =
"NumberOfRecHitsPerTrackVsLS_" + CategoryName;
343 histname =
"NumberEventsVsLS_" + CategoryName;
349 double GoodPVtxMin = conf->getParameter<
double>(
"GoodPVtxMin");
350 double GoodPVtxMax = conf->getParameter<
double>(
"GoodPVtxMax");
352 histname =
"NumberOfGoodPVtxVsLS_" + CategoryName;
358 histname =
"NumberOfGoodPVtxWO0VsLS_" + CategoryName;
364 histname =
"GoodTracksFractionVsLS_"+ CategoryName;
373 int BXBin = 3564;
double BXMin = 0.5;
double BXMax = 3564.5;
375 histname =
"NumberEventsVsBX_" + CategoryName;
380 histname =
"NumberOfTracksVsBX_"+ CategoryName;
385 histname =
"NumberOfRecHitsPerTrackVsBX_" + CategoryName;
390 histname =
"NumberOfGoodPVtxVsBX_" + CategoryName;
395 histname =
"NumberOfGoodPVtxWO0VsBX_" + CategoryName;
401 histname =
"GoodTracksFractionVsBX_"+ CategoryName;
422 int PVBin = conf->getParameter<
int> (
"PVBin");
423 float PVMin = conf->getParameter<
double>(
"PVMin");
424 float PVMax = conf->getParameter<
double>(
"PVMax");
426 histname =
"NumberOfTracksVsGoodPVtx";
431 histname =
"NumberOfTracksVsPUPVtx";
436 histname =
"NumberEventsVsGoodPVtx";
442 histname =
"GoodTracksFractionVsGoodPVtx";
448 histname =
"NumberOfRecHitsPerTrackVsGoodPVtx";
453 histname =
"NumberOfPVtxVsGoodPVtx";
458 double NClusPxMin = conf->getParameter<
double>(
"NClusPxMin");
459 double NClusPxMax = conf->getParameter<
double>(
"NClusPxMax");
460 histname =
"NumberOfPixelClustersVsGoodPVtx";
465 double NClusStrMin = conf->getParameter<
double>(
"NClusStrMin");
466 double NClusStrMax = conf->getParameter<
double>(
"NClusStrMax");
467 histname =
"NumberOfStripClustersVsGoodPVtx";
477 int LUMIBin = conf->getParameter<
int>(
"LUMIBin");
478 float LUMIMin = conf->getParameter<
double>(
"LUMIMin");
479 float LUMIMax = conf->getParameter<
double>(
"LUMIMax");
481 histname =
"NumberEventsVsLUMI";
486 histname =
"NumberOfTracksVsLUMI";
492 histname =
"GoodTracksFractionVsLUMI";
498 histname =
"NumberOfRecHitsPerTrackVsLUMI";
503 double PVMin = conf->getParameter<
double>(
"PVMin");
504 double PVMax = conf->getParameter<
double>(
"PVMax");
506 histname =
"NumberOfGoodPVtxVsLUMI";
511 histname =
"NumberOfGoodPVtxWO0VsLUMI";
516 double NClusPxMin = conf->getParameter<
double>(
"NClusPxMin");
517 double NClusPxMax = conf->getParameter<
double>(
"NClusPxMax");
518 histname =
"NumberOfPixelClustersVsGoodPVtx";
523 double NClusStrMin = conf->getParameter<
double>(
"NClusStrMin");
524 double NClusStrMax = conf->getParameter<
double>(
"NClusStrMax");
525 histname =
"NumberOfStripClustersVsLUMI";
537 int BXlumiBin = BXlumiParameters.
getParameter<
int>(
"BXlumiBin");
538 double BXlumiMin = BXlumiParameters.
getParameter<
double>(
"BXlumiMin");
539 double BXlumiMax = BXlumiParameters.
getParameter<
double>(
"BXlumiMax");
541 histname =
"NumberOfTracksVsBXlumi_"+ CategoryName;
556 doAllSeedPlots = conf->getParameter<
bool>(
"doSeedParameterHistos");
562 runTrackBuildingAnalyzerForSeed=(
doAllSeedPlots || conf->getParameter<
bool>(
"doSeedPTHisto") ||conf->getParameter<
bool>(
"doSeedETAHisto") || conf->getParameter<
bool>(
"doSeedPHIHisto") || conf->getParameter<
bool>(
"doSeedPHIVsETAHisto") || conf->getParameter<
bool>(
"doSeedThetaHisto") || conf->getParameter<
bool>(
"doSeedQHisto") || conf->getParameter<
bool>(
"doSeedDxyHisto") || conf->getParameter<
bool>(
"doSeedDzHisto") || conf->getParameter<
bool>(
"doSeedNRecHitsHisto") || conf->getParameter<
bool>(
"doSeedNVsPhiProf")|| conf->getParameter<
bool>(
"doSeedNVsEtaProf"));
568 histname =
"NumberOfSeeds_"+ seedProducer.
label() +
"_"+ CategoryName;
573 if ( doSeedLumiAnalysis_ ) {
575 histname =
"NumberOfSeeds_lumiFlag_"+ seedProducer.
label() +
"_"+ CategoryName;
586 ClusterLabels= conf->getParameter<std::vector<std::string> >(
"ClusterLabels");
588 std::vector<double> histoMin,histoMax;
589 std::vector<int> histoBin;
591 int NClusPxBin = conf->getParameter<
int>(
"NClusPxBin");
592 double NClusPxMin = conf->getParameter<
double>(
"NClusPxMin");
593 double NClusPxMax = conf->getParameter<
double>(
"NClusPxMax");
595 int NClusStrBin = conf->getParameter<
int>(
"NClusStrBin");
596 double NClusStrMin = conf->getParameter<
double>(
"NClusStrMin");
597 double NClusStrMax = conf->getParameter<
double>(
"NClusStrMax");
599 setMaxMinBin(histoMin,histoMax,histoBin,NClusStrMin,NClusStrMax,NClusStrBin,NClusPxMin,NClusPxMax,NClusPxBin);
602 histname =
"SeedsVsClusters_" + seedProducer.
label() +
"_Vs_" +
ClusterLabels[
i] +
"_" + CategoryName;
603 SeedsVsClusters.push_back(dynamic_cast<MonitorElement*>(ibooker.
book2D(histname, histname, histoBin[
i], histoMin[i], histoMax[i],
604 TKNoSeedBin, TKNoSeedMin, TKNoSeedMax)));
614 int regionBin = conf->getParameter<
int>(
"RegionSizeBin");
615 double regionMin = conf->getParameter<
double>(
"RegionSizeMin");
616 double regionMax = conf->getParameter<
double>(
"RegionSizeMax");
618 histname =
"TrackingRegionsNumberOf_"+ seedProducer.
label() +
"_"+ CategoryName;
632 histname =
"NumberOfTrackCandidates_"+ tcProducer.
label() +
"_"+ CategoryName;
637 histname =
"FractionOfCandOverSeeds_"+ tcProducer.
label() +
"_"+ CategoryName;
653 if ( doSeedLumiAnalysis_ )
659 ClusterLabels= conf->getParameter<std::vector<std::string> >(
"ClusterLabels");
661 std::vector<double> histoMin,histoMax;
662 std::vector<int> histoBin;
664 int NClusStrBin = conf->getParameter<
int>(
"NClusStrBin");
665 double NClusStrMin = conf->getParameter<
double>(
"NClusStrMin");
666 double NClusStrMax = conf->getParameter<
double>(
"NClusStrMax");
668 int NClusPxBin = conf->getParameter<
int>(
"NClusPxBin");
669 double NClusPxMin = conf->getParameter<
double>(
"NClusPxMin");
670 double NClusPxMax = conf->getParameter<
double>(
"NClusPxMax");
672 int NTrk2DBin = conf->getParameter<
int>(
"NTrk2DBin");
673 double NTrk2DMin = conf->getParameter<
double>(
"NTrk2DMin");
674 double NTrk2DMax = conf->getParameter<
double>(
"NTrk2DMax");
677 NClusStrMin,NClusStrMax,NClusStrBin,
678 NClusPxMin, NClusPxMax, NClusPxBin);
685 histname =
"TracksVs" +
ClusterLabels[
i] +
"Cluster_" + CategoryName;
687 histoBin[i], histoMin[i], histoMax[i],
688 NTrk2DBin,NTrk2DMin,NTrk2DMax
692 title =
"# of Clusters in (Pixel+Strip) Detectors";
T getParameter(std::string const &) const
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
MonitorElement * bookProfile(Args &&...args)
MonitorElement * NumberEventsOfVsGoodPVtx
void initHisto(DQMStore::IBooker &ibooker, const edm::EventSetup &, const edm::ParameterSet &)
MonitorElement * FractionCandidatesOverSeeds
MonitorElement * GoodTracksFractionVsLUMI
MonitorElement * NumberOfPVtxVsGoodPVtx
MonitorElement * NumberOfMeanRecHitsPerTrack
MonitorElement * NumberOfTracksVsGoodPVtx
void initHisto(DQMStore::IBooker &ibooker, const edm::ParameterSet &)
MonitorElement * NumberOfStripClustersVsLUMI
MonitorElement * GoodTracksFractionVsLS
MonitorElement * NumberOfGoodPVtxWO0VsLUMI
MonitorElement * NumberOfSeeds
MonitorElement * NumberOfTrackingRegions
void setLumiFlag()
this ME is meant to be stored for each luminosity section
void setCurrentFolder(std::string const &fullpath)
MonitorElement * NumberOfGoodPVtxVsLS
MonitorElement * NumberOfGoodPVtxVsLUMI
MonitorElement * book1D(Args &&...args)
MonitorElement * NumberOfTracksVsLS
MonitorElement * NumberOfGoodPVtxWO0VsLS
bool getMapped(key_type const &k, value_type &result) const
MonitorElement * NumberOfTracksVsPUPVtx
MonitorElement * NumberEventsOfVsBX
bool runTrackBuildingAnalyzerForSeed
MonitorElement * NumberOfStripClustersVsGoodPVtx
std::vector< MonitorElement * > SeedsVsClusters
MonitorElement * NumberOfPixelClustersVsGoodPVtx
dqm::TrackAnalyzer * theTrackAnalyzer
MonitorElement * NumberOfRecHitsPerTrackVsLS
MonitorElement * GoodTracksFractionVsGoodPVtx
MonitorElement * NumberOfRecHitsPerTrackVsGoodPVtx
edm::ParameterSetID confID_
MonitorElement * NumberOfPixelClustersVsLUMI
std::vector< VertexMonitor * > theVertexMonitor
MonitorElement * NumberOfTracksVsBXlumi
bool doGeneralPropertiesPlots_
TrackBuildingAnalyzer * theTrackBuildingAnalyzer
MonitorElement * book2D(Args &&...args)
MonitorElement * NumberOfMeanLayersPerTrack
GenericTriggerEventFlag * genTriggerEventFlag_
MonitorElement * GoodTracksFractionVsBX
MonitorElement * NumberOfSeeds_lumiFlag
MonitorElement * NumberOfTrackCandidates
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
MonitorElement * NumberOfGoodPVtxVsBX
MonitorElement * NumberEventsOfVsLUMI
MonitorElement * NumberOfTracks_lumiFlag
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * NumberOfTracks
static Registry * instance()
MonitorElement * NumberEventsOfVsLS
MonitorElement * NumberOfTracksVsLUMI
std::vector< std::string > ClusterLabels
MonitorElement * NumberOfGoodPVtxWO0VsBX