![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
The CscCalibMonToolBase class.
More...
#include <CscCalibMonToolBase.h>
|
struct | HistCollection |
| Contains an array with data on a per-channel basis, as well as various histograms that give different views of the data in the array. More...
|
|
struct | ProcSetupInfo |
|
|
enum | Interval_t {
file = 0,
eventsBlock,
lumiBlock,
lowStat,
medStat,
higStat,
run,
fill,
all
} |
| An enumeration describing how detailed a particular monitoring object is. More...
|
|
enum | MgmtAttr_t { ATTRIB_MANAGED = 0,
ATTRIB_UNMANAGED = 1,
ATTRIB_X_VS_LB = 2
} |
| An enumeration describing how the class handles the histogram. More...
|
|
|
| CscCalibMonToolBase (const std::string &type, const std::string &name, const IInterface *parent) |
| constructor More...
|
|
| ~CscCalibMonToolBase () |
|
virtual StatusCode | initialize () |
| initializes services, tools, etc. More...
|
|
virtual StatusCode | finalize () |
| deletes private members More...
|
|
virtual StatusCode | bookHistograms () |
| Standard function for a ManagedMonitorToolBase . More...
|
|
virtual StatusCode | fillHistograms () |
| Standard function for a ManagedMonitorToolBase . More...
|
|
virtual StatusCode | procHistograms () |
| At end of run this processes the calibration results and fills the histograms. More...
|
|
virtual StatusCode | checkHists (bool fromFinalise) |
| Standard function for a ManagedMonitorToolBase . More...
|
|
virtual StreamNameFcn * | streamNameFunction () |
| Returns the function object that converts logical paramters into a physical stream name. More...
|
|
virtual StatusCode | bookHists () |
| Calls bookHists( true, true, true ) and initializes lumiBlock and run numbers. More...
|
|
virtual StatusCode | fillHists () |
| Calls fillHists( bool, bool, bool ); if an eventBlock,lumiBlock, or run has turned over, calls procHists( bool, bool, bool ) and bookHists( bool, bool, bool ). More...
|
|
virtual StatusCode | finalHists () |
| Calls procHists( true, true, true ). More...
|
|
virtual StatusCode | convertLWHists () |
| Deal with the LW histograms. More...
|
|
virtual StatusCode | bookHistogramsRecurrent () |
| An inheriting class should either override this function, bookHists() or bookHistograms(). More...
|
|
virtual void | setMonManager (AthenaMonManager *manager) |
| Takes a pointer to a managing object to get information from it when needed. More...
|
|
virtual StatusCode | regHist (TH1 *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="") |
| Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram. More...
|
|
virtual StatusCode | regHist (TH1 *h, const MonGroup &group) |
| Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram. More...
|
|
virtual StatusCode | regHist (LWHist *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="") |
| Support for lightweight histograms: More...
|
|
virtual StatusCode | regHist (LWHist *h, const MonGroup &group) |
|
virtual StatusCode | getHist (TH1 *&h, const std::string &hName, const std::string &system, Interval_t interval) |
| Returns a TH1 via the pointer passed as the first argument. More...
|
|
virtual StatusCode | getHist (TH1 *&h, const std::string &hName, const MonGroup &group) |
| Returns a TH1 via the pointer passed as the first argument. More...
|
|
virtual StatusCode | getHist (TH2 *&h, const std::string &hName, const std::string &system, Interval_t interval) |
| Returns a TH2 via the pointer passed as the first argument. More...
|
|
virtual StatusCode | getHist (TH2 *&h, const std::string &hName, const MonGroup &group) |
| Returns a TH2 via the pointer passed as the first argument. More...
|
|
virtual StatusCode | getHist (LWHist *&h, const std::string &hName, const std::string &system, Interval_t interval) |
|
virtual StatusCode | getHist (LWHist *&h, const std::string &hName, const MonGroup &group) |
|
virtual StatusCode | regEfficiency (TEfficiency *e, const MonGroup &group) |
| Registers a TEfficiency to be included in the output stream using logical parameters that describe the plot. More...
|
|
virtual StatusCode | regGraph (TGraph *g, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="") |
| Registers a TGraph to be included in the output stream using logical parameters that describe the graph. More...
|
|
virtual StatusCode | regGraph (TGraph *g, const MonGroup &group) |
| Registers a TGraph to be included in the output stream using logical parameters that describe the graph. More...
|
|
virtual StatusCode | regTree (TTree *t, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="") |
| Registers a TTree to be included in the output stream using logical parameters that describe it. More...
|
|
virtual StatusCode | regTree (TTree *t, const MonGroup &group) |
| Registers a TTree to be included in the output stream using logical parameters that describe it. More...
|
|
virtual StatusCode | deregHist (LWHist *h) |
|
virtual StatusCode | deregHist (TH1 *h) |
| De-registers a TH1 from the THistSvc, but does NOT delete the object. More...
|
|
virtual StatusCode | writeAndDelete (TH1 *h, const MonGroup &group) |
| Write out histogram and delete it. More...
|
|
virtual StatusCode | deregGraph (TGraph *g) |
| De-registers a TGraph from the THistSvc, but does NOT delete the object. More...
|
|
virtual StatusCode | deregObject (const std::string &objName, const std::string &system, Interval_t interval) |
| De-registers a TObject from the THistSvc, but does NOT delete the object. More...
|
|
virtual StatusCode | deregObject (const std::string &objName, const MonGroup &group) |
| De-registers a TObject from the THistSvc, but does NOT delete the object. More...
|
|
virtual StatusCode | setupOutputStreams (std::vector< std::string > Mapping=std::vector< std::string >()) |
| This implementation does nothing—streams in this class should be managed by the AthenaMonManager. More...
|
|
virtual StatusCode | runStat () |
| This implementation does nothing; equivalent functionality may be provided by procHists( true, true, true ). More...
|
|
virtual bool | preSelector () |
|
virtual float | lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Average mu, i.e. More...
|
|
virtual float | lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Instantaneous number of interactions, i.e. More...
|
|
virtual float | lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1) More...
|
|
virtual float | lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Instantaneous luminosity. More...
|
|
virtual double | lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Luminosity block time (in seconds) More...
|
|
virtual float | lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Average luminosity livefraction. More...
|
|
virtual float | livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Livefraction per bunch crossing ID. More...
|
|
virtual double | lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Average Integrated Luminosity Live Fraction. More...
|
|
| MMTB_DEPRECATED (newLowStatInterval) |
|
| MMTB_DEPRECATED (newMedStatInterval) |
|
| MMTB_DEPRECATED (newHigStatInterval) |
|
| MMTB_DEPRECATED (newLowStat) |
|
| MMTB_DEPRECATED (newLumiBlock) |
|
| MMTB_DEPRECATED (newRun) |
|
| MMTB_DEPRECATED (newEventsBlock) |
|
| MMTB_DEPRECATED (endOfEventsBlock) |
|
| MMTB_DEPRECATED (endOfLowStat) |
|
| MMTB_DEPRECATED (endOfLumiBlock) |
|
| MMTB_DEPRECATED (endOfRun) |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
virtual StatusCode | bookHistCollection (HistCollection *histCollection, std::string dataTypeName, std::string dataTypeTitle, std::string categoryName, std::string categoryTitle, std::string axisLabel, int numBins, float lowBound, float highBound, std::string parDir="", uint16_t toSkip=0) |
| Initializes the histograms in a histCollection and books them. More...
|
|
virtual StatusCode | bookLayHists (std::string histTypeDir, std::string parTypeDir, std::vector< TH1F * > &vector, std::string namePrefix, std::string titlePrefix, std::string xaxis, std::string yaxis, bool chanView=true, bool ignoreY=false, unsigned int numBins=100, float lowBound=0, float highbound=100) |
| Books a vector of histograms where each one corresponds to a layer of the CSC secbers. More...
|
|
virtual StatusCode | bookChamHists (std::string histTypeDir, std::string parTypeDir, std::vector< TH1F * > &histVector, std::string namePrefix, std::string titlePrefix, std::string xaxis="", std::string yaxis="", bool chanView=true, bool ignoreY=false, unsigned int numBins=100, float lowBound=0, float highbound=100) |
| Books a vector of histograms where each one corresponds to a secber of the CSC secbers. More...
|
|
virtual StatusCode | handleParameter (const CscCalibResultCollection *parVals) |
| Should be written by user in derived class. More...
|
|
virtual StatusCode | procParameter (const CscCalibResultCollection *parVals, ProcSetupInfo *simpleSet) |
| Processors a parameter type. More...
|
|
virtual StatusCode | copyDataToHists (HistCollection *histCollection) |
| Fills the histograms in the histCollection based on the data in the std::vector in the HistCollection. More...
|
|
virtual StatusCode | postProc () |
| Run after handleParameter. More...
|
|
virtual int | getLayIndex (int measuresPhi, int stationEta, int sector, int layer) |
| produces a unique number for every layer in the detector More...
|
|
virtual int | getChamIndex (int measuresPhi, int stationEta, int sector) |
| Produces a unique number for every secber in the detector. More...
|
|
virtual int | getSector (int stationPhi, int stationSize) |
| Produces a sector number from the phi and size of a station. More...
|
|
std::string | getEndCap (int eta) |
| Gets the letter endcap (A or C) for a given eta index (1,-1) More...
|
|
std::string | getGeoPath (int eta=-9999, int sector=-9999, int wireLayer=-9999, int measuresPhi=-9999, int channel=-9999) |
| getGeoPath creates a directory structure for a histogram based upon where it is in the CSC geometry. More...
|
|
std::string | getFullPath (const std::string &geoPath, const std::string &histTypeDir, const std::string &parTypeDir) |
| Geo path creates a directory structure for a histogram based upon its geoPath, the hist type dir (spectrum of values, per-channel values, etc), and the parTypeDir (pedestal, etc). More...
|
|
StatusCode | regManagedHistograms (std::vector< MgmtParams< TH1 > > &templateHistograms) |
|
StatusCode | regManagedGraphs (std::vector< MgmtParams< TGraph > > &templateGraphs) |
|
StatusCode | regManagedTrees (std::vector< MgmtParams< TTree > > &templateTrees) |
|
StatusCode | regManagedLWHistograms (std::vector< MgmtParams< LWHist > > &templateLWHistograms) |
|
StatusCode | regManagedEfficiencies (std::vector< MgmtParams< TEfficiency > > &templateEfficiencies) |
|
StatusCode | parseList (const std::string &, std::vector< std::string > &) |
|
void | updateTriggersForGroups (std::vector< std::string > &) |
|
StatusCode | registerMetadata (const std::string &streamName, const std::string &hName, const MonGroup &group) |
|
StatusCode | THistSvc_deReg_fixTGraph (TFile *file, TGraph *theGraph, std::string &directoryName) |
| Fixes THistSvc->deReg(obj) when obj is TGraph instance. More...
|
|
unsigned int | get_nEvents () const |
|
long | get_procNEventsProp () const |
|
virtual bool | trigChainsArePassed (std::vector< std::string > &) |
|
virtual StreamNameFcn * | getNewStreamNameFcn () const |
|
bool | newLowStatIntervalFlag () const |
| Flag functions allowing clients to determine when to book new and process old histograms; values are updated by fillHists() based on counting lumiBlocks, and are correctly set when fillHistograms(), bookHistograms() and procHistograms() are called. More...
|
|
bool | newMedStatIntervalFlag () const |
|
bool | newHigStatIntervalFlag () const |
|
bool | newLowStatFlag () const |
|
bool | newLumiBlockFlag () const |
|
bool | newRunFlag () const |
|
bool | newEventsBlockFlag () const |
|
bool | endOfEventsBlockFlag () const |
|
bool | endOfLowStatFlag () const |
|
bool | endOfLumiBlockFlag () const |
|
bool | endOfRunFlag () const |
|
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution More...
|
|
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
|
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. More...
|
|
|
unsigned int | m_maxHashId {} |
|
unsigned int | m_maxChamId {} |
|
unsigned int | m_numBad {} |
|
unsigned int | m_expectedChamberLayer {} |
|
bool | m_makeHashHists {} |
| Data output options. More...
|
|
bool | m_makeAllChan1dHists {} |
|
bool | m_makeAllChan2dHists {} |
|
bool | m_makeLayHists {} |
|
bool | m_makeLaySummHists {} |
|
bool | m_makeChamProfs {} |
|
bool | m_makeChamSummHists {} |
|
bool | m_makeChamHists {} |
|
bool | m_doAllDetailed {} |
|
bool | m_doBadDetailed {} |
|
int | m_maxDetailedChannels {} |
| To keep track of channels that should have more data printed to root file. More...
|
|
bool * | m_detailedHashIds {} |
|
bool | m_onlyExpectPrecisionHashIds {} |
| Hash Ids one would expect to be in calibration data. More...
|
|
std::set< int > | m_expectedHashIdsAll |
|
std::set< int > | m_expectedHashIdsPrec |
|
std::string | m_hashName |
| Naming info. More...
|
|
std::string | m_hashTitle |
|
std::string | m_allChan1dName |
|
std::string | m_allChan1dTitle |
|
std::string | m_allChan2dName |
|
std::string | m_allChan2dTitle |
|
std::string | m_chamProfName |
|
std::string | m_chamProfTitle |
|
std::string | m_layHistName |
|
std::string | m_layHistTitle |
|
std::string | m_chamSummHistName |
|
std::string | m_chamSummHistTitle |
|
std::string | m_chamHistName |
|
std::string | m_chamHistTitle |
|
std::string | m_laySummHistName |
|
std::string | m_laySummHistTitle |
|
int | m_histCol {} |
| Hist colors. More...
|
|
int | m_histColAlert {} |
|
std::string | m_generic_path_csccalibmonitoring |
| Path of histograms. More...
|
|
std::string | m_hashPath |
|
std::string | m_allChan2dPath |
|
std::string | m_chamProfPath |
|
std::string | m_layHistPath |
|
std::string | m_chamSummHistPath |
|
std::string | m_laySummHistPath |
|
DataVector< MonGroup > * | m_monGroupVec {} |
| Keeps track of MonGroups. More...
|
|
std::map< std::string, MonGroup * > | m_monGroupMap |
|
std::string | m_calibResultKey |
| Calibration result storegate key. More...
|
|
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
|
SG::ReadCondHandleKey< CscCondDbData > | m_readKey {this, "ReadKey", "CscCondDbData", "Key of CscCondDbData"} |
| Access to COOL database. More...
|
|
bool | m_doStatDb {} |
|
HistCollection * | m_statDbColl {} |
|
std::map< Interval_t, std::vector< MgmtParams< TH1 > > > | m_templateHistograms |
|
std::map< Interval_t, std::vector< MgmtParams< TGraph > > > | m_templateGraphs |
|
std::map< Interval_t, std::vector< MgmtParams< TTree > > > | m_templateTrees |
|
std::map< Interval_t, std::vector< MgmtParams< LWHist > > > | m_templateLWHistograms |
|
std::map< Interval_t, std::vector< MgmtParams< TEfficiency > > > | m_templateEfficiencies |
|
std::vector< std::string > | m_vTrigChainNames |
|
std::vector< std::string > | m_vTrigGroupNames |
|
MDMap_t | m_metadataMap |
|
std::set< LWHist * > | m_lwhists |
|
AthenaMonManager * | m_manager |
|
std::string | m_managerNameProp |
|
std::string | m_fileKey |
|
std::string | m_dataTypeStr |
|
std::string | m_environmentStr |
|
unsigned int | m_detailLevel |
|
AthenaMonManager::DataType_t | m_dataType |
|
AthenaMonManager::Environment_t | m_environment |
|
StreamNameFcn * | m_streamNameFcn |
|
ServiceHandle< ITHistSvc > | m_THistSvc |
|
PublicToolHandle< Trig::ITrigDecisionTool > | m_trigDecTool {this, "TrigDecisionTool",""} |
|
PublicToolHandle< ITriggerTranslatorTool > | m_trigTranslator {this,"TriggerTranslatorTool",""} |
|
ToolHandleArray< IDQFilterTool > | m_DQFilterTools {this,"FilterTools",{}} |
|
long | m_procNEventsProp |
|
std::string | m_path |
|
long | m_preScaleProp |
|
std::string | m_triggerChainProp |
|
std::string | m_triggerGroupProp |
|
bool | m_useTrigger |
|
unsigned int | m_lastLumiBlock |
|
unsigned int | m_lastRun |
|
int | m_lastLowStatInterval |
|
int | m_lastMedStatInterval |
|
int | m_lastHigStatInterval |
|
unsigned int | m_nEvents |
|
unsigned int | m_nEventsIgnoreTrigger |
|
unsigned int | m_nLumiBlocks |
|
bool | m_haveClearedLastEventBlock |
|
The CscCalibMonToolBase class.
This class is designed to be the base for all classes that do monitoring of CSC calibration constants that are to be stored in COOL. This base class contains the basic operations to compare the constants to what was previously in the COOL database.
It is designed to be a parent class. A derived class will define the exact parameters that will be compared to COOL, as well as do any futher monitoring.
- Author
- lampe.nosp@m.n@ph.nosp@m.ysics.nosp@m..ari.nosp@m.zona..nosp@m.edu
Definition at line 55 of file CscCalibMonToolBase.h.
◆ MDMap_t
◆ StoreGateSvc_t
◆ Interval_t
An enumeration describing how detailed a particular monitoring object is.
summary: used to summarize the state of the system
runstat: same as summary
shift: used to flag potential problems
expert: essential for diagnosing problems identified by shift-level objects
debug: useful for standalone debugging, but not for routine monitoring; not essential for diagnosing problems during normal running
transient: too detailed to ever be written; always summarized by the user by means of another object An enumeration describing the interval over which a particular monitoring object is filled (i.e., interval over which the method Fill(...) is called). This information may be stored with the monitoring object if an application is only able to partially fill the object (i.e., a job sees only part of a run or fill). This information may be ignored in some running Environments. The 'fill' interval corresponds to a fill of the LHC. The 'all' interval corresponds to all available data. The 'lumiBlock' and 'fill' intervals are only valid for the 'collisions' DataType_t.
Enumerator |
---|
file | |
eventsBlock | |
lumiBlock | |
lowStat | |
medStat | |
higStat | |
run | |
fill | |
all | |
Definition at line 114 of file ManagedMonitorToolBase.h.
◆ MgmtAttr_t
An enumeration describing how the class handles the histogram.
attrib_unmanaged: histograms with this attribute will not be rebooked automatically and must be managed by the user code.
attrib_x_is_lb: indicates that the x-axis of the histogram is the luminosity block number and that the histogram should be rebooked as necessary if the current LB exceeds the range.
Enumerator |
---|
ATTRIB_MANAGED | |
ATTRIB_UNMANAGED | |
ATTRIB_X_VS_LB | |
Definition at line 131 of file ManagedMonitorToolBase.h.
◆ CscCalibMonToolBase()
CscCalibMonToolBase::CscCalibMonToolBase |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~CscCalibMonToolBase()
CscCalibMonToolBase::~CscCalibMonToolBase |
( |
| ) |
|
|
inline |
◆ bookChamHists()
StatusCode CscCalibMonToolBase::bookChamHists |
( |
std::string |
histTypeDir, |
|
|
std::string |
parTypeDir, |
|
|
std::vector< TH1F * > & |
histVector, |
|
|
std::string |
namePrefix, |
|
|
std::string |
titlePrefix, |
|
|
std::string |
xaxis = "" , |
|
|
std::string |
yaxis = "" , |
|
|
bool |
chanView = true , |
|
|
bool |
ignoreY = false , |
|
|
unsigned int |
numBins = 100 , |
|
|
float |
lowBound = 0 , |
|
|
float |
highbound = 100 |
|
) |
| |
|
protectedvirtual |
Books a vector of histograms where each one corresponds to a secber of the CSC secbers.
- Parameters
-
histTypeDir | The subdirectory where the histogram type should be stored (e.g "layerOverview") |
parTypeDir | The subdirectory where the parameter type (e.g ped, noise,etc) |
namePrefix | Something to put in front of the name. Rest is based on secber. |
titlePrefix | String to append to the front of the title. Rest is based on secber. |
xaxis | Title for x-axis. |
yaxis | Title for y-axis. |
chanView | If true, x-axis num-bins will be number of channels of a given layer. numbins, highBound, and lowBound will be ignored. |
ignoreY | Do not initialize histograms from the transverse direction. |
numBins | number of bins for each histoto |
lowBound | lower bound for histogram x-axis |
highBound | higher bound for histogram x-axis |
Definition at line 546 of file CscCalibMonToolBase.cxx.
554 static const int chanViewNBinsX = 800;
555 static const double chanViewLowBoundX = .5;
556 static const double chanViewHighBoundX = 800.5;
558 static const int chanViewNBinsY = 200;
559 static const double chanViewLowBoundY = .5;
560 static const double chanViewHighBoundY = 200.5;
567 std::string orientationName =
"prec";
568 std::string orientationTitle =
"Precision Direction";
570 int numHists = (ignoreY) ? 32 : 64;
571 histVector.resize(numHists,
nullptr);
573 const std::vector<Identifier> &
ids =
m_idHelperSvc->cscIdHelper().idVector();
575 for(
const auto & thisChamberId:
ids)
578 m_idHelperSvc->cscIdHelper().get_module_hash(thisChamberId,chamHash);
579 ATH_MSG_DEBUG(
"Booking histograms for chamber with hash " << (
int)chamHash );
581 stationSize =
m_idHelperSvc->cscIdHelper().stationName(thisChamberId);
586 for(
unsigned int orientationItr = 0; orientationItr < 2; orientationItr++)
588 if(orientationItr ==1)
592 orientationName =
"trans";
593 orientationTitle =
"Transverse Direction";
595 numBins = chanViewNBinsY;
602 orientationName =
"prec";
603 orientationTitle =
"Precision Direction";
605 numBins = chanViewNBinsX;
611 std::stringstream nameStream;
612 nameStream.setf(std::ios::right, std::ios::adjustfield);
613 nameStream << namePrefix <<
"_" << orientationName <<
"_eta_"
614 << ((
stationEta == 1) ?
"1" :
"0") <<
"_sector_"
615 << std::setw(2) << std::setfill(
'0')
618 std::stringstream titleStream;
620 titleStream << titlePrefix <<
", " << orientationTitle
622 <<
", Sector " << sector;
624 TH1F*
hist =
new TH1F(nameStream.str().c_str(), titleStream.str().c_str()
626 hist->GetXaxis()->SetTitle(xaxis.c_str());
627 hist->GetYaxis()->SetTitle(yaxis.c_str());
633 <<
hist->GetName() <<
" and chamIndex " << chamIndex );
635 histVector[chamIndex] =
hist;
647 return StatusCode::SUCCESS;
◆ bookHistCollection()
StatusCode CscCalibMonToolBase::bookHistCollection |
( |
HistCollection * |
histCollection, |
|
|
std::string |
dataTypeName, |
|
|
std::string |
dataTypeTitle, |
|
|
std::string |
categoryName, |
|
|
std::string |
categoryTitle, |
|
|
std::string |
axisLabel, |
|
|
int |
numBins, |
|
|
float |
lowBound, |
|
|
float |
highBound, |
|
|
std::string |
parDir = "" , |
|
|
uint16_t |
toSkip = 0 |
|
) |
| |
|
protectedvirtual |
Initializes the histograms in a histCollection and books them.
This and the other booking function are used to enforce a central naming convention to the histograms. The Name
parameters are strings that will be input into the names of the historams, and the Title
parameters into the titles.
- Parameters
-
dataTypeName | indicates the dataType, like pedestal, noise, etc. |
dataTypeTitle | indicates the dataType, like pedestal,noise, etc. |
categoryName | indicates a category. Useful to specify new or COOL data. |
categoryTitle | indicates a category. Useful to specify new or COOL data. |
axisLabel | What the axis corresponding to the data type should be named. The other axis is determined depending on histogram type. |
numBins | For those histograms whose x-axis is the datatype, and not channels or similar. |
lowBound | For those histograms whose x-axis is the datatype, and not channels or similar. |
highBound | For those histograms whose x-axis is the datatype, and not channels or similar. |
parDir | is a parDirectory to store the resulting histograms in. |
toSkip | is a bit word that specifies when to allow certain histograms |
Definition at line 139 of file CscCalibMonToolBase.cxx.
157 std::string endDir =
"";
159 endDir =
"/" + parDir;
162 std::string allChambersDirectory =
"/GeneralCscHists";
176 std::string nameStart = std::move(dataTypeName) ;
177 if(categoryName !=
"" )
178 nameStart +=
"_" + categoryName;
180 std::string titleStart = categoryTitle +
" " + dataTypeTitle;
181 std::string yaxis=
"", xaxis =
"";
183 ATH_MSG_DEBUG(
"In bookHistCollection for " << nameStart <<
" series." );
187 for(
int measuresPhi =0; measuresPhi <=1; measuresPhi++) {
188 std::string
name =
"h_" + nameStart+
"_" + (measuresPhi ?
"phi" :
"eta") +
"_spectrum" ;
189 std::string
title = titleStart +
" " + (measuresPhi ?
"Phi Strips" :
"Eta Strips") +
" spectrum";
191 specHist->GetYaxis()->SetTitle(
"Counts");
192 specHist->GetXaxis()->SetTitle(axisLabel.c_str());
214 std::string
title = categoryTitle +
" " + dataTypeTitle +
" " +
m_hashTitle;
216 xaxis =
"Channel Hash ID";
218 hashHist->GetXaxis()->SetTitle(xaxis.c_str());
219 hashHist->GetYaxis()->SetTitle(yaxis.c_str());
225 if (!
monGroup.regHist(hashHist).isSuccess())
246 TH1F * allChan1dHistX =
new TH1F((
name+
"X").c_str(), (
title+
" - Precision strips").c_str(),
248 allChan1dHistX->GetXaxis()->SetTitle(xaxis.c_str());
249 allChan1dHistX->GetYaxis()->SetTitle(yaxis.c_str());
254 if (!
monGroup.regHist(allChan1dHistX).isSuccess())
264 TH1F * allChan1dHistY =
new TH1F((
name+
"Y").c_str(), (
title +
" - Transverse strips").c_str(),
266 allChan1dHistY->GetXaxis()->SetTitle(xaxis.c_str());
267 allChan1dHistY->GetYaxis()->SetTitle(yaxis.c_str());
270 if (!
monGroup.regHist(allChan1dHistY).isSuccess())
288 yaxis =
"Sector/Layer";
289 xaxis =
"Strip Number (Negative for Transverse Strips)";
315 nxbins,nxmin,nxmax,nybins,nymin,nymax);
316 allChan2dHist->GetXaxis()->SetTitle(xaxis.c_str());
317 allChan2dHist->GetYaxis()->SetTitle(yaxis.c_str());
322 if (!
monGroup.regHist(allChan2dHist).isSuccess())
336 yaxis =
"Average " + axisLabel;
337 xaxis =
"Sector * eta";
340 numSectors + 1, -16, 17);
341 chamProf->GetXaxis()->SetTitle(xaxis.c_str());
342 chamProf->GetYaxis()->SetTitle(yaxis.c_str());
347 if (!
monGroup.regHist(chamProf).isSuccess())
362 ATH_MSG_DEBUG(
"Registering set with prefix" << namePrefix );
367 ATH_MSG_ERROR(
"failed to register " << namePrefix <<
" (layer histograms) " );
379 ATH_MSG_DEBUG(
"Registering set with prefix" << namePrefix );
385 <<
" (chamber summary histograms) " );
397 ATH_MSG_DEBUG(
"Registering set with prefix" << namePrefix );
403 <<
" (chamber summary histograms) " );
415 ATH_MSG_DEBUG(
"Registering set with prefix" << namePrefix );
418 namePrefix, titlePrefix, xaxis,yaxis,
421 ATH_MSG_ERROR(
" Failed to register " << namePrefix <<
" (Layer summary hists) " );
426 return StatusCode::SUCCESS;
428 return StatusCode::FAILURE;
◆ bookHistograms()
StatusCode CscCalibMonToolBase::bookHistograms |
( |
| ) |
|
|
virtual |
Standard function for a ManagedMonitorToolBase
.
This doesn't do anything. Meant to be overwritten in a derived class
Reimplemented from ManagedMonitorToolBase.
Reimplemented in CscCalibMonToolSlope, and CscCalibMonToolPed.
Definition at line 650 of file CscCalibMonToolBase.cxx.
665 std::string statDbName =
"stat_cool";
666 std::string statDbTitle =
"Status Word Value From COOL";
667 std::string statDbAxisLabel =
"Stat Word Value";
668 unsigned int statDbNumBins = 8;
669 float statDbMin = -0.5;
670 float statDbMax = 7.5;
671 std::string statDbSubDir =
"StatCool";
674 statDbAxisLabel, statDbNumBins, statDbMin, statDbMax, statDbSubDir);
680 for(
unsigned int chanItr = 0; chanItr <=
m_maxHashId; chanItr++){
683 if(!readCdo->readChannelStatus(chanItr, statWord).isSuccess()){
696 return StatusCode::SUCCESS;
◆ bookHistogramsRecurrent()
StatusCode ManagedMonitorToolBase::bookHistogramsRecurrent |
( |
| ) |
|
|
virtualinherited |
An inheriting class should either override this function, bookHists() or bookHistograms().
Reimplemented in SCTHitEffMonTool, SCTHitsNoiseMonTool, SCTErrMonTool, SCTTracksMonTool, SCTLorentzMonTool, AFPHitsMonitorTool, InDetGlobalBCMTool, DQTDataFlowMonTool, RpcLv1RawDataEfficiency, LVL1::CalorimeterL1CaloMon, LVL1::L1CaloCTPMon, LVL1::L1CaloLevel2Mon, LVL1::L1CaloPMTScoresMon, MdtRawDataValAlg, InDetGlobalTrackMonTool, InDetGlobalHitsMonTool, TRT_Monitoring_Tool, LVL1::L1CaloL1TopoMon, CaloTowerVecMon, DQTGlobalWZFinderTool, InDetGlobalTopBottomMonTool, DataQualityFatherMonTool, InDetGlobalNoiseOccupancyMonTool, RpcLv1RawDataValAlg, CaloClusterVecMon, RpcLv1RawDataSectorLogic, CaloTransverseBalanceVecMon, InDetGlobalBeamSpotMonTool, MdtVsTgcRawDataValAlg, MdtVsRpcRawDataValAlg, InDetGlobalErrorMonTool, ManagedMonitorToolTest, InDetGlobalPrimaryVertexMonTool, HIMonitoringEventShapeTool, AFPTechnicalMonitorTool, HIMonitoringZdcTool, HIMonitoringElectronsTool, HIMonitoringPhotonsTool, and HIMonitoringMuonsTool.
Definition at line 1394 of file ManagedMonitorToolBase.cxx.
1401 return StatusCode::SUCCESS;
◆ bookHists()
StatusCode ManagedMonitorToolBase::bookHists |
( |
| ) |
|
|
virtualinherited |
◆ bookLayHists()
StatusCode CscCalibMonToolBase::bookLayHists |
( |
std::string |
histTypeDir, |
|
|
std::string |
parTypeDir, |
|
|
std::vector< TH1F * > & |
vector, |
|
|
std::string |
namePrefix, |
|
|
std::string |
titlePrefix, |
|
|
std::string |
xaxis, |
|
|
std::string |
yaxis, |
|
|
bool |
chanView = true , |
|
|
bool |
ignoreY = false , |
|
|
unsigned int |
numBins = 100 , |
|
|
float |
lowBound = 0 , |
|
|
float |
highbound = 100 |
|
) |
| |
|
protectedvirtual |
Books a vector of histograms where each one corresponds to a layer of the CSC secbers.
- Parameters
-
histTypeDir | The subdirectory where the histogram type should be stored (e.g "layerOverview") |
parTypeDir | The subdirectory where the parameter type (e.g ped, noise,etc) |
namePrefix | Something to put in front of the name. Rest is based on layer. |
titlePrefix | String to append to the front of the title. Rest is based on layer. |
xaxis | Title for x-axis. |
yaxis | Title for y-axis. |
chanView | If true, x-axis num-bins will be number of channels of a given layer. numbins, highBound, and lowBound will be ignored. |
ignoreY | Do not initialize histograms from the transverse direction. |
numBins | number of bins for each histoto |
lowBound | lower bound for histogram x-axis |
highBound | higher bound for histogram x-axis |
Definition at line 431 of file CscCalibMonToolBase.cxx.
443 std::string orientationName =
"prec";
444 std::string orientationTitle =
"Precision Direction";
446 int numHists = 32 * ( (ignoreY) ? 4 : 8);
447 histVector.resize(numHists,
nullptr);
449 ATH_MSG_DEBUG(
"Allocated space for " << numHists <<
" histograms" );
451 const std::vector<Identifier> &
ids =
m_idHelperSvc->cscIdHelper().idVector();
452 for(
const auto & thisChamberId:
ids)
455 m_idHelperSvc->cscIdHelper().get_module_hash(thisChamberId,chamHash);
456 ATH_MSG_DEBUG(
"Booking histograms for chamber with hash " << (
int)chamHash );
458 stationSize =
m_idHelperSvc->cscIdHelper().stationName(thisChamberId);
463 for(
unsigned int orientationItr = 0; orientationItr < 2; orientationItr++)
465 if(orientationItr ==1)
475 orientationName =
"trans";
476 orientationTitle =
"Transverse Direction";
486 orientationName =
"prec";
487 orientationTitle =
"Precision Direction";
490 for(
unsigned int layItr = 1; layItr <= 4; layItr++)
493 <<
" With highbound/lowbound/nbins "
496 std::stringstream nameStream;
497 nameStream.setf(std::ios::right, std::ios::adjustfield);
498 nameStream << namePrefix;
499 nameStream <<
"_" << orientationName <<
"_eta_";
500 nameStream << ((
stationEta == 1) ?
"1" :
"0");
501 nameStream <<
"_sector_" << std::setw(2) << std::setfill(
'0') << sector;
502 nameStream <<
"_layer_" << layItr;
504 std::stringstream titleStream;
505 titleStream << titlePrefix <<
", " << orientationTitle;
506 titleStream <<
", Sector " << sector;
508 titleStream <<
", Layer " << layItr;
511 << titleStream.str() <<
"On orientation " << orientationItr <<
" With highbound/lowbound/nbins " <<
highBound <<
"/" <<
lowBound <<
"/" << numBins );
513 TH1F*
hist =
new TH1F(nameStream.str().c_str(), titleStream.str().c_str(),
515 hist->GetXaxis()->SetTitle(xaxis.c_str());
516 hist->GetYaxis()->SetTitle(yaxis.c_str());
530 <<
" with layIndex" << layIndex );
531 return StatusCode::FAILURE;
535 ATH_MSG_DEBUG(
"Succesfully registered histogram with layIndex "
536 << layIndex <<
" and name " <<
hist->GetName() );
537 histVector[layIndex] =
hist;
542 return StatusCode::SUCCESS;
◆ checkHists()
StatusCode CscCalibMonToolBase::checkHists |
( |
bool |
fromFinalise | ) |
|
|
virtual |
◆ convertLWHists()
StatusCode ManagedMonitorToolBase::convertLWHists |
( |
| ) |
|
|
virtualinherited |
◆ copyDataToHists()
StatusCode CscCalibMonToolBase::copyDataToHists |
( |
HistCollection * |
histCollection | ) |
|
|
protectedvirtual |
Fills the histograms in the histCollection based on the data in the std::vector in the HistCollection.
Definition at line 889 of file CscCalibMonToolBase.cxx.
905 ATH_MSG_DEBUG(
"Copying data to hist collection, doing: All Channels (hash view):"
907 <<
"All Channels (1d view) " << (
int)doHash
908 <<
"All Channels (2d view) " << (
int)doHash
909 <<
" layer overview " << (
int)doLayChan
910 <<
" layer spectrum " << (
int)doLaySummary
911 <<
" sector prof " << (
int)doChamAvg
912 <<
" chamber overview " << (
int)doChamChan
913 <<
" chamber spectrum " << (
int)doChamSummary
921 const std::vector<Identifier> &
ids =
m_idHelperSvc->cscIdHelper().idVector();
922 for(
const auto & thisChamberId:
ids)
925 m_idHelperSvc->cscIdHelper().get_module_hash(thisChamberId,chamHash);
926 ATH_MSG_DEBUG(
"Copying data to histograms for chamber with hash" << (
int)chamHash );
928 unsigned int stationSize =
m_idHelperSvc->cscIdHelper().stationName(thisChamberId);
937 std::vector<Identifier> stripVect;
938 m_idHelperSvc->cscIdHelper().idChannels(thisChamberId,stripVect);
940 for(
const auto & thisStrip:stripVect)
942 unsigned int chamberLayer =
m_idHelperSvc->cscIdHelper().chamberLayer(thisStrip);
943 if(chamberLayer != 2)
945 int measuresPhi =
m_idHelperSvc->cscIdHelper().measuresPhi(thisStrip);
950 m_idHelperSvc->cscIdHelper().get_channel_hash(thisStrip,stripHash);
954 float datum =
data.at(stripHash);
958 <<
"\tsecLayer: " << secLayer
959 <<
"\tdata: " << datum );
974 <<
"\tsecLayer: " << secLayer
975 <<
"\tdata: " << datum );
978 double modifiedStripNum =
981 + ((
strip-1) * .25 /(48))
987 modifiedStripNum, datum);
989 double modifiedStripNum =
992 + ((
strip-1) * .25 /(192 ))
997 modifiedStripNum, datum);
1005 <<
"\tsecLayer: " << secLayer
1006 <<
"\tdata: " << datum );
1009 int modifiedStripNum =
static_cast<int>(
strip) * (measuresPhi ? -1 : 1);
1011 modifiedStripNum, secLayer, std::abs(datum));
1041 int shiftedStrip =
strip + (
layer-1)*( measuresPhi ? 50 : 200);
1043 (*(
histCollection->chamHistVect))[chamIndex]->SetBinContent(shiftedStrip,datum);
1052 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ deregGraph()
StatusCode ManagedMonitorToolBase::deregGraph |
( |
TGraph * |
g | ) |
|
|
virtualinherited |
◆ deregHist() [1/2]
StatusCode ManagedMonitorToolBase::deregHist |
( |
LWHist * |
h | ) |
|
|
virtualinherited |
Definition at line 1826 of file ManagedMonitorToolBase.cxx.
1830 return StatusCode::FAILURE;
1833 if (
h->usingROOTBackend()) {
1834 h->setOwnsROOTHisto(
true);
1838 return StatusCode::SUCCESS;
◆ deregHist() [2/2]
StatusCode ManagedMonitorToolBase::deregHist |
( |
TH1 * |
h | ) |
|
|
virtualinherited |
◆ deregObject() [1/2]
StatusCode ManagedMonitorToolBase::deregObject |
( |
const std::string & |
objName, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
De-registers a TObject from the THistSvc, but does NOT delete the object.
(NB: LightWeight histograms are not even registered until readout).
Definition at line 1861 of file ManagedMonitorToolBase.cxx.
1874 return StatusCode::SUCCESS;
◆ deregObject() [2/2]
StatusCode ManagedMonitorToolBase::deregObject |
( |
const std::string & |
objName, |
|
|
const std::string & |
system, |
|
|
Interval_t |
interval |
|
) |
| |
|
virtualinherited |
De-registers a TObject from the THistSvc, but does NOT delete the object.
(NB: LightWeight histograms are not even registered until readout).
Definition at line 1851 of file ManagedMonitorToolBase.cxx.
◆ detStore()
◆ endOfEventsBlockFlag()
bool ManagedMonitorToolBase::endOfEventsBlockFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ endOfLowStatFlag()
bool ManagedMonitorToolBase::endOfLowStatFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ endOfLumiBlockFlag()
bool ManagedMonitorToolBase::endOfLumiBlockFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ endOfRunFlag()
bool ManagedMonitorToolBase::endOfRunFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ fillHistograms()
StatusCode CscCalibMonToolBase::fillHistograms |
( |
| ) |
|
|
virtual |
◆ fillHists()
StatusCode ManagedMonitorToolBase::fillHists |
( |
| ) |
|
|
virtualinherited |
Calls fillHists( bool, bool, bool ); if an eventBlock,lumiBlock, or run has turned over, calls procHists( bool, bool, bool ) and bookHists( bool, bool, bool ).
Implements IMonitorToolBase.
Reimplemented in TileRawChannelMonTool, and TileDigitsMonTool.
Definition at line 792 of file ManagedMonitorToolBase.cxx.
798 msg(MSG::WARNING) <<
"ManagedMonitorToolBase::initialize() never called from reimplementation!" <<
endmsg;
809 newLumiBlock =
false;
815 newLowStatInterval =
false;
816 newMedStatInterval =
false;
817 newHigStatInterval =
false;
830 isNewEventsBlock =
true;
845 if( LBsLowStat*LBsMedStat*LBsHigStat == 0) {
846 msg(MSG::WARNING) <<
"zero LBs requested for interval" <<
endmsg;
898 std::vector<Interval_t> intervals_to_process;
903 for (
const auto interval: intervals_to_process) {
916 it.m_templateHist->LabelsInflate(
"X");
923 TH1* passedHist =
it.m_templateHist->GetCopyPassedHisto();
924 TH1* totalHist =
it.m_templateHist->GetCopyTotalHisto();
927 passedHist->LabelsInflate(
"X");
928 totalHist->LabelsInflate(
"X");
933 it.m_templateHist->SetPassedHistogram(*passedHist,
"f");
934 it.m_templateHist->SetTotalHistogram(*totalHist,
" ");
942 streamname->updateRunLB();
958 bool filterresult(
true);
961 for (; filterresult && (ifilter != filterend);
963 filterresult = (filterresult && (*ifilter)->accept());
993 if( LBsLowStat*LBsMedStat*LBsHigStat > 0) {
1001 return StatusCode::SUCCESS;
◆ finalHists()
StatusCode ManagedMonitorToolBase::finalHists |
( |
| ) |
|
|
virtualinherited |
◆ finalize()
StatusCode CscCalibMonToolBase::finalize |
( |
| ) |
|
|
virtual |
◆ get_nEvents()
unsigned int ManagedMonitorToolBase::get_nEvents |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ get_procNEventsProp()
long ManagedMonitorToolBase::get_procNEventsProp |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ getChamIndex()
int CscCalibMonToolBase::getChamIndex |
( |
int |
measuresPhi, |
|
|
int |
stationEta, |
|
|
int |
sector |
|
) |
| |
|
protectedvirtual |
Produces a unique number for every secber in the detector.
Definition at line 1064 of file CscCalibMonToolBase.cxx.
1066 int chamIndex = measuresPhi*32
◆ getEndCap()
std::string CscCalibMonToolBase::getEndCap |
( |
int |
eta | ) |
|
|
protected |
◆ getFullPath()
std::string CscCalibMonToolBase::getFullPath |
( |
const std::string & |
geoPath, |
|
|
const std::string & |
histTypeDir, |
|
|
const std::string & |
parTypeDir |
|
) |
| |
|
protected |
Geo path creates a directory structure for a histogram based upon its geoPath, the hist type dir (spectrum of values, per-channel values, etc), and the parTypeDir (pedestal, etc).
This provides a centralized, consistent way of generating the paths
Definition at line 1184 of file CscCalibMonToolBase.cxx.
1186 std::stringstream
ss;
1190 if(histTypeDir !=
"")
1191 ss <<
"/" << histTypeDir;
1193 if(parTypeDir !=
"")
1194 ss <<
"/" << parTypeDir;
◆ getGeoPath()
std::string CscCalibMonToolBase::getGeoPath |
( |
int |
eta = -9999 , |
|
|
int |
sector = -9999 , |
|
|
int |
wireLayer = -9999 , |
|
|
int |
measuresPhi = -9999 , |
|
|
int |
channel = -9999 |
|
) |
| |
|
protected |
getGeoPath creates a directory structure for a histogram based upon where it is in the CSC geometry.
The user fills the data down as far as they like. For example, just filling in eta and sector will provide a path for a sector-wide histogram. This provides a centralized location to change the layout of the root output file.
Definition at line 1097 of file CscCalibMonToolBase.cxx.
1099 std::stringstream
ss;
1101 static const std::string histStr =
"/_hists";
1102 static const std::string errorDir =
"/ERROR";
1104 ss << std::setfill(
'0');
1109 ss <<
"/CscOverview";
1114 if(endCap ==
"ERROR")
1120 ss <<
"/EndCap" << endCap;
1128 if(sector <1 || sector > 16)
1134 ss <<
"/Sector" << std::setw(2) << sector;
1136 if(wireLayer == -9999)
1142 if(wireLayer < 1 || wireLayer > 4)
1144 ATH_MSG_ERROR(
"WireLayer " << wireLayer <<
" is invalid." );
1148 ss <<
"/Layer" << wireLayer;
1150 if(measuresPhi == -9999)
1156 if(measuresPhi < 0 || measuresPhi > 1)
1158 ATH_MSG_ERROR(
"MeasuresPhi " << measuresPhi <<
" is invalid." );
1162 ss << (measuresPhi ?
"/Phi" :
"/Eta");
1172 ATH_MSG_ERROR(
"Channel " <<
channel <<
" is invalid for a " << (measuresPhi ?
"phi layers" :
"eta layer") );
1177 ss <<
"/Channel" << std::setw( measuresPhi ? 2 : 3 ) <<
channel;
◆ getHist() [1/6]
◆ getHist() [2/6]
StatusCode ManagedMonitorToolBase::getHist |
( |
LWHist *& |
h, |
|
|
const std::string & |
hName, |
|
|
const std::string & |
system, |
|
|
Interval_t |
interval |
|
) |
| |
|
virtualinherited |
◆ getHist() [3/6]
StatusCode ManagedMonitorToolBase::getHist |
( |
TH1 *& |
h, |
|
|
const std::string & |
hName, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Returns a TH1 via the pointer passed as the first argument.
The histogram name, without the leading path or stream name, must be given as the second argument.
Definition at line 1598 of file ManagedMonitorToolBase.cxx.
◆ getHist() [4/6]
StatusCode ManagedMonitorToolBase::getHist |
( |
TH1 *& |
h, |
|
|
const std::string & |
hName, |
|
|
const std::string & |
system, |
|
|
Interval_t |
interval |
|
) |
| |
|
virtualinherited |
Returns a TH1 via the pointer passed as the first argument.
The histogram name, without the leading path or stream name, must be given as the second argument.
Definition at line 1588 of file ManagedMonitorToolBase.cxx.
◆ getHist() [5/6]
StatusCode ManagedMonitorToolBase::getHist |
( |
TH2 *& |
h, |
|
|
const std::string & |
hName, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Returns a TH2 via the pointer passed as the first argument.
The histogram name, without the leading path or stream name, must be given as the second argument.
Definition at line 1640 of file ManagedMonitorToolBase.cxx.
◆ getHist() [6/6]
StatusCode ManagedMonitorToolBase::getHist |
( |
TH2 *& |
h, |
|
|
const std::string & |
hName, |
|
|
const std::string & |
system, |
|
|
Interval_t |
interval |
|
) |
| |
|
virtualinherited |
Returns a TH2 via the pointer passed as the first argument.
The histogram name, without the leading path or stream name, must be given as the second argument.
Definition at line 1630 of file ManagedMonitorToolBase.cxx.
◆ getLayIndex()
int CscCalibMonToolBase::getLayIndex |
( |
int |
measuresPhi, |
|
|
int |
stationEta, |
|
|
int |
sector, |
|
|
int |
layer |
|
) |
| |
|
protectedvirtual |
produces a unique number for every layer in the detector
Definition at line 1055 of file CscCalibMonToolBase.cxx.
1057 int layIndex = measuresPhi*32*4
◆ getNewStreamNameFcn()
|
protectedvirtualinherited |
◆ getSector()
int CscCalibMonToolBase::getSector |
( |
int |
stationPhi, |
|
|
int |
stationSize |
|
) |
| |
|
protectedvirtual |
◆ handleParameter()
Should be written by user in derived class.
This is called during procHistograms() and is meant to be used to determine course of action for each parameter type. Doesn't do anything in base class.
- Parameters
-
parVals | Contains all the parameter values of a given type. For example, the pedestal for each channel. |
Reimplemented in CscCalibMonToolSlope, and CscCalibMonToolPed.
Definition at line 754 of file CscCalibMonToolBase.cxx.
756 ATH_MSG_DEBUG(
"CscCalibMonToolBase : in preProcParameter" );
757 return StatusCode::SUCCESS;
◆ initialize()
StatusCode CscCalibMonToolBase::initialize |
( |
| ) |
|
|
virtual |
initializes services, tools, etc.
Also determines the maximum hash id.
Reimplemented from ManagedMonitorToolBase.
Reimplemented in CscCalibMonToolSlope, and CscCalibMonToolPed.
Definition at line 61 of file CscCalibMonToolBase.cxx.
75 ATH_MSG_DEBUG(
"Constructing list of expected chamber layers" );
80 const std::vector<Identifier> &
ids =
m_idHelperSvc->cscIdHelper().idVector();
83 for(
const auto & thisChamberId:
ids)
86 m_idHelperSvc->cscIdHelper().get_module_hash(thisChamberId,chamberHash);
90 std::vector<Identifier> stripVect;
91 m_idHelperSvc->cscIdHelper().idChannels(thisChamberId,stripVect);
92 for(
const auto & thisStrip:stripVect)
95 m_idHelperSvc->cscIdHelper().get_channel_hash(thisStrip,stripHash);
96 bool measuresPhi =
m_idHelperSvc->cscIdHelper().measuresPhi(thisStrip);
102 == (
unsigned int)
m_idHelperSvc->cscIdHelper().chamberLayer(thisStrip)
108 ATH_MSG_VERBOSE(
"hash " << (
int)stripHash <<
" is prec and expected" );
113 ATH_MSG_VERBOSE(
"hash " << (
int)stripHash <<
" is NOT expected (Not a bug, just populating list)." );
119 for(
unsigned int chanItr =0; chanItr <=
m_maxHashId; chanItr++)
127 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
static const InterfaceID& IMonitorToolBase::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ intervalEnumToString()
std::string ManagedMonitorToolBase::intervalEnumToString |
( |
Interval_t |
interval | ) |
|
|
staticinherited |
Converts a LevelOfDetail_t to a string of the same name.
Converts a string to the corresponding LevelOfDetail_t. Converts a Interval_t to a string of the same name.
Definition at line 587 of file ManagedMonitorToolBase.cxx.
590 std::string
str(
"file");
◆ intervalStringToEnum()
Converts a string to the corresponding Interval_t.
Definition at line 629 of file ManagedMonitorToolBase.cxx.
632 std::string lcstr( strToLower(
str) );
636 else if( lcstr ==
"fill" )
638 else if( lcstr ==
"run" )
640 else if( lcstr ==
"lowStat" )
642 else if( lcstr ==
"medStat" )
644 else if( lcstr ==
"higStat" )
646 else if( lcstr ==
"lumiBlock" )
648 else if( lcstr ==
"eventsBlock" )
650 else if( lcstr ==
"file" )
656 if(
sc.isSuccess() ) {
657 MsgStream
log(
ms,
"ManagedMonitorToolBase::intervalStringToEnum()" );
658 log << MSG::WARNING <<
"Unknown ManagedMonitorToolBase::Interval_t \""
659 <<
str <<
"\", returning \"file\"" <<
endmsg;
◆ lbAverageInteractionsPerCrossing()
float ManagedMonitorToolBase::lbAverageInteractionsPerCrossing |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Average mu, i.e.
<mu>
Definition at line 1923 of file ManagedMonitorToolBase.cxx.
1928 return lumi->lbAverageInteractionsPerCrossing();
1931 ATH_MSG_DEBUG(
"Warning: lbAverageInteractionsPerCrossing() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ lbAverageLivefraction()
float ManagedMonitorToolBase::lbAverageLivefraction |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Average luminosity livefraction.
Definition at line 1992 of file ManagedMonitorToolBase.cxx.
2000 return live->lbAverageLiveFraction();
2003 ATH_MSG_DEBUG(
"Warning: lbAverageLivefraction() - luminosity not availble (i.e. EnableLumi = False)");
◆ lbAverageLuminosity()
float ManagedMonitorToolBase::lbAverageLuminosity |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1)
Definition at line 1959 of file ManagedMonitorToolBase.cxx.
1964 return lumi->lbAverageLuminosity();
1967 ATH_MSG_DEBUG(
"Warning: lbAverageLuminosity() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ lbDuration()
double ManagedMonitorToolBase::lbDuration |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Luminosity block time (in seconds)
Definition at line 2046 of file ManagedMonitorToolBase.cxx.
2054 return dur->lbDuration();
2057 ATH_MSG_DEBUG(
"Warning: lbDuration() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ lbInteractionsPerCrossing()
float ManagedMonitorToolBase::lbInteractionsPerCrossing |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Instantaneous number of interactions, i.e.
mu
Definition at line 1939 of file ManagedMonitorToolBase.cxx.
1944 float muToLumi =
lumi->muToLumi();
1946 return lumi->lbLuminosityPerBCIDVector().at (ctx.eventID().bunch_crossing_id()) / muToLumi;
1951 ATH_MSG_DEBUG(
"Warning: lbInteractionsPerCrossing() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ lbLuminosityPerBCID()
float ManagedMonitorToolBase::lbLuminosityPerBCID |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Instantaneous luminosity.
Definition at line 1975 of file ManagedMonitorToolBase.cxx.
1980 return lumi->lbLuminosityPerBCIDVector().at (ctx.eventID().bunch_crossing_id());
1983 ATH_MSG_DEBUG(
"Warning: lbLuminosityPerBCID() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ lbLumiWeight()
double ManagedMonitorToolBase::lbLumiWeight |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Average Integrated Luminosity Live Fraction.
Definition at line 2030 of file ManagedMonitorToolBase.cxx.
2037 ATH_MSG_DEBUG(
"Warning: lbLumiWeight() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ livefractionPerBCID()
float ManagedMonitorToolBase::livefractionPerBCID |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Livefraction per bunch crossing ID.
Definition at line 2011 of file ManagedMonitorToolBase.cxx.
2019 return live->l1LiveFractionVector().at (ctx.eventID().bunch_crossing_id());
2022 ATH_MSG_DEBUG(
"Warning: livefractionPerBCID() - luminosity retrieved available (i.e. EnableLumi = False)");
◆ MMTB_DEPRECATED() [1/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
endOfEventsBlock |
| ) |
|
|
inherited |
◆ MMTB_DEPRECATED() [2/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
endOfLowStat |
| ) |
|
|
inherited |
◆ MMTB_DEPRECATED() [3/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
endOfLumiBlock |
| ) |
|
|
inherited |
◆ MMTB_DEPRECATED() [4/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
endOfRun |
| ) |
|
|
inherited |
◆ MMTB_DEPRECATED() [5/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
newEventsBlock |
| ) |
|
|
inherited |
◆ MMTB_DEPRECATED() [6/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
newHigStatInterval |
| ) |
|
|
inherited |
◆ MMTB_DEPRECATED() [7/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
newLowStat |
| ) |
|
|
inherited |
◆ MMTB_DEPRECATED() [8/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
newLowStatInterval |
| ) |
|
|
inherited |
◆ MMTB_DEPRECATED() [9/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
newLumiBlock |
| ) |
|
|
inherited |
◆ MMTB_DEPRECATED() [10/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
newMedStatInterval |
| ) |
|
|
inherited |
◆ MMTB_DEPRECATED() [11/11]
ManagedMonitorToolBase::MMTB_DEPRECATED |
( |
newRun |
| ) |
|
|
inherited |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ newEventsBlockFlag()
bool ManagedMonitorToolBase::newEventsBlockFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newHigStatIntervalFlag()
bool ManagedMonitorToolBase::newHigStatIntervalFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newLowStatFlag()
bool ManagedMonitorToolBase::newLowStatFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newLowStatIntervalFlag()
bool ManagedMonitorToolBase::newLowStatIntervalFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newLumiBlockFlag()
bool ManagedMonitorToolBase::newLumiBlockFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newMedStatIntervalFlag()
bool ManagedMonitorToolBase::newMedStatIntervalFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newRunFlag()
bool ManagedMonitorToolBase::newRunFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ parseList()
StatusCode ManagedMonitorToolBase::parseList |
( |
const std::string & |
line, |
|
|
std::vector< std::string > & |
result |
|
) |
| |
|
protectedinherited |
◆ postProc()
StatusCode CscCalibMonToolBase::postProc |
( |
| ) |
|
|
protectedvirtual |
◆ preSelector()
bool ManagedMonitorToolBase::preSelector |
( |
| ) |
|
|
virtualinherited |
◆ procHistograms()
StatusCode CscCalibMonToolBase::procHistograms |
( |
| ) |
|
|
virtual |
◆ procParameter()
Processors a parameter type.
Typically called by derived classes' handleParameter. It does several things
-Fills the histograms in simpleSet -Determines if a given channel deviates too much from an expected value (expected value is from COOL or specified in simpleSet). -Optionally tests the chi^2 value in parVals -Fills the std::vectors in simpleSet. These vectors contain info such as the per-channel values, difference from old COOL values, and the COOL values themselves. -Looks for any expected channels missing in parVals. If so, it mentions it.
- Parameters
-
parVals | Collection of values for a given parameter |
simpleSet | contains a set of histograms and vectors to be filled. |
Definition at line 770 of file CscCalibMonToolBase.cxx.
773 ATH_MSG_DEBUG(
"Entering proc parameter for " << parVals->
parName() <<
". Max diff " << procParameterInput->maxDiff <<
"." );
774 if (procParameterInput->doChi2)
775 ATH_MSG_DEBUG(
" Will retrieve chi2 with expected max of " << procParameterInput->chi2Max );
779 std::set<int> missingChannels = procParameterInput->expectedChannels;
785 int numFailures = 0, maxFailures = 10;
788 const int hashId =
chan->hashId();
789 const float val =
chan->value();
794 missingChannels.erase(hashId);
797 if(procParameterInput->dbName !=
"")
800 if(!(readCdo->readChannelParam(hashId, oldVal, procParameterInput->dbName)).isSuccess())
804 <<
" for channel " << hashId
805 <<
" from COOL database. Continuing with COOL value = 0"
807 if(numFailures==maxFailures)
810 << maxFailures <<
" failed retrievals. Quiting. " );
811 return StatusCode::FAILURE;
818 oldVal = procParameterInput->expectedVal;
824 if( std::abs(
diff) > procParameterInput->maxDiff)
826 ATH_MSG_INFO(
"CscCalibMonToolBase : Possible problem! " << parVals->parName()
827 <<
" measurement of " <<
val <<
" varies by " <<
diff
828 <<
" from expected value of " << oldVal <<
" on channel with hash Id "
829 << hashId <<
". Specified maximum variance is " << procParameterInput->maxDiff );
831 procParameterInput->badHist->Fill(procParameterInput->badBin);
835 if(procParameterInput->doChi2)
837 chi2_ndf =
chan->chi2()/
chan->ndf();
838 if(chi2_ndf > procParameterInput->chi2Max)
840 procParameterInput->badHist->Fill(procParameterInput->chi2BadBin);
855 (*procParameterInput->vals)[hashId] =
val;
856 if((procParameterInput->errors->size()))
857 (*procParameterInput->errors)[hashId] =
error;
858 if(procParameterInput->oldVals)
859 (*procParameterInput->oldVals)[hashId] = oldVal;
860 if(procParameterInput->diffs)
861 (*procParameterInput->diffs)[hashId] =
diff;
862 if(procParameterInput->doChi2)
863 (*procParameterInput->chi2s)[hashId] = chi2_ndf;
867 if(missingChannels.size() !=0)
869 for(
const auto & thisChan: missingChannels)
871 if(procParameterInput->missingChans !=
nullptr)
875 if(!procParameterInput->missingChans->GetBinContent(thisChan+1))
876 procParameterInput->badHist->Fill(procParameterInput->missingBadBin);
878 procParameterInput->missingChans->Fill(thisChan);
883 return StatusCode::SUCCESS;
◆ regEfficiency()
StatusCode ManagedMonitorToolBase::regEfficiency |
( |
TEfficiency * |
e, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Registers a TEfficiency to be included in the output stream using logical parameters that describe the plot.
Definition at line 1648 of file ManagedMonitorToolBase.cxx.
1650 return StatusCode::FAILURE;
1652 TGraph*
g =
reinterpret_cast<TGraph*
>(
e);
1653 std::string
name =
e->GetName();
1659 ATH_MSG_WARNING(
"HEY! Attempting to register "<<
name<<
" as a per-LB histogram, but not setting the merge algorithm! Use \"merge\", at least.");
1666 return StatusCode::FAILURE;
1676 std::string genericName = NoOutputStream().getStreamName(
this,
group,
name );
1683 if (
smd != StatusCode::SUCCESS)
1684 return StatusCode::FAILURE;
◆ regGraph() [1/2]
StatusCode ManagedMonitorToolBase::regGraph |
( |
TGraph * |
g, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Registers a TGraph to be included in the output stream using logical parameters that describe the graph.
Definition at line 1702 of file ManagedMonitorToolBase.cxx.
1706 return StatusCode::FAILURE;
1719 return StatusCode::FAILURE;
1722 std::string
name =
g->GetName();
1730 std::string gName =
g->GetName();
1733 std::string genericName = NoOutputStream().getStreamName(
this,
group, gName );
1741 if (
smd != StatusCode::SUCCESS)
return StatusCode::FAILURE;
◆ regGraph() [2/2]
Registers a TGraph to be included in the output stream using logical parameters that describe the graph.
Definition at line 1692 of file ManagedMonitorToolBase.cxx.
◆ regHist() [1/4]
Definition at line 1522 of file ManagedMonitorToolBase.cxx.
1528 return StatusCode::FAILURE;
1540 return StatusCode::FAILURE;
1547 std::string hName =
h->GetName();
1551 std::string genericName = NoOutputStream().getStreamName(
this,
group, hName );
1577 if (
h->usingROOTBackend())
1579 h->setOwnsROOTHisto(
false);
1583 return StatusCode::SUCCESS;
◆ regHist() [2/4]
◆ regHist() [3/4]
Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram.
A histogram is passed via reference to a pointer.
Definition at line 1462 of file ManagedMonitorToolBase.cxx.
1468 return StatusCode::FAILURE;
1481 ATH_MSG_WARNING(
"HEY! You're attempting to register " <<
h->GetName() <<
" as a per-LB histogram, but you're not setting the merge algorithm! This is a SUPER-BAD idea! Use \"merge\", at least.");
1488 return StatusCode::FAILURE;
1491 std::string hName =
h->GetName();
1499 std::string hName =
h->GetName();
1502 std::string genericName = NoOutputStream().getStreamName(
this,
group, hName );
1510 if (
smd != StatusCode::SUCCESS)
return StatusCode::FAILURE;
◆ regHist() [4/4]
◆ registerMetadata()
StatusCode ManagedMonitorToolBase::registerMetadata |
( |
const std::string & |
streamName, |
|
|
const std::string & |
hName, |
|
|
const MonGroup & |
group |
|
) |
| |
|
protectedinherited |
Definition at line 1005 of file ManagedMonitorToolBase.cxx.
1011 size_t found=mdStreamName.rfind(
'/');
1013 if (
found != std::string::npos )
1014 mdStreamName.replace(
found, mdStreamName.length(),
"/metadata" );
1018 metadata =
new TTree(
"metadata",
"Monitoring Metadata" );
1019 if (!
metadata)
return StatusCode::FAILURE;
1021 if (scmd == StatusCode::FAILURE)
return StatusCode::FAILURE;
1022 MDMap_t::value_type valToInsert( mdStreamName,
new OutputMetadata(
metadata) );
1028 return StatusCode::SUCCESS;
◆ regManagedEfficiencies()
StatusCode ManagedMonitorToolBase::regManagedEfficiencies |
( |
std::vector< MgmtParams< TEfficiency > > & |
templateEfficiencies | ) |
|
|
protectedinherited |
Definition at line 1200 of file ManagedMonitorToolBase.cxx.
1201 bool allIsOk =
true;
1202 for(
auto&
it : templateEfficiencies ) {
1205 TEfficiency* theEfficiency =
it.m_templateHist;
1206 TEfficiency*
e =
static_cast<TEfficiency*
>(theEfficiency->Clone());
1207 int nbins = theEfficiency->GetTotalHistogram()->GetNbinsX();
1208 int xlow = theEfficiency->GetTotalHistogram()->GetXaxis()->GetXmin();
1209 int xhigh = theEfficiency->GetTotalHistogram()->GetXaxis()->GetXmax();
1210 e->SetBins(
nbins,xlow,xhigh);
1211 std::string
name =
e->GetName();
1214 TGraph* theGraph =
reinterpret_cast<TGraph*
>(theEfficiency);
1215 TGraph*
g =
reinterpret_cast<TGraph*
>(
e);
1223 if (sc1 == StatusCode::FAILURE) allIsOk =
false;
1225 bool doneCleaning =
false;
1227 TSeqCollection *
filelist=gROOT->GetListOfFiles();
1232 if (sc2 == StatusCode::SUCCESS) doneCleaning =
true;
1235 if (!doneCleaning) {
1236 ATH_MSG_ERROR(
"THistSvc_deReg_fixTGraph: failed to apply TGraph fix for the THist Svc!");
1241 if (sc3 == StatusCode::FAILURE)
1248 if (
smd != StatusCode::SUCCESS) allIsOk =
false;
1251 if (sc4 == StatusCode::FAILURE) allIsOk =
false;
1254 if (!allIsOk)
return StatusCode::FAILURE;
1255 return StatusCode::SUCCESS;
◆ regManagedGraphs()
StatusCode ManagedMonitorToolBase::regManagedGraphs |
( |
std::vector< MgmtParams< TGraph > > & |
templateGraphs | ) |
|
|
protectedinherited |
Definition at line 1129 of file ManagedMonitorToolBase.cxx.
1133 bool allIsOk =
true;
1135 for( std::vector< MgmtParams<TGraph> >::
iterator it = templateGraphs.begin();
it != templateGraphs.end(); ++
it ) {
1136 MonGroup
group = (*it).m_group;
1139 TGraph* theGraph = (*it).m_templateHist;
1142 TGraph*
g =
static_cast<TGraph*
>(theGraph->Clone());
1146 std::string gName =
g->GetName();
1153 if (sc1 == StatusCode::FAILURE)
1158 bool doneCleaning =
false;
1160 TSeqCollection *
filelist=gROOT->GetListOfFiles();
1165 if (sc2 == StatusCode::SUCCESS)
1166 doneCleaning =
true;
1170 if (!doneCleaning) {
1171 ATH_MSG_ERROR(
"THistSvc_deReg_fixTGraph: failed to apply TGraph fix for the THist Svc!");
1178 if (sc3 == StatusCode::FAILURE)
1185 if (
smd != StatusCode::SUCCESS)
1190 if (sc4 == StatusCode::FAILURE)
1195 if (!allIsOk)
return StatusCode::FAILURE;
1197 return StatusCode::SUCCESS;
◆ regManagedHistograms()
StatusCode ManagedMonitorToolBase::regManagedHistograms |
( |
std::vector< MgmtParams< TH1 > > & |
templateHistograms | ) |
|
|
protectedinherited |
Definition at line 1032 of file ManagedMonitorToolBase.cxx.
1047 bool allIsOk =
true;
1049 for( std::vector< MgmtParams<TH1> >::
iterator it = templateHistograms.begin();
it != templateHistograms.end(); ++
it ) {
1050 MonGroup&
group = (*it).m_group;
1053 TH1* theHist = (*it).m_templateHist;
1056 TH1*
h =
static_cast<TH1*
>(theHist->Clone());
1060 std::string hName =
h->GetName();
1067 if (sc1 == StatusCode::FAILURE) allIsOk =
false;
1071 if (sc2 == StatusCode::FAILURE) allIsOk =
false;
1074 std::string genericName = NoOutputStream().getStreamName(
this,
group, hName );
1083 if (
smd != StatusCode::SUCCESS) allIsOk =
false;
1087 if (sc3 == StatusCode::FAILURE) allIsOk =
false;
1091 if (!allIsOk)
return StatusCode::FAILURE;
1093 return StatusCode::SUCCESS;
◆ regManagedLWHistograms()
StatusCode ManagedMonitorToolBase::regManagedLWHistograms |
( |
std::vector< MgmtParams< LWHist > > & |
templateLWHistograms | ) |
|
|
protectedinherited |
◆ regManagedTrees()
StatusCode ManagedMonitorToolBase::regManagedTrees |
( |
std::vector< MgmtParams< TTree > > & |
templateTrees | ) |
|
|
protectedinherited |
Definition at line 1260 of file ManagedMonitorToolBase.cxx.
1264 bool allIsOk =
true;
1266 for( std::vector< MgmtParams<TTree> >::
iterator it = templateTrees.begin();
it != templateTrees.end(); ++
it ) {
1267 MonGroup
group = (*it).m_group;
1270 TTree* theTree = (*it).m_templateHist;
1273 TTree*
t =
static_cast<TTree*
>(theTree->Clone());
1277 std::string
name =
t->GetName();
1284 if (sc1 == StatusCode::FAILURE) allIsOk =
false;
1288 if (sc2 == StatusCode::FAILURE) allIsOk =
false;
1291 std::string genericName = NoOutputStream().getStreamName(
this,
group,
name );
1300 if (
smd != StatusCode::SUCCESS) allIsOk =
false;
1304 if (sc3 == StatusCode::FAILURE) allIsOk =
false;
1308 if (!allIsOk)
return StatusCode::FAILURE;
1310 return StatusCode::SUCCESS;
◆ regTree() [1/2]
StatusCode ManagedMonitorToolBase::regTree |
( |
TTree * |
t, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Registers a TTree to be included in the output stream using logical parameters that describe it.
Definition at line 1758 of file ManagedMonitorToolBase.cxx.
1773 return StatusCode::FAILURE;
1776 std::string
name =
t->GetName();
1777 std::string genericName = NoOutputStream().getStreamName(
this, group_unmanaged,
name );
1785 std::string tName =
t->GetName();
1788 std::string genericName = NoOutputStream().getStreamName(
this,
group, tName );
1796 if (
smd != StatusCode::SUCCESS)
return StatusCode::FAILURE;
◆ regTree() [2/2]
Registers a TTree to be included in the output stream using logical parameters that describe it.
Definition at line 1748 of file ManagedMonitorToolBase.cxx.
◆ renounce()
◆ renounceArray()
◆ runStat()
StatusCode ManagedMonitorToolBase::runStat |
( |
| ) |
|
|
virtualinherited |
This implementation does nothing; equivalent functionality may be provided by procHists( true, true, true ).
Implements IMonitorToolBase.
Definition at line 1893 of file ManagedMonitorToolBase.cxx.
1896 return StatusCode::SUCCESS;
◆ setMonManager()
◆ setupOutputStreams()
StatusCode ManagedMonitorToolBase::setupOutputStreams |
( |
std::vector< std::string > |
Mapping = std::vector<std::string>() | ) |
|
|
virtualinherited |
◆ streamNameFunction()
Returns the function object that converts logical paramters into a physical stream name.
Definition at line 502 of file ManagedMonitorToolBase.cxx.
506 msg(MSG::ERROR) <<
"!! streamNameFunction() has not been initialized !!" <<
endmsg;
507 msg(MSG::ERROR) <<
" --> neither ManagedMonitorToolBase::initialize() nor" <<
endmsg;
508 msg(MSG::ERROR) <<
" --> ManagedMonitorToolBase::setMonManager() has been called." <<
endmsg;
509 msg(MSG::ERROR) <<
" --> Correct configuration cannot be guaranteed from this point." <<
endmsg;
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ THistSvc_deReg_fixTGraph()
StatusCode ManagedMonitorToolBase::THistSvc_deReg_fixTGraph |
( |
TFile * |
file, |
|
|
TGraph * |
theGraph, |
|
|
std::string & |
directoryName |
|
) |
| |
|
protectedinherited |
Fixes THistSvc->deReg(obj) when obj is TGraph instance.
Read more in source file about this bug.
Definition at line 1097 of file ManagedMonitorToolBase.cxx.
1107 GlobalDirectoryRestore restore;
1110 bool graphRemoved =
false;
1113 TDirectory*
dir =
file->GetDirectory(directoryName.c_str());
1116 TObject*
obj =
dir->Remove(theGraph);
1118 graphRemoved =
true;
1121 if (!graphRemoved) {
1122 return StatusCode::FAILURE;
1125 return StatusCode::SUCCESS;
◆ trigChainsArePassed()
bool ManagedMonitorToolBase::trigChainsArePassed |
( |
std::vector< std::string > & |
vTrigNames | ) |
|
|
protectedvirtualinherited |
◆ updateTriggersForGroups()
void ManagedMonitorToolBase::updateTriggersForGroups |
( |
std::vector< std::string > & |
vTrigChainNames | ) |
|
|
protectedinherited |
Definition at line 2362 of file ManagedMonitorToolBase.cxx.
2364 for (
size_t i = 0;
i < vTrigChainNames.size(); ++
i) {
2365 std::string& thisName = vTrigChainNames[
i];
2366 if (thisName.compare(0, 9,
"CATEGORY_") ==0) {
2367 ATH_MSG_DEBUG(
"Found a trigger category: " << thisName <<
". We will unpack it.");
2369 std::ostringstream oss;
2371 for (
size_t itrig = 0; itrig <
triggers.size(); ++itrig) {
2379 std::string newval = oss.str();
2381 vTrigChainNames[
i] = newval;
◆ updateVHKA()
◆ writeAndDelete()
StatusCode ManagedMonitorToolBase::writeAndDelete |
( |
TH1 * |
h, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Write out histogram and delete it.
Definition at line 1803 of file ManagedMonitorToolBase.cxx.
1806 return StatusCode::FAILURE;
1808 std::string hName =
h->GetName();
1811 std::string genericName = NoOutputStream().getStreamName(
this,
group, hName );
1814 return StatusCode::SUCCESS;
◆ m_allChan1dName
std::string CscCalibMonToolBase::m_allChan1dName |
|
protected |
◆ m_allChan1dTitle
std::string CscCalibMonToolBase::m_allChan1dTitle |
|
protected |
◆ m_allChan2dName
std::string CscCalibMonToolBase::m_allChan2dName |
|
protected |
◆ m_allChan2dPath
std::string CscCalibMonToolBase::m_allChan2dPath |
|
protected |
◆ m_allChan2dTitle
std::string CscCalibMonToolBase::m_allChan2dTitle |
|
protected |
◆ m_bookHistogramsInitial
bool ManagedMonitorToolBase::m_bookHistogramsInitial |
|
privateinherited |
◆ m_calibResultKey
std::string CscCalibMonToolBase::m_calibResultKey |
|
protected |
◆ m_chamHistName
std::string CscCalibMonToolBase::m_chamHistName |
|
protected |
◆ m_chamHistTitle
std::string CscCalibMonToolBase::m_chamHistTitle |
|
protected |
◆ m_chamProfName
std::string CscCalibMonToolBase::m_chamProfName |
|
protected |
◆ m_chamProfPath
std::string CscCalibMonToolBase::m_chamProfPath |
|
protected |
◆ m_chamProfTitle
std::string CscCalibMonToolBase::m_chamProfTitle |
|
protected |
◆ m_chamSummHistName
std::string CscCalibMonToolBase::m_chamSummHistName |
|
protected |
◆ m_chamSummHistPath
std::string CscCalibMonToolBase::m_chamSummHistPath |
|
protected |
◆ m_chamSummHistTitle
std::string CscCalibMonToolBase::m_chamSummHistTitle |
|
protected |
◆ m_d
Imp* ManagedMonitorToolBase::m_d |
|
privateinherited |
◆ m_dataType
◆ m_dataTypeStr
std::string ManagedMonitorToolBase::m_dataTypeStr |
|
protectedinherited |
◆ m_defaultLBDuration
float ManagedMonitorToolBase::m_defaultLBDuration |
|
privateinherited |
◆ m_detailedHashIds
bool* CscCalibMonToolBase::m_detailedHashIds {} |
|
protected |
◆ m_detailLevel
unsigned int ManagedMonitorToolBase::m_detailLevel |
|
protectedinherited |
◆ m_detStore
◆ m_doAllDetailed
bool CscCalibMonToolBase::m_doAllDetailed {} |
|
protected |
◆ m_doBadDetailed
bool CscCalibMonToolBase::m_doBadDetailed {} |
|
protected |
◆ m_doStatDb
bool CscCalibMonToolBase::m_doStatDb {} |
|
protected |
◆ m_DQFilterTools
ToolHandleArray<IDQFilterTool> ManagedMonitorToolBase::m_DQFilterTools {this,"FilterTools",{}} |
|
protectedinherited |
◆ m_endOfEventsBlock
bool ManagedMonitorToolBase::m_endOfEventsBlock |
|
privateinherited |
◆ m_endOfLowStat
bool ManagedMonitorToolBase::m_endOfLowStat |
|
privateinherited |
◆ m_endOfLumiBlock
bool ManagedMonitorToolBase::m_endOfLumiBlock |
|
privateinherited |
◆ m_endOfRun
bool ManagedMonitorToolBase::m_endOfRun |
|
privateinherited |
◆ m_environment
◆ m_environmentStr
std::string ManagedMonitorToolBase::m_environmentStr |
|
protectedinherited |
◆ m_evtStore
◆ m_expectedChamberLayer
unsigned int CscCalibMonToolBase::m_expectedChamberLayer {} |
|
protected |
◆ m_expectedHashIdsAll
std::set<int> CscCalibMonToolBase::m_expectedHashIdsAll |
|
protected |
◆ m_expectedHashIdsPrec
std::set<int> CscCalibMonToolBase::m_expectedHashIdsPrec |
|
protected |
◆ m_fileKey
std::string ManagedMonitorToolBase::m_fileKey |
|
protectedinherited |
◆ m_generic_path_csccalibmonitoring
std::string CscCalibMonToolBase::m_generic_path_csccalibmonitoring |
|
protected |
◆ m_hashName
std::string CscCalibMonToolBase::m_hashName |
|
protected |
◆ m_hashPath
std::string CscCalibMonToolBase::m_hashPath |
|
protected |
◆ m_hashTitle
std::string CscCalibMonToolBase::m_hashTitle |
|
protected |
◆ m_haveClearedLastEventBlock
bool ManagedMonitorToolBase::m_haveClearedLastEventBlock |
|
protectedinherited |
◆ m_histCol
int CscCalibMonToolBase::m_histCol {} |
|
protected |
◆ m_histColAlert
int CscCalibMonToolBase::m_histColAlert {} |
|
protected |
◆ m_idHelperSvc
◆ m_lastHigStatInterval
int ManagedMonitorToolBase::m_lastHigStatInterval |
|
protectedinherited |
◆ m_lastLowStatInterval
int ManagedMonitorToolBase::m_lastLowStatInterval |
|
protectedinherited |
◆ m_lastLumiBlock
unsigned int ManagedMonitorToolBase::m_lastLumiBlock |
|
protectedinherited |
◆ m_lastMedStatInterval
int ManagedMonitorToolBase::m_lastMedStatInterval |
|
protectedinherited |
◆ m_lastRun
unsigned int ManagedMonitorToolBase::m_lastRun |
|
protectedinherited |
◆ m_layHistName
std::string CscCalibMonToolBase::m_layHistName |
|
protected |
◆ m_layHistPath
std::string CscCalibMonToolBase::m_layHistPath |
|
protected |
◆ m_layHistTitle
std::string CscCalibMonToolBase::m_layHistTitle |
|
protected |
◆ m_laySummHistName
std::string CscCalibMonToolBase::m_laySummHistName |
|
protected |
◆ m_laySummHistPath
std::string CscCalibMonToolBase::m_laySummHistPath |
|
protected |
◆ m_laySummHistTitle
std::string CscCalibMonToolBase::m_laySummHistTitle |
|
protected |
◆ m_lbDurationDataKey
◆ m_lumiDataKey
◆ m_lwhists
std::set<LWHist*> ManagedMonitorToolBase::m_lwhists |
|
protectedinherited |
◆ m_makeAllChan1dHists
bool CscCalibMonToolBase::m_makeAllChan1dHists {} |
|
protected |
◆ m_makeAllChan2dHists
bool CscCalibMonToolBase::m_makeAllChan2dHists {} |
|
protected |
◆ m_makeChamHists
bool CscCalibMonToolBase::m_makeChamHists {} |
|
protected |
◆ m_makeChamProfs
bool CscCalibMonToolBase::m_makeChamProfs {} |
|
protected |
◆ m_makeChamSummHists
bool CscCalibMonToolBase::m_makeChamSummHists {} |
|
protected |
◆ m_makeHashHists
bool CscCalibMonToolBase::m_makeHashHists {} |
|
protected |
◆ m_makeLayHists
bool CscCalibMonToolBase::m_makeLayHists {} |
|
protected |
◆ m_makeLaySummHists
bool CscCalibMonToolBase::m_makeLaySummHists {} |
|
protected |
◆ m_manager
◆ m_managerNameProp
std::string ManagedMonitorToolBase::m_managerNameProp |
|
protectedinherited |
◆ m_maxChamId
unsigned int CscCalibMonToolBase::m_maxChamId {} |
|
protected |
◆ m_maxDetailedChannels
int CscCalibMonToolBase::m_maxDetailedChannels {} |
|
protected |
To keep track of channels that should have more data printed to root file.
Definition at line 128 of file CscCalibMonToolBase.h.
◆ m_maxHashId
unsigned int CscCalibMonToolBase::m_maxHashId {} |
|
protected |
◆ m_metadataMap
MDMap_t ManagedMonitorToolBase::m_metadataMap |
|
protectedinherited |
◆ m_monGroupMap
std::map<std::string, MonGroup*> CscCalibMonToolBase::m_monGroupMap |
|
protected |
◆ m_monGroupVec
◆ m_nEvents
unsigned int ManagedMonitorToolBase::m_nEvents |
|
protectedinherited |
◆ m_nEventsIgnoreTrigger
unsigned int ManagedMonitorToolBase::m_nEventsIgnoreTrigger |
|
protectedinherited |
◆ m_newEventsBlock
bool ManagedMonitorToolBase::m_newEventsBlock |
|
privateinherited |
◆ m_newHigStatInterval
bool ManagedMonitorToolBase::m_newHigStatInterval |
|
privateinherited |
◆ m_newLowStat
bool ManagedMonitorToolBase::m_newLowStat |
|
privateinherited |
◆ m_newLowStatInterval
bool ManagedMonitorToolBase::m_newLowStatInterval |
|
privateinherited |
◆ m_newLumiBlock
bool ManagedMonitorToolBase::m_newLumiBlock |
|
privateinherited |
◆ m_newMedStatInterval
bool ManagedMonitorToolBase::m_newMedStatInterval |
|
privateinherited |
◆ m_newRun
bool ManagedMonitorToolBase::m_newRun |
|
privateinherited |
◆ m_nLumiBlocks
unsigned int ManagedMonitorToolBase::m_nLumiBlocks |
|
protectedinherited |
◆ m_numBad
unsigned int CscCalibMonToolBase::m_numBad {} |
|
protected |
◆ m_onlyExpectPrecisionHashIds
bool CscCalibMonToolBase::m_onlyExpectPrecisionHashIds {} |
|
protected |
◆ m_path
std::string ManagedMonitorToolBase::m_path |
|
protectedinherited |
◆ m_preScaleProp
long ManagedMonitorToolBase::m_preScaleProp |
|
protectedinherited |
◆ m_procNEventsProp
long ManagedMonitorToolBase::m_procNEventsProp |
|
protectedinherited |
◆ m_readKey
◆ m_statDbColl
◆ m_streamNameFcn
◆ m_supportedIntervalsForRebooking
std::set<Interval_t> ManagedMonitorToolBase::m_supportedIntervalsForRebooking |
|
privateinherited |
◆ m_templateEfficiencies
std::map< Interval_t, std::vector< MgmtParams<TEfficiency> > > ManagedMonitorToolBase::m_templateEfficiencies |
|
protectedinherited |
◆ m_templateGraphs
◆ m_templateHistograms
◆ m_templateLWHistograms
◆ m_templateTrees
◆ m_THistSvc
◆ m_trigDecTool
◆ m_triggerChainProp
std::string ManagedMonitorToolBase::m_triggerChainProp |
|
protectedinherited |
◆ m_triggerGroupProp
std::string ManagedMonitorToolBase::m_triggerGroupProp |
|
protectedinherited |
◆ m_trigLiveFractionDataKey
◆ m_trigTranslator
PublicToolHandle<ITriggerTranslatorTool> ManagedMonitorToolBase::m_trigTranslator {this,"TriggerTranslatorTool",""} |
|
protectedinherited |
◆ m_useLumi
bool ManagedMonitorToolBase::m_useLumi |
|
privateinherited |
◆ m_useTrigger
bool ManagedMonitorToolBase::m_useTrigger |
|
protectedinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_vTrigChainNames
std::vector<std::string> ManagedMonitorToolBase::m_vTrigChainNames |
|
protectedinherited |
◆ m_vTrigGroupNames
std::vector<std::string> ManagedMonitorToolBase::m_vTrigGroupNames |
|
protectedinherited |
The documentation for this class was generated from the following files:
virtual LWHist * ownedLWHistOfKey(const std::string &key) const
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
virtual LWHist * writeAndDeleteLWHist(const std::string &key, const std::string &streamName)
std::string parName() const
the identify of this collection
char data[hepevt_bytes_allocation_ATLAS]
constexpr uint8_t stationPhi
station Phi 1 to 8
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
path
python interpreter configuration --------------------------------------—
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual LWHist * writeAndResetLWHist(const std::string &key, const std::string &streamName)
static unsigned int runNumber()
virtual std::string fileKey() const
virtual void passOwnership(TObject *h, const std::string &key)
Pass ownership of a TObject/LWHist to this manager so that it will be deleted appropriately.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool msgLvl(const MSG::Level lvl) const
static void setStreamName(LWHist *, const std::string &streamName)
#define ATH_MSG_VERBOSE(x)
bool empty() const
Test if the key is blank.
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
static unsigned int getLBsLowStat()
virtual void setOwner(IDataHandleHolder *o)=0
static Environment_t environment()
Returns the running environment of the monitoring application to help ManagedMonitorToolBase objects ...
static const std::string & streamName(LWHist *)
static unsigned int getLBsMedStat()
bool usingROOTBackend() const
static void removeCustomData(LWHist *)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
static DataType_t dataType()
Returns the data type that the monitoring application is running over to help ManagedMonitorToolBase ...
static const std::string & key(LWHist *)
def TProfile(*args, **kwargs)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void writeAndDelete(const std::string &key)
If the TObject is owned by this manager, its Write() method is called and it is deleted.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void fcn(int &, double *, double &result, double par[], int)
this is where we write out chi2
bool allGood
Loop over the SDOs & Digits.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
static unsigned int getLBsHigStat()
static void setKey(LWHist *, const std::string &key)
StatusCode initialize(bool used=true)
void setOwnsROOTHisto(bool b)
#define ATH_MSG_WARNING(x)
filelist
print ("Checking files %s..." % fullfile)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
static unsigned int lumiBlockNumber()
constexpr uint8_t stationEta
1 to 3
virtual TH1 * getROOTHistBase()=0
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>