ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ManagedMonitorToolBase::OutputMetadata Class Reference

#include <ManagedMonitorToolBase.h>

Collaboration diagram for ManagedMonitorToolBase::OutputMetadata:

Public Member Functions

 OutputMetadata (TTree *metadata)
 
virtual ~OutputMetadata ()
 
 OutputMetadata (const OutputMetadata &)=delete
 
OutputMetadataoperator= (const OutputMetadata &)=delete
 
virtual void fill (const std::string &name, Interval_t interval, std::string trigger, std::string merge)
 

Protected Member Functions

void copyString (char *to, const std::string &from)
 

Protected Attributes

const int m_charArrSize
 
TTree * m_metadata
 
char * m_nameData
 
char * m_intervalData
 
char * m_triggerData
 
char * m_mergeData
 

Detailed Description

Definition at line 700 of file ManagedMonitorToolBase.h.

Constructor & Destructor Documentation

◆ OutputMetadata() [1/2]

ManagedMonitorToolBase::OutputMetadata::OutputMetadata ( TTree *  metadata)

Definition at line 1838 of file ManagedMonitorToolBase.cxx.

1840  : m_charArrSize(100)
1841  , m_metadata(metadata)
1842  , m_nameData(0)
1843  //, m_levelData(0)
1844  , m_intervalData(0)
1845  , m_triggerData(0)
1846  , m_mergeData(0)
1847 {
1848  m_nameData = new char[m_charArrSize];
1849  //m_levelData = new char[m_charArrSize];
1850  m_intervalData = new char[m_charArrSize];
1851  m_triggerData = new char[m_charArrSize];
1852  m_mergeData = new char[m_charArrSize];
1853  m_metadata->Branch( "Name", m_nameData, "Name/C" );
1854  //m_metadata->Branch( "LevelOfDetail", m_levelData, "LevelOfDetail/C" );
1855  m_metadata->Branch( "Interval", m_intervalData, "Interval/C" );
1856  m_metadata->Branch( "TriggerChain", m_triggerData, "TriggerChain/C" );
1857  m_metadata->Branch( "MergeMethod", m_mergeData, "MergeMethod/C" );
1858 }

◆ ~OutputMetadata()

ManagedMonitorToolBase::OutputMetadata::~OutputMetadata ( )
virtual

Definition at line 1861 of file ManagedMonitorToolBase.cxx.

1863 {
1864  delete [] m_mergeData;
1865  delete [] m_triggerData;
1866  delete [] m_intervalData;
1867  //delete [] m_levelData;
1868  delete [] m_nameData;
1869 }

◆ OutputMetadata() [2/2]

ManagedMonitorToolBase::OutputMetadata::OutputMetadata ( const OutputMetadata )
delete

Member Function Documentation

◆ copyString()

void ManagedMonitorToolBase::OutputMetadata::copyString ( char *  to,
const std::string &  from 
)
protected

Definition at line 1899 of file ManagedMonitorToolBase.cxx.

1901 {
1902  int i = 0;
1903  const char* f = from.c_str();
1904  while( (++i < m_charArrSize) && ((*to++ = *f++) != 0) ) {};
1905  if( i == m_charArrSize ) {
1906  *to = 0;
1907  }
1908 }

◆ fill()

void ManagedMonitorToolBase::OutputMetadata::fill ( const std::string &  name,
Interval_t  interval,
std::string  trigger,
std::string  merge 
)
virtual

Definition at line 1873 of file ManagedMonitorToolBase.cxx.

1879 {
1880  // ROOT does not properly write empty strings to output files in all cases. I haven't reported
1881  // this to the ROOT developers yet because I don't have time to develope a simple test case
1882  // for them (independent of Atlas software).
1883  // --M.G.Wilson, 7 July 2008
1884  if( trigger.empty() )
1885  trigger = "<none>";
1886  if( merge.empty() )
1887  merge = "<default>";
1888 
1890  //copyString( m_levelData, ManagedMonitorToolBase::levelOfDetailEnumToString( level ) );
1892  copyString( m_triggerData, trigger );
1894  m_metadata->Fill();
1895 }

◆ operator=()

OutputMetadata& ManagedMonitorToolBase::OutputMetadata::operator= ( const OutputMetadata )
delete

Member Data Documentation

◆ m_charArrSize

const int ManagedMonitorToolBase::OutputMetadata::m_charArrSize
protected

Definition at line 715 of file ManagedMonitorToolBase.h.

◆ m_intervalData

char* ManagedMonitorToolBase::OutputMetadata::m_intervalData
protected

Definition at line 719 of file ManagedMonitorToolBase.h.

◆ m_mergeData

char* ManagedMonitorToolBase::OutputMetadata::m_mergeData
protected

Definition at line 721 of file ManagedMonitorToolBase.h.

◆ m_metadata

TTree* ManagedMonitorToolBase::OutputMetadata::m_metadata
protected

Definition at line 716 of file ManagedMonitorToolBase.h.

◆ m_nameData

char* ManagedMonitorToolBase::OutputMetadata::m_nameData
protected

Definition at line 717 of file ManagedMonitorToolBase.h.

◆ m_triggerData

char* ManagedMonitorToolBase::OutputMetadata::m_triggerData
protected

Definition at line 720 of file ManagedMonitorToolBase.h.


The documentation for this class was generated from the following files:
ManagedMonitorToolBase::OutputMetadata::m_intervalData
char * m_intervalData
Definition: ManagedMonitorToolBase.h:719
ManagedMonitorToolBase::OutputMetadata::m_charArrSize
const int m_charArrSize
Definition: ManagedMonitorToolBase.h:715
ManagedMonitorToolBase::OutputMetadata::m_metadata
TTree * m_metadata
Definition: ManagedMonitorToolBase.h:716
python.checkMetadata.metadata
metadata
Definition: checkMetadata.py:175
ManagedMonitorToolBase::OutputMetadata::m_triggerData
char * m_triggerData
Definition: ManagedMonitorToolBase.h:720
ManagedMonitorToolBase::OutputMetadata::m_nameData
char * m_nameData
Definition: ManagedMonitorToolBase.h:717
lumiFormat.i
int i
Definition: lumiFormat.py:85
getLatestRuns.interval
interval
Definition: getLatestRuns.py:24
hist_file_dump.f
f
Definition: hist_file_dump.py:135
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CxxUtils::to
CONT to(RANGE &&r)
Definition: ranges.h:39
ManagedMonitorToolBase::OutputMetadata::m_mergeData
char * m_mergeData
Definition: ManagedMonitorToolBase.h:721
ManagedMonitorToolBase::OutputMetadata::copyString
void copyString(char *to, const std::string &from)
Definition: ManagedMonitorToolBase.cxx:1900
merge
Definition: merge.py:1
ManagedMonitorToolBase::intervalEnumToString
static std::string intervalEnumToString(Interval_t interval)
Converts a LevelOfDetail_t to a string of the same name.
Definition: ManagedMonitorToolBase.cxx:537