CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Types | Private Attributes
TauDQMHistPlotter Class Reference

#include <DQMHistPlotter.h>

Inheritance diagram for TauDQMHistPlotter:
edm::one::EDAnalyzer< edm::one::SharedResources, edm::one::WatchRuns > edm::one::EDAnalyzerBase edm::EDConsumerBase

Classes

struct  cfgEntryAxisX
 
struct  cfgEntryAxisY
 
struct  cfgEntryDrawJob
 
struct  cfgEntryDrawOption
 
struct  cfgEntryLabel
 
struct  cfgEntryLegend
 
struct  cfgEntryProcess
 
struct  plotDefEntry
 

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginRun (const edm::Run &r, const edm::EventSetup &c) override
 
void endRun (const edm::Run &r, const edm::EventSetup &c) override
 
 TauDQMHistPlotter (const edm::ParameterSet &)
 
 ~TauDQMHistPlotter () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::SharedResources, edm::one::WatchRuns >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
typedef std::list< plotDefEntryplotDefList
 
typedef std::vector< std::string > vstring
 

Private Attributes

int canvasSizeX_
 
int canvasSizeY_
 
int cfgError_
 
std::list< cfgEntryDrawJobdrawJobs_
 
std::map< std::string, cfgEntryDrawOptiondrawOptionEntries_
 
std::string indOutputFileName_
 
std::map< std::string, cfgEntryLabellabels_
 
std::map< std::string, cfgEntryLegendlegends_
 
std::string outputFileName_
 
std::string outputFilePath_
 
std::map< std::string, cfgEntryProcessprocesses_
 
bool toFile_
 
std::map< std::string, cfgEntryAxisXxAxes_
 
std::map< std::string, cfgEntryAxisYyAxes_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Class to plot histograms and create a postscript file

Author
Christian Veelken, UC Davis

Definition at line 27 of file DQMHistPlotter.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 28 of file DQMHistPlotter.h.

◆ MonitorElement

Definition at line 29 of file DQMHistPlotter.h.

◆ plotDefList

typedef std::list<plotDefEntry> TauDQMHistPlotter::plotDefList
private

Definition at line 136 of file DQMHistPlotter.h.

◆ vstring

typedef std::vector<std::string> TauDQMHistPlotter::vstring
private

Definition at line 31 of file DQMHistPlotter.h.

Constructor & Destructor Documentation

◆ TauDQMHistPlotter()

TauDQMHistPlotter::TauDQMHistPlotter ( const edm::ParameterSet cfg)
explicit

Definition at line 557 of file DQMHistPlotter.cc.

References canvasSizeX_, canvasSizeY_, looper::cfg, cfgError_, gather_cfg::cout, drawJobs_, drawOptionEntries_, RecoTauValidation_cfi::drawOptionSets, mps_splice::entry, edm::ParameterSet::exists(), edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), indOutputFileName_, SummaryClient_cfi::labels, labels_, compareTotals::legend, RecoTauValidation_cfi::legendEntry, legends_, outputFileName_, outputFilePath_, pfMETsysShiftCorrections_cfi::parameter, parKeyword, plotFactory::plot, HLTObjectsMonitor_cfi::plots, LaserDQM_cfg::process, processDirKeyword, dqmiodatasetharvest::processes, processes_, replace_string(), svgfig::stack, AlCaHLTBitMon_QueryRunRegistry::string, runGCPTkAlMap::title, toFile_, verbosity, xAxes_, HLT_2022v15_cff::xAxis, yAxes_, and HLT_2022v15_cff::yAxis.

557  {
558  usesResource("DQMStore");
559  if (verbosity)
560  std::cout << "<TauDQMHistPlotter::TauDQMHistPlotter>:" << std::endl;
561 
562  toFile_ = cfg.getParameter<bool>("PrintToFile");
563  cfgError_ = 0;
564 
565  //--- configure processes
566  //std::cout << "--> configuring processes..." << std::endl;
567  edm::ParameterSet cfgParSet_processes = cfg.getParameter<edm::ParameterSet>("processes");
568  readCfgParameter<cfgEntryProcess>(cfgParSet_processes, processes_);
569 
570  //--- check that process types are defined
571  //std::cout << "--> checking configuration parameters..." << std::endl;
572 
573  int numProcesses_Data = 0;
574  int numProcesses_sumMC = 0;
575  for (std::map<std::string, cfgEntryProcess>::const_iterator process = processes_.begin(); process != processes_.end();
576  ++process) {
577  const std::string& type = process->second.type_;
578 
579  if (!((type == type_smMC) || (type == type_bsmMC) || (type == type_smSumMC) || (type == type_Data))) {
580  edm::LogError("TauDQMHistPlotter") << " Undefined process type = " << type << " !!";
581  cfgError_ = 1;
582  }
583 
584  if (type == type_smSumMC)
585  ++numProcesses_sumMC;
586  if (type == type_Data)
587  ++numProcesses_Data;
588  }
589 
590  if ((numProcesses_Data > 1) || (numProcesses_sumMC > 1)) {
591  edm::LogError("TauDQMHistPlotter") << " Cannot have more than one process of types sumMC and Data !!";
592  cfgError_ = 1;
593  }
594 
595  //--- configure x-axes
596  //std::cout << "--> configuring x-axes..." << std::endl;
597  edm::ParameterSet cfgParSet_xAxes = cfg.getParameter<edm::ParameterSet>("xAxes");
598  readCfgParameter<cfgEntryAxisX>(cfgParSet_xAxes, xAxes_);
599 
600  //--- configure y-axes
601  //std::cout << "--> configuring y-axes..." << std::endl;
602  edm::ParameterSet cfgParSet_yAxes = cfg.getParameter<edm::ParameterSet>("yAxes");
603  readCfgParameter<cfgEntryAxisY>(cfgParSet_yAxes, yAxes_);
604 
605  //--- configure legends
606  //std::cout << "--> configuring legends..." << std::endl;
607  edm::ParameterSet cfgParSet_legends = cfg.getParameter<edm::ParameterSet>("legends");
608  readCfgParameter<cfgEntryLegend>(cfgParSet_legends, legends_);
609 
610  //--- configure labels
611  //std::cout << "--> configuring labels..." << std::endl;
612  edm::ParameterSet cfgParSet_labels = cfg.getParameter<edm::ParameterSet>("labels");
613  readCfgParameter<cfgEntryLabel>(cfgParSet_labels, labels_);
614 
615  //--- configure drawOptions
616  //std::cout << "--> configuring drawOptions..." << std::endl;
617  if (cfg.exists("drawOptionSets")) {
618  edm::ParameterSet drawOptionSets = cfg.getParameter<edm::ParameterSet>("drawOptionSets");
619  vstring drawOptionSetNames = drawOptionSets.getParameterNamesForType<edm::ParameterSet>();
620  for (vstring::const_iterator drawOptionSetName = drawOptionSetNames.begin();
621  drawOptionSetName != drawOptionSetNames.end();
622  ++drawOptionSetName) {
623  edm::ParameterSet drawOptionSet = drawOptionSets.getParameter<edm::ParameterSet>(*drawOptionSetName);
624 
625  vstring drawOptionEntryNames = drawOptionSet.getParameterNamesForType<edm::ParameterSet>();
626  for (vstring::const_iterator drawOptionEntryName = drawOptionEntryNames.begin();
627  drawOptionEntryName != drawOptionEntryNames.end();
628  ++drawOptionEntryName) {
629  edm::ParameterSet drawOptionEntry = drawOptionSet.getParameter<edm::ParameterSet>(*drawOptionEntryName);
630 
631  std::string drawOptionEntryName_full =
632  std::string(*drawOptionSetName).append(drawOptionSeparator).append(*drawOptionEntryName);
633  drawOptionEntries_.insert(std::pair<std::string, cfgEntryDrawOption>(
634  drawOptionEntryName_full, cfgEntryDrawOption(drawOptionEntryName_full, drawOptionEntry)));
635  }
636  }
637  }
638 
639  if (cfg.exists("drawOptionEntries")) {
640  edm::ParameterSet cfgParSet_drawOptionEntries = cfg.getParameter<edm::ParameterSet>("drawOptionEntries");
641  readCfgParameter<cfgEntryDrawOption>(cfgParSet_drawOptionEntries, drawOptionEntries_);
642  }
643 
644  //--- configure drawJobs
645  //std::cout << "--> configuring drawJobs..." << std::endl;
646  edm::ParameterSet drawJobs = cfg.getParameter<edm::ParameterSet>("drawJobs");
647  vstring drawJobNames = drawJobs.getParameterNamesForType<edm::ParameterSet>();
648  for (vstring::const_iterator drawJobName = drawJobNames.begin(); drawJobName != drawJobNames.end(); ++drawJobName) {
649  edm::ParameterSet drawJob = drawJobs.getParameter<edm::ParameterSet>(*drawJobName);
650 
651  std::map<int, plotDefList> plotDefMap;
652 
653  if (drawJob.existsAs<edm::ParameterSet>("plots")) { // display same monitor element for different processes
655 
656  vstring dqmMonitorElements = plots.getParameter<vstring>("dqmMonitorElements");
657  vstring processes = plots.getParameter<vstring>("processes");
658 
659  std::string drawOptionSet = drawJob.getParameter<std::string>("drawOptionSet");
660  //std::cout << "drawOptionSet = " << drawOptionSet << std::endl;
661 
662  vstring stack = (cfg.exists("stack")) ? drawJob.getParameter<vstring>("stack") : vstring();
663 
664  for (vstring::const_iterator process = processes.begin(); process != processes.end(); ++process) {
665  int index = 0;
666  for (vstring::const_iterator dqmMonitorElement = dqmMonitorElements.begin();
667  dqmMonitorElement != dqmMonitorElements.end();
668  ++dqmMonitorElement) {
669  bool stack_dqmMonitorElement = find_vstring(stack, *process);
670  std::string drawOptionEntry = std::string(drawOptionSet).append(drawOptionSeparator).append(*process);
671  plotDefMap[index].push_back(
672  plotDefEntry(*dqmMonitorElement, drawOptionEntry, "", "", *process, stack_dqmMonitorElement));
673  ++index;
674  }
675  }
676  } else { // display different monitor elements for same process
677  typedef std::vector<edm::ParameterSet> vParameterSet;
678  vParameterSet plots = drawJob.getParameter<vParameterSet>("plots");
679 
680  std::string process = (drawJob.exists("process")) ? drawJob.getParameter<std::string>("process") : "";
681  //std::cout << "process (globally set) = " << process << std::endl;
682 
683  for (vParameterSet::const_iterator plot = plots.begin(); plot != plots.end(); ++plot) {
684  if (process.empty() || plot->exists("process")) {
685  process = plot->getParameter<std::string>("process");
686  //std::cout << "process (locally set) = " << process << std::endl;
687  }
688 
689  std::string drawOptionEntry = plot->getParameter<std::string>("drawOptionEntry");
690  //std::cout << "drawOptionEntry = " << drawOptionEntry << std::endl;
691 
692  std::string legendEntry = "", legendEntryErrorBand = "";
693  if (plot->exists("legendEntry")) {
694  legendEntry = plot->getParameter<std::string>("legendEntry");
695  legendEntryErrorBand = (plot->exists("legendEntryErrorBand"))
696  ? plot->getParameter<std::string>("legendEntryErrorBand")
697  : std::string(legendEntry).append(" Uncertainty");
698  }
699  //std::cout << "legendEntry = " << legendEntry << std::endl;
700  //std::cout << "legendEntryErrorBand = " << legendEntryErrorBand << std::endl;
701 
702  vstring dqmMonitorElements = plot->getParameter<vstring>("dqmMonitorElements");
703  int index = 0;
704  for (vstring::const_iterator dqmMonitorElement = dqmMonitorElements.begin();
705  dqmMonitorElement != dqmMonitorElements.end();
706  ++dqmMonitorElement) {
707  plotDefMap[index].push_back(
708  plotDefEntry(*dqmMonitorElement, drawOptionEntry, legendEntry, legendEntryErrorBand, process, false));
709  ++index;
710  }
711  }
712  }
713 
714  //--- check that number of displayed monitor elements is the same for each plot
715  unsigned numMonitorElements_ref = 0;
716  bool isFirstEntry = true;
717  for (std::map<int, plotDefList>::const_iterator plot = plotDefMap.begin(); plot != plotDefMap.end(); ++plot) {
718  if (isFirstEntry) {
719  numMonitorElements_ref = plot->second.size();
720  isFirstEntry = false;
721  } else {
722  if (plot->second.size() != numMonitorElements_ref) {
723  edm::LogError("TauDQMHistPlotter::TauDQMHistPlotter")
724  << " Numbers of dqmMonitorElements must be the same for all plots"
725  << " --> skipping drawJob = " << (*drawJobName) << " !!";
726  cfgError_ = 1;
727  }
728  }
729  }
730 
731  //--- expand process directories in names of dqmMonitorElements
732  for (std::map<int, plotDefList>::iterator plot = plotDefMap.begin(); plot != plotDefMap.end(); ++plot) {
733  for (plotDefList::iterator entry = plot->second.begin(); entry != plot->second.end(); ++entry) {
734  std::string dqmMonitorElement = entry->dqmMonitorElement_;
735  std::string process = entry->process_;
736 
737  std::map<std::string, cfgEntryProcess>::const_iterator it = processes_.find(process);
738  if (it != processes_.end()) {
739  std::string process_dqmDirectory = it->second.dqmDirectory_;
740 
741  //std::cout << "replacing processDir = " << process_dqmDirectory << " in drawJob = " << (*drawJobName) << std::endl;
742 
743  int errorFlag = 0;
744  std::string dqmMonitorElement_expanded =
745  replace_string(dqmMonitorElement, processDirKeyword, process_dqmDirectory, 0, 1, errorFlag);
746  //std::cout << " dqmMonitorElement_expanded = " << dqmMonitorElement_expanded << std::endl;
747 
748  if (!errorFlag) {
749  entry->dqmMonitorElement_ = dqmMonitorElement_expanded;
750  } else {
751  cfgError_ = 1;
752  }
753  } else {
754  edm::LogError("TauDQMHistPlotter::TauDQMHistPlotter") << " Undefined process = " << process << " !!";
755  cfgError_ = 1;
756  }
757  }
758  }
759 
760  std::string title = (drawJob.exists("title")) ? drawJob.getParameter<std::string>("title") : "";
761 
762  std::string xAxis = drawJob.getParameter<std::string>("xAxis");
763  std::string yAxis = drawJob.getParameter<std::string>("yAxis");
764 
765  std::string legend = drawJob.getParameter<std::string>("legend");
766 
767  vstring labels = (drawJob.exists("labels")) ? drawJob.getParameter<vstring>("labels") : vstring();
768 
769  //--- expand parameters in names of dqmMonitorElements;
770  // create drawJob objects
771  for (std::map<int, plotDefList>::iterator plot = plotDefMap.begin(); plot != plotDefMap.end(); ++plot) {
772  if (drawJob.exists("parameter")) {
773  vstring vparameter = drawJob.getParameter<vstring>("parameter");
774  //std::cout << "replacing parameter = " << format_vstring(vparameter) << " in drawJob = " << (*drawJobName) << std::endl;
775 
776  for (vstring::const_iterator parameter = vparameter.begin(); parameter != vparameter.end(); ++parameter) {
777  plotDefList plot_expanded;
778 
779  for (plotDefList::const_iterator entry = plot->second.begin(); entry != plot->second.end(); ++entry) {
780  std::string dqmMonitorElement = entry->dqmMonitorElement_;
781 
782  int errorFlag = 0;
783  std::string dqmMonitorElement_expanded =
784  replace_string(dqmMonitorElement, parKeyword, *parameter, 1, 1, errorFlag);
785  //std::cout << " dqmMonitorElement_expanded = " << dqmMonitorElement_expanded << std::endl;
786  if (!errorFlag) {
787  plot_expanded.push_back(plotDefEntry(dqmMonitorElement_expanded,
788  entry->drawOptionEntry_,
789  entry->legendEntry_,
790  entry->legendEntryErrorBand_,
791  entry->process_,
792  entry->doStack_));
793  } else {
794  cfgError_ = 1;
795  }
796  }
797 
798  int errorFlag = 0;
799  std::string title_expanded = replace_string(title, parKeyword, *parameter, 0, 1, errorFlag);
800  //std::cout << " title_expanded = " << title_expanded << std::endl;
801  std::string xAxis_expanded = replace_string(xAxis, parKeyword, *parameter, 0, 1, errorFlag);
802  //std::cout << " xAxis_expanded = " << xAxis_expanded << std::endl;
803  std::string yAxis_expanded = replace_string(yAxis, parKeyword, *parameter, 0, 1, errorFlag);
804  //std::cout << " yAxis_expanded = " << yAxis_expanded << std::endl;
805  if (errorFlag)
806  cfgError_ = 1;
807 
808  drawJobs_.push_back(cfgEntryDrawJob(std::string(*drawJobName).append(*parameter),
809  plot_expanded,
810  title_expanded,
811  xAxis_expanded,
812  yAxis_expanded,
813  legend,
814  labels));
815  }
816  } else {
817  drawJobs_.push_back(cfgEntryDrawJob(*drawJobName, plot->second, title, xAxis, yAxis, legend, labels));
818  }
819  }
820  }
821 
822  //--- check that all information neccessary to process drawJob is defined;
823  for (std::list<cfgEntryDrawJob>::const_iterator drawJob = drawJobs_.begin(); drawJob != drawJobs_.end(); ++drawJob) {
824  for (plotDefList::const_iterator plot = drawJob->plots_.begin(); plot != drawJob->plots_.end(); ++plot) {
825  checkCfgDef<cfgEntryDrawOption>(
826  plot->drawOptionEntry_, drawOptionEntries_, cfgError_, "drawOptionEntry", drawJob->name_);
827  checkCfgDef<cfgEntryProcess>(plot->process_, processes_, cfgError_, "process", drawJob->name_);
828  }
829 
830  checkCfgDef<cfgEntryAxisX>(drawJob->xAxis_, xAxes_, cfgError_, "xAxis", drawJob->name_);
831  checkCfgDef<cfgEntryAxisY>(drawJob->yAxis_, yAxes_, cfgError_, "yAxis", drawJob->name_);
832 
833  checkCfgDef<cfgEntryLegend>(drawJob->legend_, legends_, cfgError_, "legend", drawJob->name_);
834 
835  checkCfgDefs<cfgEntryLabel>(drawJob->labels_, labels_, cfgError_, "label", drawJob->name_);
836  }
837 
838  //--- configure canvas size
839  //std::cout << "--> configuring canvas size..." << std::endl;
840  canvasSizeX_ = (cfg.exists("canvasSizeX")) ? cfg.getParameter<int>("canvasSizeX") : defaultCanvasSizeX;
841  canvasSizeY_ = (cfg.exists("canvasSizeY")) ? cfg.getParameter<int>("canvasSizeY") : defaultCanvasSizeY;
842 
843  //--- configure output files
844  //std::cout << "--> configuring postscript output file..." << std::endl;
845 
846  outputFilePath_ = (cfg.exists("outputFilePath")) ? cfg.getParameter<std::string>("outputFilePath") : "";
847  if (outputFilePath_.rbegin() != outputFilePath_.rend()) {
848  if ((*outputFilePath_.rbegin()) == '/')
849  outputFilePath_.erase(outputFilePath_.length() - 1);
850  }
851  //std::cout << " outputFilePath = " << outputFilePath_ << std::endl;
852 
853  outputFileName_ = (cfg.exists("outputFileName")) ? cfg.getParameter<std::string>("outputFileName") : "";
854  //std::cout << " outputFileName = " << outputFileName_ << std::endl;
855 
856  indOutputFileName_ = (cfg.exists("indOutputFileName")) ? cfg.getParameter<std::string>("indOutputFileName") : "";
857  if (!indOutputFileName_.empty() && indOutputFileName_.find('.') == std::string::npos) {
858  edm::LogError("TauDQMHistPlotter") << " Failed to determine type of graphics format from indOutputFileName = "
859  << indOutputFileName_ << " !!";
860  cfgError_ = 1;
861  }
862  //std::cout << " indOutputFileName = " << indOutputFileName_ << std::endl;
863 
864  //--- check that exactly one type of output is specified for the plots
865  // (either separate graphics files displaying one plot each
866  // or postscript file displaying all plots on successive pages;
867  // cannot create both types of output simultaneously,
868  // as TCanvas::Print seems to interfere with TPostScript::NewPage)
869  if (outputFileName_.empty() && indOutputFileName_.empty()) {
870  edm::LogError("TauDQMHistPlotter") << " Either outputFileName or indOutputFileName must be specified !!";
871  cfgError_ = 1;
872  }
873 
874  if (!outputFileName_.empty() && !indOutputFileName_.empty()) {
875  edm::LogError("TauDQMHistPlotter") << " Must not specify outputFileName and indOutputFileName simultaneously !!";
876  cfgError_ = 1;
877  }
878 
879  if (verbosity)
880  std::cout << "done." << std::endl;
881 }
const std::string processDirKeyword
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
vector< string > vstring
Definition: ExoticaDQM.cc:7
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::string replace_string(const std::string &src, const std::string &keyword, const std::string &parameter, unsigned minReplacements, unsigned maxReplacements, int &errorFlag)
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:171
Log< level::Error, false > LogError
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
Definition: ParameterSet.h:179
stack
Definition: svgfig.py:559
std::map< std::string, cfgEntryLegend > legends_
const std::string parKeyword
std::vector< std::string > vstring
std::string outputFileName_
std::map< std::string, cfgEntryLabel > labels_
std::map< std::string, cfgEntryProcess > processes_
const int verbosity
std::map< std::string, cfgEntryAxisX > xAxes_
std::list< plotDefEntry > plotDefList
std::string outputFilePath_
std::map< std::string, cfgEntryDrawOption > drawOptionEntries_
std::list< cfgEntryDrawJob > drawJobs_
std::map< std::string, cfgEntryAxisY > yAxes_
std::string indOutputFileName_

◆ ~TauDQMHistPlotter()

TauDQMHistPlotter::~TauDQMHistPlotter ( )
override

Definition at line 883 of file DQMHistPlotter.cc.

883  {
884  // nothing to be done yet...
885 }

Member Function Documentation

◆ analyze()

void TauDQMHistPlotter::analyze ( const edm::Event ,
const edm::EventSetup  
)
overridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 887 of file DQMHistPlotter.cc.

887  {
888  // nothing to be done yet...
889 }

◆ beginRun()

void TauDQMHistPlotter::beginRun ( const edm::Run r,
const edm::EventSetup c 
)
inlineoverride

Definition at line 161 of file DQMHistPlotter.h.

161 {}

◆ endRun()

void TauDQMHistPlotter::endRun ( const edm::Run r,
const edm::EventSetup c 
)
override

Definition at line 891 of file DQMHistPlotter.cc.

References mps_setup::append, TauDQMHistPlotter::cfgEntryAxisX::applyTo(), TauDQMHistPlotter::cfgEntryLabel::applyTo(), TauDQMHistPlotter::cfgEntryDrawOption::applyTo(), svgfig::canvas(), canvasSizeX_, canvasSizeY_, cfgError_, gather_cfg::cout, dqmDirectoryName(), dqmRootDirectory, L1TBPTX_cfi::dqmStore, drawJobs_, histoStyle::drawOption, TauDQMHistPlotter::cfgEntryDrawOption::drawOption_, drawOptionEntries_, TauDQMHistPlotter::plotDefEntry::drawOptionEntry_, TauDQMHistPlotter::cfgEntryDrawOption::drawOptionLegend_, TauDQMHistPlotter::cfgEntryDrawOption::fillColor_, TauDQMHistPlotter::cfgEntryDrawOption::fillStyle_, dqm::legacy::MonitorElement::getTH1F(), indOutputFileName_, TauDQMHistPlotter::plotDefEntry::isErrorBand_, label, SummaryClient_cfi::labels, labels_, compareTotals::legend, RecoTauValidation_cfi::legendEntry, legends_, TauDQMHistPlotter::cfgEntryDrawOption::lineColor_, TauDQMHistPlotter::cfgEntryDrawOption::lineWidth_, TauDQMHistPlotter::cfgEntryDrawOption::markerColor_, TauDQMHistPlotter::cfgEntryDrawOption::markerSize_, METSkim_cff::Max, outputFileName_, outputFilePath_, plotFactory::plot, plotKeyword, processes_, HLT_2022v15_cff::psFileName, replace_string(), AlCaHLTBitMon_QueryRunRegistry::string, toFile_, verbosity, xAxes_, and yAxes_.

891  {
892  if (verbosity)
893  std::cout << "<TauDQMHistPlotter::endJob>:" << std::endl;
894 
895  //--- check that configuration parameters contain no errors
896  if (cfgError_) {
897  edm::LogError("endJob") << " Error in Configuration ParameterSet --> histograms will NOT be plotted !!";
898  return;
899  }
900 
901  //--- check that DQMStore service is available
902  if (!edm::Service<DQMStore>().isAvailable()) {
903  edm::LogError("endJob") << " Failed to access dqmStore --> histograms will NOT be plotted !!";
904  return;
905  }
906 
908 
909  //--- stop ROOT from keeping references to all hsitograms
910  //TH1::AddDirectory(false);
911 
912  //--- stop ROOT from opening X-window for canvas output
913  // (in order to be able to run in batch mode)
914  gROOT->SetBatch(true);
915 
916  //--- initialize graphical output;
917  // open postscript file
918  TCanvas canvas("TauDQMHistPlotter", "TauDQMHistPlotter", canvasSizeX_, canvasSizeY_);
919  canvas.SetFillColor(10);
920 
921  //--- restrict area in which histograms are drawn to quadratic TPad in the center of the TCanvas,
922  // in order to make space for axis labels...
923  //TPad pad("EWKTauPad", "EWKTauPad", 0.02, 0.15, 0.98, 0.85);
924  //pad.SetFillColor(10);
925  //pad.Draw();
926  //pad.Divide(1,1);
927  //pad.cd(1);
928 
929  TPostScript* ps = nullptr;
930  if (!outputFileName_.empty()) {
932  (!outputFilePath_.empty()) ? std::string(outputFilePath_).append("/").append(outputFileName_) : outputFileName_;
933  ps = new TPostScript(psFileName.data(), 112);
934  }
935 
936  //--- process drawJobs
937  for (std::list<cfgEntryDrawJob>::const_iterator drawJob = drawJobs_.begin(); drawJob != drawJobs_.end(); ++drawJob) {
938  const std::string& drawJobName = drawJob->name_;
939  if (verbosity)
940  std::cout << "--> processing drawJob " << drawJobName << "..." << std::endl;
941 
942  //--- prepare internally used histogram data-structures
943  TH1* stackedHistogram_sum = nullptr;
944  std::list<TH1*> histogramsToDelete;
945  std::list<plotDefEntry*> drawOptionsToDelete;
946 
947  typedef std::pair<TH1*, const plotDefEntry*> histogram_drawOption_pair;
948  std::list<histogram_drawOption_pair> allHistograms;
949 
950  for (plotDefList::const_iterator plot = drawJob->plots_.begin(); plot != drawJob->plots_.end(); ++plot) {
951  std::string dqmMonitorElementName_full =
952  dqmDirectoryName(std::string(dqmRootDirectory)).append(plot->dqmMonitorElement_);
953  if (verbosity)
954  std::cout << " dqmMonitorElementName_full = " << dqmMonitorElementName_full << std::endl;
955  MonitorElement* dqmMonitorElement = dqmStore.get(dqmMonitorElementName_full);
956 
957  TH1* histogram = dqmMonitorElement->getTH1F();
958  if (verbosity)
959  std::cout << "Got Histogram " << std::endl;
960  // TH1* histogram = ( dqmMonitorElement ) ? dynamic_cast<TH1*>(dqmMonitorElement->getTH1()->Clone()) : NULL;
961  //histogramsToDelete.push_back(histogram);
962 
963  if (histogram == nullptr) {
964  edm::LogError("endJob") << " Failed to access dqmMonitorElement = " << dqmMonitorElementName_full << ","
965  << " needed by drawJob = " << drawJobName << " --> histograms will NOT be plotted !!";
966  continue;
967  }
968 
969  if (!histogram->GetSumw2N())
970  histogram->Sumw2();
971 
972  const cfgEntryDrawOption* drawOptionConfig =
973  findCfgDef<cfgEntryDrawOption>(plot->drawOptionEntry_, drawOptionEntries_, "drawOptionEntry", drawJobName);
974  if (drawOptionConfig == nullptr) {
975  edm::LogError("endJob") << " Failed to access information needed by drawJob = " << drawJobName
976  << " --> histograms will NOT be plotted !!";
977  return;
978  }
979 
980  if (drawOptionConfig->drawOption_ == drawOption_eBand) {
981  //--- add histogram displaying central value as solid line
982  TH1* histogram_centralValue = dynamic_cast<TH1*>(histogram->Clone());
983  histogram_centralValue->SetName(std::string(histogram->GetName()).append("_centralValue").data());
984  cfgEntryDrawOption drawOptionConfig_centralValue(*drawOptionConfig);
985  drawOptionConfig_centralValue.fillColor_ = 0;
986  drawOptionConfig_centralValue.fillStyle_ = 0;
987  drawOptionConfig_centralValue.drawOption_ = "hist";
988  drawOptionConfig_centralValue.drawOptionLegend_ = "l";
989  std::string drawOptionName_centralValue = std::string(plot->drawOptionEntry_).append("_centralValue");
990  //--- entries in std::map need to be unique,
991  // so need to check whether drawOptionEntry already exists...
992  if (drawOptionEntries_.find(drawOptionName_centralValue) == drawOptionEntries_.end())
993  drawOptionEntries_.insert(std::pair<std::string, cfgEntryDrawOption>(
994  drawOptionName_centralValue,
995  cfgEntryDrawOption(drawOptionName_centralValue, drawOptionConfig_centralValue)));
996  plotDefEntry* plot_centralValue = new plotDefEntry(*plot);
997  plot_centralValue->drawOptionEntry_ = drawOptionName_centralValue;
998  allHistograms.push_back(histogram_drawOption_pair(histogram_centralValue, plot_centralValue));
999  histogramsToDelete.push_back(histogram_centralValue);
1000  drawOptionsToDelete.push_back(plot_centralValue);
1001 
1002  //--- add histogram displaying uncertainty as shaded error band
1003  TH1* histogram_ErrorBand = dynamic_cast<TH1*>(histogram->Clone());
1004  histogram_ErrorBand->SetName(std::string(histogram->GetName()).append("_ErrorBand").data());
1005  cfgEntryDrawOption drawOptionConfig_ErrorBand(*drawOptionConfig);
1006  drawOptionConfig_ErrorBand.markerColor_ = drawOptionConfig_ErrorBand.fillColor_;
1007  drawOptionConfig_ErrorBand.markerSize_ = 0.;
1008  drawOptionConfig_ErrorBand.lineColor_ = drawOptionConfig_ErrorBand.fillColor_;
1009  drawOptionConfig_ErrorBand.lineWidth_ = 0;
1010  drawOptionConfig_ErrorBand.drawOption_ = "e2";
1011  drawOptionConfig_ErrorBand.drawOptionLegend_ = "f";
1012  std::string drawOptionName_ErrorBand = std::string(plot->drawOptionEntry_).append("_ErrorBand");
1013  //--- entries in std::map need to be unique,
1014  // so need to check whether drawOptionEntry already exists...
1015  if (drawOptionEntries_.find(drawOptionName_ErrorBand) == drawOptionEntries_.end())
1016  drawOptionEntries_.insert(std::pair<std::string, cfgEntryDrawOption>(
1017  drawOptionName_ErrorBand, cfgEntryDrawOption(drawOptionName_ErrorBand, drawOptionConfig_ErrorBand)));
1018  plotDefEntry* plot_ErrorBand = new plotDefEntry(*plot);
1019  plot_ErrorBand->drawOptionEntry_ = drawOptionName_ErrorBand;
1020  plot_ErrorBand->isErrorBand_ = true;
1021  allHistograms.push_back(histogram_drawOption_pair(histogram_ErrorBand, plot_ErrorBand));
1022  histogramsToDelete.push_back(histogram_ErrorBand);
1023  drawOptionsToDelete.push_back(plot_ErrorBand);
1024  } else if (plot->doStack_) {
1025  TH1* stackedHistogram = dynamic_cast<TH1*>(histogram->Clone());
1026  if (stackedHistogram_sum)
1027  stackedHistogram->Add(stackedHistogram_sum);
1028  stackedHistogram_sum = stackedHistogram;
1029  histogramsToDelete.push_back(stackedHistogram);
1030  allHistograms.push_back(histogram_drawOption_pair(stackedHistogram, &(*plot)));
1031  } else {
1032  allHistograms.push_back(histogram_drawOption_pair(histogram, &(*plot)));
1033  }
1034  }
1035 
1036  //--- determine normalization of y-axis
1037  // (maximum of any of the histograms included in drawJob)
1038  double yAxisNorm = 0.;
1039  for (std::list<histogram_drawOption_pair>::const_iterator it = allHistograms.begin(); it != allHistograms.end();
1040  ++it) {
1041  yAxisNorm = TMath::Max(yAxisNorm, it->first->GetMaximum());
1042  }
1043  //std::cout << " yAxisNorm = " << yAxisNorm << std::endl;
1044 
1045  //--- prepare histograms for drawing
1046  const cfgEntryAxisX* xAxisConfig = findCfgDef<cfgEntryAxisX>(drawJob->xAxis_, xAxes_, "xAxis", drawJobName);
1047  const cfgEntryAxisY* yAxisConfig = findCfgDef<cfgEntryAxisY>(drawJob->yAxis_, yAxes_, "yAxis", drawJobName);
1048  const cfgEntryLegend* legendConfig = findCfgDef<cfgEntryLegend>(drawJob->legend_, legends_, "legend", drawJobName);
1049  if (xAxisConfig == nullptr || yAxisConfig == nullptr || legendConfig == nullptr) {
1050  edm::LogError("endJob") << " Failed to access information needed by drawJob = " << drawJobName
1051  << " --> histograms will NOT be plotted !!";
1052  return;
1053  }
1054 
1055  //--- WARNING: need to call
1056  // TLegend::TLegend(Double_t, Double_t,Double_t, Double_t, const char* = "", Option_t* = "brNDC")
1057  // constructor, as TLegend::TLegend default constructor causes the created TLegend object to behave differently !!
1058  TLegend legend(defaultLegendPosX,
1059  defaultLegendPosY,
1060  defaultLegendPosX + defaultLegendSizeX,
1061  defaultLegendPosY + defaultLegendSizeY);
1062  legendConfig->applyTo(&legend);
1063 
1064  std::list<histoDrawEntry> smProcessHistogramList;
1065  std::list<histoDrawEntry> bsmProcessHistogramList;
1066  std::list<histoDrawEntry> smSumHistogramList;
1067  std::list<histoDrawEntry> smSumUncertaintyHistogramList;
1068  std::list<histoDrawEntry> dataHistogramList;
1069 
1070  for (std::list<histogram_drawOption_pair>::const_iterator it = allHistograms.begin(); it != allHistograms.end();
1071  ++it) {
1072  TH1* histogram = it->first;
1073  const plotDefEntry* drawOption = it->second;
1074 
1075  const cfgEntryDrawOption* drawOptionConfig = findCfgDef<cfgEntryDrawOption>(
1076  drawOption->drawOptionEntry_, drawOptionEntries_, "drawOptionEntry", drawJobName);
1077  const cfgEntryProcess* processConfig =
1078  findCfgDef<cfgEntryProcess>(drawOption->process_, processes_, "process", drawJobName);
1079  if (drawOptionConfig == nullptr || processConfig == nullptr) {
1080  edm::LogError("endJob") << " Failed to access information needed by drawJob = " << drawJobName
1081  << " --> histograms will NOT be plotted !!";
1082  return;
1083  }
1084 
1085  if (!drawJob->title_.empty())
1086  histogram->SetTitle(drawJob->title_.data());
1087 
1088  xAxisConfig->applyTo(histogram);
1089  yAxisConfig->applyTo(histogram, yAxisNorm);
1090 
1091  bool yLogScale = (yAxisConfig->yScale_ == yScale_log) ? true : false;
1092  //std::cout << " yLogScale = " << yLogScale << std::endl;
1093  //pad.SetLogy(yLogScale);
1094  canvas.SetLogy(yLogScale);
1095 
1096  drawOptionConfig->applyTo(histogram);
1097  histogram->SetStats(false);
1098 
1099  if (drawOption->isErrorBand_) {
1100  smSumUncertaintyHistogramList.push_back(histoDrawEntry(histogram, drawOptionConfig->drawOption_.data()));
1101  } else {
1102  if (processConfig->type_ == type_smMC) {
1103  smProcessHistogramList.push_back(histoDrawEntry(histogram, drawOptionConfig->drawOption_.data()));
1104  } else if (processConfig->type_ == type_bsmMC) {
1105  bsmProcessHistogramList.push_back(histoDrawEntry(histogram, drawOptionConfig->drawOption_.data()));
1106  } else if (processConfig->type_ == type_smSumMC) {
1107  smSumHistogramList.push_back(histoDrawEntry(histogram, drawOptionConfig->drawOption_.data()));
1108  } else if (processConfig->type_ == type_Data) {
1109  dataHistogramList.push_back(histoDrawEntry(histogram, drawOptionConfig->drawOption_.data()));
1110  }
1111  }
1112 
1113  std::string legendEntry, legendDrawOption;
1114  if (drawOption->isErrorBand_) {
1115  legendEntry = (!drawOption->legendEntryErrorBand_.empty()) ? drawOption->legendEntryErrorBand_
1116  : processConfig->legendEntryErrorBand_;
1117  legendDrawOption = "f";
1118  } else {
1119  legendEntry = (!drawOption->legendEntry_.empty()) ? drawOption->legendEntry_ : processConfig->legendEntry_;
1120  legendDrawOption = drawOptionConfig->drawOptionLegend_;
1121  }
1122 
1123  legend.AddEntry(histogram, legendEntry.data(), legendDrawOption.data());
1124  }
1125 
1126  std::list<TPaveText> labels;
1127  for (vstring::const_iterator labelName = drawJob->labels_.begin(); labelName != drawJob->labels_.end();
1128  ++labelName) {
1129  const cfgEntryLabel* labelConfig = findCfgDef<cfgEntryLabel>(*labelName, labels_, "label", drawJobName);
1130 
1131  TPaveText label;
1132  labelConfig->applyTo(&label);
1133 
1134  labels.push_back(label);
1135  }
1136 
1137  //--- draw histograms
1138  // - in the order:
1139  // 1. uncertainty on sum of all Standard Model processes
1140  // 2. sum of all Standard Model processes
1141  // 3. individual Standard Model processes
1142  // 4. individual beyond the Standard Model processes
1143  // 5. data
1144  bool isFirstHistogram = true;
1145  drawHistograms(smSumUncertaintyHistogramList, isFirstHistogram);
1146  drawHistograms(smSumHistogramList, isFirstHistogram);
1147 
1148  //--- process histograms for individual Standard Model processes
1149  // in reverse order, so that most stacked histogram gets drawn first
1150  for (std::list<histoDrawEntry>::reverse_iterator it = smProcessHistogramList.rbegin();
1151  it != smProcessHistogramList.rend();
1152  ++it) {
1153  std::string drawOption = (isFirstHistogram) ? it->second : std::string(it->second).append("same");
1154  it->first->Draw(drawOption.data());
1155  isFirstHistogram = false;
1156  }
1157 
1158  drawHistograms(bsmProcessHistogramList, isFirstHistogram);
1159  drawHistograms(dataHistogramList, isFirstHistogram);
1160 
1161  legend.Draw();
1162 
1163  for (std::list<TPaveText>::iterator label = labels.begin(); label != labels.end(); ++label) {
1164  label->Draw();
1165  }
1166 
1167  //pad.RedrawAxis();
1168 
1169  canvas.Update();
1170  //pad.Update();
1171 
1172  if (!indOutputFileName_.empty() && toFile_) {
1173  int errorFlag = 0;
1174  std::string modIndOutputFileName = replace_string(indOutputFileName_, plotKeyword, drawJobName, 1, 1, errorFlag);
1175  if (!errorFlag) {
1176  std::string fullFileName = (!outputFilePath_.empty())
1177  ? std::string(outputFilePath_).append("/").append(modIndOutputFileName)
1178  : modIndOutputFileName;
1179  canvas.Print(fullFileName.data());
1180  } else {
1181  edm::LogError("endJob") << " Failed to decode indOutputFileName = " << indOutputFileName_ << " --> skipping !!";
1182  }
1183  }
1184 
1185  if (ps)
1186  ps->NewPage();
1187 
1188  //--- delete temporarily created histogram and drawOption objects
1189  for (std::list<TH1*>::const_iterator histogram = histogramsToDelete.begin(); histogram != histogramsToDelete.end();
1190  ++histogram) {
1191  delete (*histogram);
1192  }
1193 
1194  for (std::list<plotDefEntry*>::const_iterator drawOption = drawOptionsToDelete.begin();
1195  drawOption != drawOptionsToDelete.end();
1196  ++drawOption) {
1197  delete (*drawOption);
1198  }
1199  }
1200 
1201  //--- close postscript file
1202  canvas.Clear();
1203  if (verbosity)
1204  std::cout << "done." << std::endl;
1205  if (ps)
1206  ps->Close();
1207  delete ps;
1208 }
std::string replace_string(const std::string &src, const std::string &keyword, const std::string &parameter, unsigned minReplacements, unsigned maxReplacements, int &errorFlag)
Log< level::Error, false > LogError
std::string dqmDirectoryName(const std::string &dqmRootDirectory, const std::string &dqmSubDirectory)
Definition: EwkTauDQM.cc:10
char const * label
std::map< std::string, cfgEntryLegend > legends_
std::string outputFileName_
std::map< std::string, cfgEntryLabel > labels_
std::map< std::string, cfgEntryProcess > processes_
const int verbosity
std::map< std::string, cfgEntryAxisX > xAxes_
virtual TH1F * getTH1F() const
std::string outputFilePath_
std::map< std::string, cfgEntryDrawOption > drawOptionEntries_
const std::string plotKeyword
def canvas(sub, attr)
Definition: svgfig.py:482
std::list< cfgEntryDrawJob > drawJobs_
const std::string dqmRootDirectory
std::map< std::string, cfgEntryAxisY > yAxes_
std::string indOutputFileName_

Member Data Documentation

◆ canvasSizeX_

int TauDQMHistPlotter::canvasSizeX_
private

Definition at line 171 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ canvasSizeY_

int TauDQMHistPlotter::canvasSizeY_
private

Definition at line 172 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ cfgError_

int TauDQMHistPlotter::cfgError_
private

Definition at line 176 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ drawJobs_

std::list<cfgEntryDrawJob> TauDQMHistPlotter::drawJobs_
private

Definition at line 170 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ drawOptionEntries_

std::map<std::string, cfgEntryDrawOption> TauDQMHistPlotter::drawOptionEntries_
private

Definition at line 169 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ indOutputFileName_

std::string TauDQMHistPlotter::indOutputFileName_
private

Definition at line 175 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ labels_

std::map<std::string, cfgEntryLabel> TauDQMHistPlotter::labels_
private

◆ legends_

std::map<std::string, cfgEntryLegend> TauDQMHistPlotter::legends_
private

Definition at line 167 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ outputFileName_

std::string TauDQMHistPlotter::outputFileName_
private

Definition at line 174 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ outputFilePath_

std::string TauDQMHistPlotter::outputFilePath_
private

Definition at line 173 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ processes_

std::map<std::string, cfgEntryProcess> TauDQMHistPlotter::processes_
private

Definition at line 164 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ toFile_

bool TauDQMHistPlotter::toFile_
private

Definition at line 177 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ xAxes_

std::map<std::string, cfgEntryAxisX> TauDQMHistPlotter::xAxes_
private

Definition at line 165 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().

◆ yAxes_

std::map<std::string, cfgEntryAxisY> TauDQMHistPlotter::yAxes_
private

Definition at line 166 of file DQMHistPlotter.h.

Referenced by endRun(), and TauDQMHistPlotter().