ATLAS Offline Software
Loading...
Searching...
No Matches
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.
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.

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.

Detailed Description

Definition at line 739 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 1947 of file ManagedMonitorToolBase.cxx.

1949{
1950 return getStreamName(tool, group, objName, usePreviousInterval);
1951}
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.

◆ 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 1937 of file ManagedMonitorToolBase.cxx.

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

◆ 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 2184 of file ManagedMonitorToolBase.cxx.

2185 {
2186 std::string::size_type pos = streamName.find('/');
2187
2188 if (pos == std::string::npos) {
2189 root = "";
2190 rem = streamName;
2191 return;
2192 }
2193
2194 if (pos == 0) {
2195 parseString(streamName.substr(1,streamName.length()),root,rem);
2196 } else {
2197 root = streamName.substr(0,pos);
2198 rem = streamName.substr(pos+1,streamName.length());
2199 }
2200
2201}
static void parseString(const std::string &streamName, std::string &root, std::string &rem)
A helper non-virtual function, parses id string.

The documentation for this class was generated from the following files: