ATLAS Offline Software
Public Types | Public Member Functions | Public Attributes | List of all members
node Class Reference

#include <node.h>

Inheritance diagram for node:
Collaboration diagram for node:

Public Types

enum  TYPE { HISTOGRAM, DIRECTORY, DUFF }
 

Public Member Functions

 node (node *n=0, const std::string &d="", TObject *t=0)
 
virtual ~node ()
 
void name (const std::string &n)
 
const std::string & name () const
 
void path (const std::string &p)
 
const std::string & path () const
 
nodeparent ()
 
const nodeparent () const
 
const std::string & depth () const
 
void type (TYPE t)
 
virtual TYPE type () const
 
std::string stype () const
 
const TObject * object () const
 
TObject * object ()
 
void addrate (const std::string &s, double r)
 
void addrate (const std::pair< std::string, double > &r)
 
const std::pair< std::string, double > & rate () const
 

Public Attributes

std::string mname
 
nodemparent
 
TYPE mtype
 
std::string mpath
 
std::string mdepth
 
TObject * mobj
 
std::pair< std::string, double > mhirate
 
elements
 STL member. More...
 

Detailed Description

Definition at line 24 of file node.h.

Member Enumeration Documentation

◆ TYPE

enum node::TYPE
Enumerator
HISTOGRAM 
DIRECTORY 
DUFF 

Definition at line 28 of file node.h.

28 { HISTOGRAM, DIRECTORY, DUFF };

Constructor & Destructor Documentation

◆ node()

node::node ( node n = 0,
const std::string &  d = "",
TObject *  t = 0 
)
inline

Definition at line 32 of file node.h.

32  :
33  mname("duff"), mparent(n), mtype(DUFF), mpath(""), mdepth(d), mobj(t) {
34  if ( t!=0 ) mname = t->GetName();
35  mhirate = std::pair<std::string, double>( "", 0);
36  }

◆ ~node()

virtual node::~node ( )
inlinevirtual

Definition at line 38 of file node.h.

38 { }

Member Function Documentation

◆ addrate() [1/2]

void node::addrate ( const std::pair< std::string, double > &  r)
inline

Definition at line 67 of file node.h.

67  {
68  if ( r.second > mhirate.second ) mhirate = r;
69  }

◆ addrate() [2/2]

void node::addrate ( const std::string &  s,
double  r 
)
inline

Definition at line 63 of file node.h.

63  {
64  addrate( std::pair<std::string, double>( s, r ) );
65  }

◆ depth()

const std::string& node::depth ( ) const
inline

Definition at line 49 of file node.h.

49 { return mdepth; }

◆ name() [1/2]

const std::string& node::name ( ) const
inline

Definition at line 41 of file node.h.

41 { return mname; }

◆ name() [2/2]

void node::name ( const std::string &  n)
inline

Definition at line 40 of file node.h.

40 { mname=n; }

◆ object() [1/2]

TObject* node::object ( )
inline

Definition at line 61 of file node.h.

61 { return mobj; }

◆ object() [2/2]

const TObject* node::object ( ) const
inline

Definition at line 60 of file node.h.

60 { return mobj; }

◆ parent() [1/2]

node* node::parent ( )
inline

Definition at line 46 of file node.h.

46 { return mparent; }

◆ parent() [2/2]

const node* node::parent ( ) const
inline

Definition at line 47 of file node.h.

47 { return mparent; }

◆ path() [1/2]

const std::string& node::path ( ) const
inline

Definition at line 44 of file node.h.

44 { return mpath; }

◆ path() [2/2]

void node::path ( const std::string &  p)
inline

Definition at line 43 of file node.h.

43 { mpath=p; }

◆ rate()

const std::pair<std::string, double>& node::rate ( ) const
inline

Definition at line 71 of file node.h.

71 { return mhirate; }

◆ stype()

std::string node::stype ( ) const
inline

Definition at line 54 of file node.h.

54  {
55  if ( type()==DIRECTORY ) return "DIRECTORY";
56  if ( type()==HISTOGRAM ) return "HISTOGRAM";
57  return "DUFF";
58  };

◆ type() [1/2]

virtual TYPE node::type ( ) const
inlinevirtual

Definition at line 52 of file node.h.

52 { return mtype; }

◆ type() [2/2]

void node::type ( TYPE  t)
inline

Definition at line 51 of file node.h.

51 { mtype=t; }

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.

◆ mdepth

std::string node::mdepth

Definition at line 82 of file node.h.

◆ mhirate

std::pair<std::string, double> node::mhirate

Definition at line 86 of file node.h.

◆ mname

std::string node::mname

Definition at line 76 of file node.h.

◆ mobj

TObject* node::mobj

Definition at line 84 of file node.h.

◆ mparent

node* node::mparent

Definition at line 77 of file node.h.

◆ mpath

std::string node::mpath

Definition at line 80 of file node.h.

◆ mtype

TYPE node::mtype

Definition at line 78 of file node.h.


The documentation for this class was generated from the following file:
beamspotman.r
def r
Definition: beamspotman.py:672
node::mparent
node * mparent
Definition: node.h:77
hist_file_dump.d
d
Definition: hist_file_dump.py:142
node::mhirate
std::pair< std::string, double > mhirate
Definition: node.h:86
node::type
virtual TYPE type() const
Definition: node.h:52
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
node::mtype
TYPE mtype
Definition: node.h:78
node::DUFF
@ DUFF
Definition: node.h:28
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
beamspotman.n
n
Definition: beamspotman.py:727
node::mname
std::string mname
Definition: node.h:76
node::mpath
std::string mpath
Definition: node.h:80
node::HISTOGRAM
@ HISTOGRAM
Definition: node.h:28
node::addrate
void addrate(const std::string &s, double r)
Definition: node.h:63
node::DIRECTORY
@ DIRECTORY
Definition: node.h:28
node::mobj
TObject * mobj
Definition: node.h:84
node::mdepth
std::string mdepth
Definition: node.h:82
python.SystemOfUnits.s
float s
Definition: SystemOfUnits.py:147