ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
HistDetails Class Reference

details of the histogram axes etc More...

#include <computils.h>

Collaboration diagram for HistDetails:

Public Member Functions

 HistDetails (const std::vector< std::string > &v)
 
 HistDetails (const std::string *vp)
 
std::string name () const
 
std::string detail () const
 
std::string info () const
 
std::string xtitle () const
 
std::string ytitle () const
 
const AxisInfoxaxis () const
 
const AxisInfoyaxis () const
 

Private Member Functions

void getextra ()
 

Private Attributes

std::vector< std::string > m_details
 
std::string m_extra
 
AxisInfo m_xinfo
 
AxisInfo m_yinfo
 

Detailed Description

details of the histogram axes etc

Definition at line 1254 of file computils.h.

Constructor & Destructor Documentation

◆ HistDetails() [1/2]

HistDetails::HistDetails ( const std::vector< std::string > &  v)
inline

Definition at line 1258 of file computils.h.

1258  : m_extra(""), m_xinfo(v[2]), m_yinfo(v[4]) {
1259  if ( v.size() < 6 ) throw std::exception();
1260  m_details.reserve(6);
1261  for ( size_t i=0 ; i<6 ; i++ ) m_details.push_back(v[i]);
1262  getextra();
1263  }

◆ HistDetails() [2/2]

HistDetails::HistDetails ( const std::string *  vp)
inline

Definition at line 1265 of file computils.h.

1265  : m_extra(""), m_xinfo(vp[2]), m_yinfo(vp[4]) {
1266  m_details.reserve(6);
1267  for ( size_t i=0 ; i<6 ; i++ ) m_details.push_back(vp[i]);
1268  getextra();
1269  }

Member Function Documentation

◆ detail()

std::string HistDetails::detail ( ) const
inline

Definition at line 1273 of file computils.h.

1273 { return m_extra; }

◆ getextra()

void HistDetails::getextra ( )
inlineprivate

Definition at line 1285 of file computils.h.

1285  {
1286  if ( contains( m_details[0], "-" ) ) {
1287  m_extra = m_details[0].substr( m_details[0].find('-'), m_details[0].size() );
1288  m_details[0] = m_details[0].substr( 0, m_details[0].find('-') );
1289  }
1290  if ( contains( m_details[0], "+" ) ) {
1291  m_extra = m_details[0].substr( m_details[0].find('+'), m_details[0].size() );
1292  m_details[0] = m_details[0].substr( 0, m_details[0].find('+') );
1293  }
1294  }

◆ info()

std::string HistDetails::info ( ) const
inline

Definition at line 1275 of file computils.h.

1275 { return m_details[1]; }

◆ name()

std::string HistDetails::name ( ) const
inline

Definition at line 1271 of file computils.h.

1271 { return m_details[0]; }

◆ xaxis()

const AxisInfo& HistDetails::xaxis ( ) const
inline

Definition at line 1280 of file computils.h.

1280 { return m_xinfo; }

◆ xtitle()

std::string HistDetails::xtitle ( ) const
inline

Definition at line 1277 of file computils.h.

1277 { return m_details[3]; }

◆ yaxis()

const AxisInfo& HistDetails::yaxis ( ) const
inline

Definition at line 1281 of file computils.h.

1281 { return m_yinfo; }

◆ ytitle()

std::string HistDetails::ytitle ( ) const
inline

Definition at line 1278 of file computils.h.

1278 { return m_details[5]; }

Member Data Documentation

◆ m_details

std::vector<std::string> HistDetails::m_details
private

Definition at line 1298 of file computils.h.

◆ m_extra

std::string HistDetails::m_extra
private

Definition at line 1300 of file computils.h.

◆ m_xinfo

AxisInfo HistDetails::m_xinfo
private

Definition at line 1302 of file computils.h.

◆ m_yinfo

AxisInfo HistDetails::m_yinfo
private

Definition at line 1303 of file computils.h.


The documentation for this class was generated from the following file:
HistDetails::getextra
void getextra()
Definition: computils.h:1285
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
contains
bool contains(const std::string &s, const std::string &p)
does a string contain the substring
Definition: hcg.cxx:111
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
lumiFormat.i
int i
Definition: lumiFormat.py:85
HistDetails::m_xinfo
AxisInfo m_xinfo
Definition: computils.h:1302
HistDetails::m_yinfo
AxisInfo m_yinfo
Definition: computils.h:1303
calibdata.exception
exception
Definition: calibdata.py:496
HistDetails::m_extra
std::string m_extra
Definition: computils.h:1300
python.PyAthena.v
v
Definition: PyAthena.py:154
HistDetails::m_details
std::vector< std::string > m_details
Definition: computils.h:1298