#include <SmartSelectionMonitor.h>
Public Types | |
typedef std::unordered_map< std::string, std::map< std::string, TH1 * > * > | Monitor_t |
Public Member Functions | |
TH1 * | addHistogram (TH1 *h, std::string tag) |
TH1 * | addHistogram (TH1 *h) |
bool | fillHisto (std::string name, std::string tag, double valx, double weight, bool useBinWidth=false) |
bool | fillHisto (std::string name, std::string tag, double valx, double valy, double weight, bool useBinWidth=false) |
bool | fillHisto (std::string name, std::vector< std::string > tags, double valx, double weight, bool useBinWidth=false) |
bool | fillHisto (std::string name, std::vector< std::string > tags, double valx, double valy, double weight, bool useBinWidth=false) |
bool | fillHisto (std::string name, std::vector< std::string > tags, double valx, std::vector< double > weights, bool useBinWidth=false) |
bool | fillHisto (std::string name, std::vector< std::string > tags, double valx, double valy, std::vector< double > weights, bool useBinWidth=false) |
bool | fillProfile (std::string name, std::string tag, double valx, double valy, double weight) |
bool | fillProfile (std::string name, std::vector< std::string > tags, double valx, double valy, double weight) |
bool | fillProfile (std::string name, std::vector< std::string > tags, double valx, double valy, std::vector< double > weights) |
Monitor_t & | getAllMonitors () |
TH1 * | getHisto (std::string histo, std::string tag="all") |
bool | hasBaseHisto (std::string histo) |
bool | hasTag (std::map< std::string, TH1 *> *map, std::string tag) |
bool | hasTag (std::string histo, std::string tag) |
void | initMonitorForStep (std::string tag) |
void | Scale (double w) |
SmartSelectionMonitor () | |
void | Write () |
~SmartSelectionMonitor ()=default | |
Private Attributes | |
Monitor_t | allMonitors_ |
Definition at line 20 of file SmartSelectionMonitor.h.
typedef std::unordered_map<std::string, std::map<std::string, TH1*>*> SmartSelectionMonitor::Monitor_t |
Definition at line 25 of file SmartSelectionMonitor.h.
|
inline |
Definition at line 22 of file SmartSelectionMonitor.h.
|
default |
TH1 * SmartSelectionMonitor::addHistogram | ( | TH1 * | h, |
std::string | tag | ||
) |
Definition at line 4 of file SmartSelectionMonitor.cc.
References allMonitors_, h, hasBaseHisto(), and timingPdfMaker::histo.
Referenced by addHistogram(), and JetHTAnalyzer::beginJob().
TH1 * SmartSelectionMonitor::addHistogram | ( | TH1 * | h | ) |
Definition at line 14 of file SmartSelectionMonitor.cc.
References addHistogram(), and h.
bool SmartSelectionMonitor::fillHisto | ( | std::string | name, |
std::string | tag, | ||
double | valx, | ||
double | weight, | ||
bool | useBinWidth = false |
||
) |
Definition at line 21 of file SmartSelectionMonitor.cc.
References getHisto(), h, Skims_PA_cff::name, makeGlobalPositionRcd_cfg::tag, heppy_batch::val, and ApeEstimator_cff::width.
Referenced by JetHTAnalyzer::analyze(), and fillHisto().
bool SmartSelectionMonitor::fillHisto | ( | std::string | name, |
std::string | tag, | ||
double | valx, | ||
double | valy, | ||
double | weight, | ||
bool | useBinWidth = false |
||
) |
Definition at line 51 of file SmartSelectionMonitor.cc.
References getHisto(), h, Skims_PA_cff::name, makeGlobalPositionRcd_cfg::tag, and ApeEstimator_cff::width.
bool SmartSelectionMonitor::fillHisto | ( | std::string | name, |
std::vector< std::string > | tags, | ||
double | valx, | ||
double | weight, | ||
bool | useBinWidth = false |
||
) |
Definition at line 34 of file SmartSelectionMonitor.cc.
References fillHisto(), mps_fire::i, Skims_PA_cff::name, triggerMatcherToHLTDebug_cfi::tags, and heppy_batch::val.
bool SmartSelectionMonitor::fillHisto | ( | std::string | name, |
std::vector< std::string > | tags, | ||
double | valx, | ||
double | valy, | ||
double | weight, | ||
bool | useBinWidth = false |
||
) |
Definition at line 65 of file SmartSelectionMonitor.cc.
References fillHisto(), mps_fire::i, Skims_PA_cff::name, and triggerMatcherToHLTDebug_cfi::tags.
bool SmartSelectionMonitor::fillHisto | ( | std::string | name, |
std::vector< std::string > | tags, | ||
double | valx, | ||
std::vector< double > | weights, | ||
bool | useBinWidth = false |
||
) |
Definition at line 42 of file SmartSelectionMonitor.cc.
References fillHisto(), mps_fire::i, Skims_PA_cff::name, triggerMatcherToHLTDebug_cfi::tags, heppy_batch::val, and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.
bool SmartSelectionMonitor::fillHisto | ( | std::string | name, |
std::vector< std::string > | tags, | ||
double | valx, | ||
double | valy, | ||
std::vector< double > | weights, | ||
bool | useBinWidth = false |
||
) |
Definition at line 73 of file SmartSelectionMonitor.cc.
References fillHisto(), mps_fire::i, Skims_PA_cff::name, triggerMatcherToHLTDebug_cfi::tags, and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.
bool SmartSelectionMonitor::fillProfile | ( | std::string | name, |
std::string | tag, | ||
double | valx, | ||
double | valy, | ||
double | weight | ||
) |
Definition at line 86 of file SmartSelectionMonitor.cc.
References getHisto(), h, Skims_PA_cff::name, and makeGlobalPositionRcd_cfg::tag.
Referenced by JetHTAnalyzer::analyze(), and fillProfile().
bool SmartSelectionMonitor::fillProfile | ( | std::string | name, |
std::vector< std::string > | tags, | ||
double | valx, | ||
double | valy, | ||
double | weight | ||
) |
Definition at line 94 of file SmartSelectionMonitor.cc.
References fillProfile(), mps_fire::i, Skims_PA_cff::name, and triggerMatcherToHLTDebug_cfi::tags.
bool SmartSelectionMonitor::fillProfile | ( | std::string | name, |
std::vector< std::string > | tags, | ||
double | valx, | ||
double | valy, | ||
std::vector< double > | weights | ||
) |
Definition at line 102 of file SmartSelectionMonitor.cc.
References fillProfile(), mps_fire::i, Skims_PA_cff::name, triggerMatcherToHLTDebug_cfi::tags, and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.
|
inline |
|
inline |
Definition at line 65 of file SmartSelectionMonitor.h.
References allMonitors_, hasBaseHisto(), hasTag(), timingPdfMaker::histo, genParticles_cff::map, and makeGlobalPositionRcd_cfg::tag.
Referenced by fillHisto(), and fillProfile().
|
inline |
Definition at line 31 of file SmartSelectionMonitor.h.
References allMonitors_, and timingPdfMaker::histo.
Referenced by addHistogram(), getHisto(), and hasTag().
|
inline |
Definition at line 38 of file SmartSelectionMonitor.h.
References newFWLiteAna::base, h, genParticles_cff::map, Skims_PA_cff::name, and makeGlobalPositionRcd_cfg::tag.
Referenced by getHisto(), and hasTag().
|
inline |
Definition at line 57 of file SmartSelectionMonitor.h.
References allMonitors_, hasBaseHisto(), hasTag(), timingPdfMaker::histo, genParticles_cff::map, and makeGlobalPositionRcd_cfg::tag.
void SmartSelectionMonitor::initMonitorForStep | ( | std::string | tag | ) |
|
inline |
Definition at line 104 of file SmartSelectionMonitor.h.
References allMonitors_, h, genParticles_cff::map, and w().
|
inline |
Definition at line 75 of file SmartSelectionMonitor.h.
References allMonitors_, h, and genParticles_cff::map.
Referenced by JetHTAnalyzer::endJob().
|
private |
Definition at line 153 of file SmartSelectionMonitor.h.
Referenced by addHistogram(), getAllMonitors(), getHisto(), hasBaseHisto(), hasTag(), Scale(), and Write().