Utilities for Ecal Monitor Client. More...
#include <UtilsClient.h>
Static Public Member Functions | |
static bool | getBinQuality (const MonitorElement *me, const int ix, const int iy) |
Returns true if the bin quality is good or masked. More... | |
static bool | getBinStatistics (TH1 *histo, const int ix, const int iy, float &num, float &mean, float &rms, float minEntries=1.) |
Returns true if the bin contains good statistical data. More... | |
static bool | getBinStatus (const MonitorElement *me, const int ix, const int iy) |
Returns true if the bin status is red/dark red. More... | |
static int | getFirstNonEmptyChannel (const TProfile2D *histo) |
Find the first non empty bin. More... | |
template<class T > | |
static T | getHisto (const MonitorElement *me, bool clone=false, T ret=0) |
Returns the histogram contained by the Monitor Element. More... | |
static void | maskBinContent (const MonitorElement *me, const int ix, const int iy) |
Mask the bin content. More... | |
static void | printBadChannels (const MonitorElement *me, TH1 *hi, bool positive_only=false) |
Print the bad channels. More... | |
Private Member Functions | |
UtilsClient () | |
~UtilsClient () | |
Utilities for Ecal Monitor Client.
Definition at line 22 of file UtilsClient.h.
|
inlineprivate |
Definition at line 81 of file UtilsClient.h.
|
inlineprivate |
Definition at line 82 of file UtilsClient.h.
|
static |
Returns true if the bin quality is good or masked.
me | input histogram |
(ix,iy) | input histogram's bins |
Definition at line 201 of file UtilsClient.cc.
References MonitorElement::getBinContent().
|
static |
Returns true if the bin contains good statistical data.
histo | input ROOT histogram |
(ix,iy) | input histogram's bin |
num | bin's entries |
mean | bins' mean |
rms | bin's rms |
Definition at line 74 of file UtilsClient.cc.
References newFWLiteAna::bin, GetRecoTauVFromDQM_MC_cff::cl, timingPdfMaker::histo, NULL, python.connectstrParser::o, AlCaHLTBitMon_ParallelJobs::p, p2, and mathSSE::sqrt().
Referenced by EBSummaryClient::analyze(), EESummaryClient::analyze(), EELedClient::analyze(), EBLaserClient::analyze(), EBTimingClient::analyze(), EELaserClient::analyze(), EBTestPulseClient::analyze(), EEPedestalOnlineClient::analyze(), EBPedestalOnlineClient::analyze(), EETestPulseClient::analyze(), EBPedestalClient::analyze(), EEPedestalClient::analyze(), and EETimingClient::analyze().
|
static |
Returns true if the bin status is red/dark red.
me | input histogram |
(ix,iy) | input histogram's bins |
Definition at line 216 of file UtilsClient.cc.
References MonitorElement::getBinContent().
|
static |
Find the first non empty bin.
static int getFirstNonEmptyChannel( const TProfile2D* histo )
histo | input ROOT histogram |
Definition at line 246 of file UtilsClient.cc.
Referenced by EBLaserClient::analyze(), EELedClient::analyze(), EELaserClient::analyze(), EBTestPulseClient::analyze(), and EETestPulseClient::analyze().
|
inlinestatic |
Returns the histogram contained by the Monitor Element.
me | Monitor Element |
clone | (boolean) if true clone the histogram |
ret | in case of clonation delete the histogram first |
Definition at line 89 of file UtilsClient.h.
References MonitorElement::getName(), run_regression::ret, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by EBSummaryClient::analyze(), EESummaryClient::analyze(), EBStatusFlagsClient::analyze(), EELaserClient::analyze(), EELedClient::analyze(), EEPedestalOnlineClient::analyze(), EEPedestalClient::analyze(), EECosmicClient::analyze(), EETestPulseClient::analyze(), EEIntegrityClient::analyze(), EBIntegrityClient::analyze(), EBTestPulseClient::analyze(), EBPedestalClient::analyze(), EEOccupancyClient::analyze(), EBClusterClient::analyze(), EEClusterClient::analyze(), EETriggerTowerClient::analyze(), and EETimingClient::analyze().
|
static |
Mask the bin content.
static void maskBinContent( const MonitorElement* me, const int ix, const int iy )
histo | input histogram |
(ix,iy) | input histogram's bins |
Definition at line 231 of file UtilsClient.cc.
References MonitorElement::getBinContent().
Referenced by EBSummaryClient::analyze(), EESummaryClient::analyze(), EBLaserClient::analyze(), EELaserClient::analyze(), EELedClient::analyze(), EBTimingClient::analyze(), EBIntegrityClient::analyze(), EBPedestalOnlineClient::analyze(), EETestPulseClient::analyze(), EBPedestalClient::analyze(), EEPedestalOnlineClient::analyze(), EBTestPulseClient::analyze(), EEIntegrityClient::analyze(), EEPedestalClient::analyze(), and EETimingClient::analyze().
|
static |
Print the bad channels.
me | monitor element |
hi | histogram |
positive_only | enable logging of channels with positive content, only |
Definition at line 14 of file UtilsClient.cc.
References gather_cfg::cout, MonitorElement::getBinContent(), MonitorElement::getName(), MonitorElement::getNbinsX(), MonitorElement::getNbinsY(), and indexGen::title.