ATLAS Offline Software
Public Member Functions | Static Public Member Functions | List of all members
ManagedMonitorToolBase::NoOutputStream Class Reference

#include <ManagedMonitorToolBase.h>

Inheritance diagram for ManagedMonitorToolBase::NoOutputStream:
Collaboration diagram for ManagedMonitorToolBase::NoOutputStream:

Public Member Functions

virtual std::string getStreamName (const ManagedMonitorToolBase *tool, const MonGroup &group, const std::string &objName, bool usePreviousInterval=false)
 A function that converts a MonGroup of logical parameters into a physical output stream name. More...
 
virtual std::string getDirectoryName (const ManagedMonitorToolBase *tool, const MonGroup &group, const std::string &objName, const bool usePreviousInterval)
 A function that returns TDirectory path in a file that corresponds to a given MonGroup and object name. More...
 

Static Public Member Functions

static void parseString (const std::string &streamName, std::string &root, std::string &rem)
 A helper non-virtual function, parses id string. More...
 

Detailed Description

Definition at line 738 of file ManagedMonitorToolBase.h.

Member Function Documentation

◆ getDirectoryName()

std::string ManagedMonitorToolBase::NoOutputStream::getDirectoryName ( const ManagedMonitorToolBase tool,
const MonGroup group,
const std::string &  objName,
const bool  usePreviousInterval 
)
virtual

A function that returns TDirectory path in a file that corresponds to a given MonGroup and object name.

Implements ManagedMonitorToolBase::StreamNameFcn.

Definition at line 1946 of file ManagedMonitorToolBase.cxx.

1948 {
1949  return getStreamName(tool, group, objName, usePreviousInterval);
1950 }

◆ getStreamName()

std::string ManagedMonitorToolBase::NoOutputStream::getStreamName ( const ManagedMonitorToolBase tool,
const MonGroup group,
const std::string &  objName,
bool  usePreviousInterval = false 
)
virtual

A function that converts a MonGroup of logical parameters into a physical output stream name.

Implements ManagedMonitorToolBase::StreamNameFcn.

Definition at line 1936 of file ManagedMonitorToolBase.cxx.

1938 {
1939  std::ostringstream streamName;
1940  streamName << group.system() << "/" << objName;
1941  return streamName.str();
1942 }

◆ parseString()

void ManagedMonitorToolBase::StreamNameFcn::parseString ( const std::string &  streamName,
std::string &  root,
std::string &  rem 
)
staticinherited

A helper non-virtual function, parses id string.

String format: id = /root/rem The method is needed to separate root stream from the directory in a file. E.g. typical streamName is /TestMon/run_211670/lb_360/spacepointVsEvent_managed

  • TestMon is the stream from configuration file (svcMgr.THistSvc.Output += ["TestMon DATAFILE='TestMon.root' OPT='RECREATE'"])
  • run_211670/lb_360/ - directory path
  • spacepointVsEvent_managed - object name

in this case, root = TestMon rem = run_211670/lb_360/spacepointVsEvent_managed

Definition at line 2183 of file ManagedMonitorToolBase.cxx.

2184  {
2185  std::string::size_type pos = streamName.find('/');
2186 
2187  if (pos == std::string::npos) {
2188  root = "";
2189  rem = streamName;
2190  return;
2191  }
2192 
2193  if (pos == 0) {
2194  parseString(streamName.substr(1,streamName.length()),root,rem);
2195  } else {
2196  root = streamName.substr(0,pos);
2197  rem = streamName.substr(pos+1,streamName.length());
2198  }
2199 
2200 }

The documentation for this class was generated from the following files:
ManagedMonitorToolBase::NoOutputStream::getStreamName
virtual std::string getStreamName(const ManagedMonitorToolBase *tool, const MonGroup &group, const std::string &objName, bool usePreviousInterval=false)
A function that converts a MonGroup of logical parameters into a physical output stream name.
Definition: ManagedMonitorToolBase.cxx:1937
sendEI_SPB.root
root
Definition: sendEI_SPB.py:34
WriteHiveWithMetaData.streamName
string streamName
Definition: WriteHiveWithMetaData.py:22
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:452
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:16
ManagedMonitorToolBase::StreamNameFcn::parseString
static void parseString(const std::string &streamName, std::string &root, std::string &rem)
A helper non-virtual function, parses id string.
Definition: ManagedMonitorToolBase.cxx:2184
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28