 |
ATLAS Offline Software
|
A container of information describing a monitoring object.
More...
#include <ManagedMonitorToolBase.h>
|
typedef std::map< std::string, TH1 * > | HistMap_t |
| A mapping of histogram name to histogram object. More...
|
|
|
| MonGroup (ManagedMonitorToolBase *tool, const std::string &system, Interval_t interval) |
|
| MonGroup (ManagedMonitorToolBase *tool, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt) |
|
| MonGroup (ManagedMonitorToolBase *tool, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt, const std::string &chain) |
|
| MonGroup (ManagedMonitorToolBase *tool, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt, const std::string &chain, const std::string &merge) |
|
StatusCode | regHist (TH1 *h) |
| Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram. More...
|
|
StatusCode | getHist (TH1 *&h, const std::string &hName) |
| Returns a TH1 via the pointer passed as the first argument. More...
|
|
StatusCode | getHist (TH2 *&h, const std::string &hName) |
| Returns a TH2 via the pointer passed as the first argument. More...
|
|
StatusCode | regEfficiency (TEfficiency *e) |
| Registers a TEfficiency to be included in the output stream. More...
|
|
StatusCode | regGraph (TGraph *g) |
| Registers a TGraph to be included in the output stream using logical parameters that describe the histogram. More...
|
|
StatusCode | regTree (TTree *t) |
| Registers a TTree to be included in the output stream using logical parameters that describe the histogram. More...
|
|
StatusCode | writeAndDelete (TH1 *h) |
| Write and delete a histogram. More...
|
|
StatusCode | deregHist (TH1 *h) |
| De-registers a TH1 from the THistSvc, but does NOT delete the object. More...
|
|
StatusCode | deregGraph (TGraph *g) |
| De-registers a TGraph from the THistSvc, but does NOT delete the object. More...
|
|
StatusCode | deregObject (const std::string &objName) |
| De-registers a TObject from the THistSvc, but does NOT delete the object. More...
|
|
StatusCode | deregAll () |
| De-registers all TH1 objects from the THistSvc, but does NOT delete the objects. More...
|
|
const std::string & | system () const |
|
Interval_t | interval () const |
|
MgmtAttr_t | histo_mgmt () const |
|
const std::string & | chain () const |
|
const std::string & | merge () const |
|
HistMap_t & | map () |
| A map containing all histograms registered with this MonGroup. More...
|
|
| MonGroup (const MonGroup &o) |
|
MonGroup & | operator= (const MonGroup &o) |
|
A container of information describing a monitoring object.
Definition at line 137 of file ManagedMonitorToolBase.h.
◆ HistMap_t
◆ MonGroup() [1/6]
◆ MonGroup() [2/6]
◆ MonGroup() [3/6]
◆ MonGroup() [4/6]
◆ MonGroup() [5/6]
◆ MonGroup() [6/6]
ManagedMonitorToolBase::MonGroup::MonGroup |
( |
| ) |
|
|
inlineprivate |
◆ badusage()
void ManagedMonitorToolBase::MonGroup::badusage |
( |
| ) |
|
|
staticprivate |
◆ chain()
const std::string& ManagedMonitorToolBase::MonGroup::chain |
( |
| ) |
const |
|
inline |
◆ deregAll()
StatusCode ManagedMonitorToolBase::MonGroup::deregAll |
( |
| ) |
|
De-registers all TH1 objects from the THistSvc, but does NOT delete the objects.
Definition at line 312 of file ManagedMonitorToolBase.cxx.
316 bool isSuccess(
true);
319 typedef HistMap_t::const_iterator MapIter_t;
320 MapIter_t mapEnd =
m_map.end();
321 for( MapIter_t
i =
m_map.begin();
i != mapEnd; ++
i ) {
323 if( !
sc.isSuccess() )
330 return StatusCode::SUCCESS;
333 return StatusCode::FAILURE;
◆ deregGraph()
StatusCode ManagedMonitorToolBase::MonGroup::deregGraph |
( |
TGraph * |
g | ) |
|
De-registers a TGraph from the THistSvc, but does NOT delete the object.
Definition at line 288 of file ManagedMonitorToolBase.cxx.
295 return StatusCode::FAILURE;
◆ deregHist()
StatusCode ManagedMonitorToolBase::MonGroup::deregHist |
( |
TH1 * |
h | ) |
|
De-registers a TH1 from the THistSvc, but does NOT delete the object.
Definition at line 274 of file ManagedMonitorToolBase.cxx.
278 std::string hName(
h->GetName() );
279 m_map.erase( hName );
283 return StatusCode::FAILURE;
◆ deregObject()
StatusCode ManagedMonitorToolBase::MonGroup::deregObject |
( |
const std::string & |
objName | ) |
|
De-registers a TObject from the THistSvc, but does NOT delete the object.
Definition at line 300 of file ManagedMonitorToolBase.cxx.
307 return StatusCode::FAILURE;
◆ getHist() [1/2]
StatusCode ManagedMonitorToolBase::MonGroup::getHist |
( |
TH1 *& |
h, |
|
|
const std::string & |
hName |
|
) |
| |
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 204 of file ManagedMonitorToolBase.cxx.
211 return StatusCode::FAILURE;
◆ getHist() [2/2]
StatusCode ManagedMonitorToolBase::MonGroup::getHist |
( |
TH2 *& |
h, |
|
|
const std::string & |
hName |
|
) |
| |
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 216 of file ManagedMonitorToolBase.cxx.
223 return StatusCode::FAILURE;
◆ histo_mgmt()
MgmtAttr_t ManagedMonitorToolBase::MonGroup::histo_mgmt |
( |
| ) |
const |
|
inline |
◆ interval()
Interval_t ManagedMonitorToolBase::MonGroup::interval |
( |
| ) |
const |
|
inline |
◆ map()
HistMap_t& ManagedMonitorToolBase::MonGroup::map |
( |
| ) |
|
|
inline |
◆ merge()
const std::string& ManagedMonitorToolBase::MonGroup::merge |
( |
| ) |
const |
|
inline |
◆ ncopies()
unsigned ManagedMonitorToolBase::MonGroup::ncopies |
( |
| ) |
|
|
static |
◆ operator=()
◆ regEfficiency()
StatusCode ManagedMonitorToolBase::MonGroup::regEfficiency |
( |
TEfficiency * |
e | ) |
|
Registers a TEfficiency to be included in the output stream.
Definition at line 227 of file ManagedMonitorToolBase.cxx.
231 return StatusCode::FAILURE;
◆ regGraph()
StatusCode ManagedMonitorToolBase::MonGroup::regGraph |
( |
TGraph * |
g | ) |
|
Registers a TGraph to be included in the output stream using logical parameters that describe the histogram.
The optional 'dqmAlgorithm' parameter may be used to specify an algorithm to automatically check the histogram after it has been filled.
Definition at line 236 of file ManagedMonitorToolBase.cxx.
243 return StatusCode::FAILURE;
◆ regHist()
StatusCode ManagedMonitorToolBase::MonGroup::regHist |
( |
TH1 * |
h | ) |
|
Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram.
The optional 'dqmAlgorithm' parameter may be used to specify an algorithm to automatically check the histogram after it has been filled.
Definition at line 191 of file ManagedMonitorToolBase.cxx.
195 std::string hName(
h->GetName() );
196 m_map.emplace( hName,
h );
200 return StatusCode::FAILURE;
◆ regTree()
StatusCode ManagedMonitorToolBase::MonGroup::regTree |
( |
TTree * |
t | ) |
|
Registers a TTree to be included in the output stream using logical parameters that describe the histogram.
Definition at line 248 of file ManagedMonitorToolBase.cxx.
255 return StatusCode::FAILURE;
◆ system()
const std::string& ManagedMonitorToolBase::MonGroup::system |
( |
| ) |
const |
|
inline |
◆ writeAndDelete()
StatusCode ManagedMonitorToolBase::MonGroup::writeAndDelete |
( |
TH1 * |
h | ) |
|
Write and delete a histogram.
Definition at line 260 of file ManagedMonitorToolBase.cxx.
264 std::string hName(
h->GetName() );
265 m_map.erase( hName );
269 return StatusCode::FAILURE;
◆ m_chain
std::string ManagedMonitorToolBase::MonGroup::m_chain |
|
private |
◆ m_histo_mgmt
MgmtAttr_t ManagedMonitorToolBase::MonGroup::m_histo_mgmt |
|
private |
◆ m_interval
Interval_t ManagedMonitorToolBase::MonGroup::m_interval |
|
private |
◆ m_map
HistMap_t ManagedMonitorToolBase::MonGroup::m_map |
|
private |
◆ m_merge
std::string ManagedMonitorToolBase::MonGroup::m_merge |
|
private |
◆ m_system
std::string ManagedMonitorToolBase::MonGroup::m_system |
|
private |
◆ m_tool
The documentation for this class was generated from the following files:
::StatusCode StatusCode
StatusCode definition for legacy code.