Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 21 of file node.h.

Member Enumeration Documentation

◆ TYPE

enum node::TYPE
Enumerator
HISTOGRAM 
DIRECTORY 
DUFF 

Definition at line 25 of file node.h.

25 { HISTOGRAM, DIRECTORY, DUFF };

Constructor & Destructor Documentation

◆ node()

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

Definition at line 29 of file node.h.

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

◆ ~node()

virtual node::~node ( )
inlinevirtual

Definition at line 35 of file node.h.

35 { }

Member Function Documentation

◆ addrate() [1/2]

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

Definition at line 64 of file node.h.

64  {
65  if ( r.second > mhirate.second ) mhirate = r;
66  }

◆ addrate() [2/2]

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

Definition at line 60 of file node.h.

60  {
61  addrate( std::pair<std::string, double>( s, r ) );
62  }

◆ depth()

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

Definition at line 46 of file node.h.

46 { return mdepth; }

◆ name() [1/2]

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

Definition at line 38 of file node.h.

38 { return mname; }

◆ name() [2/2]

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

Definition at line 37 of file node.h.

37 { mname=n; }

◆ object() [1/2]

TObject* node::object ( )
inline

Definition at line 58 of file node.h.

58 { return mobj; }

◆ object() [2/2]

const TObject* node::object ( ) const
inline

Definition at line 57 of file node.h.

57 { return mobj; }

◆ parent() [1/2]

node* node::parent ( )
inline

Definition at line 43 of file node.h.

43 { return mparent; }

◆ parent() [2/2]

const node* node::parent ( ) const
inline

Definition at line 44 of file node.h.

44 { return mparent; }

◆ path() [1/2]

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

Definition at line 41 of file node.h.

41 { return mpath; }

◆ path() [2/2]

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

Definition at line 40 of file node.h.

40 { mpath=p; }

◆ rate()

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

Definition at line 68 of file node.h.

68 { return mhirate; }

◆ stype()

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

Definition at line 51 of file node.h.

51  {
52  if ( type()==DIRECTORY ) return "DIRECTORY";
53  if ( type()==HISTOGRAM ) return "HISTOGRAM";
54  return "DUFF";
55  };

◆ type() [1/2]

virtual TYPE node::type ( ) const
inlinevirtual

Definition at line 49 of file node.h.

49 { return mtype; }

◆ type() [2/2]

void node::type ( TYPE  t)
inline

Definition at line 48 of file node.h.

48 { mtype=t; }

Member Data Documentation

◆ elements

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

STL member.

◆ mdepth

std::string node::mdepth

Definition at line 79 of file node.h.

◆ mhirate

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

Definition at line 83 of file node.h.

◆ mname

std::string node::mname

Definition at line 73 of file node.h.

◆ mobj

TObject* node::mobj

Definition at line 81 of file node.h.

◆ mparent

node* node::mparent

Definition at line 74 of file node.h.

◆ mpath

std::string node::mpath

Definition at line 77 of file node.h.

◆ mtype

TYPE node::mtype

Definition at line 75 of file node.h.


The documentation for this class was generated from the following file:
beamspotman.r
def r
Definition: beamspotman.py:676
node::mparent
node * mparent
Definition: node.h:74
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
hist_file_dump.d
d
Definition: hist_file_dump.py:143
node::mhirate
std::pair< std::string, double > mhirate
Definition: node.h:83
node::type
virtual TYPE type() const
Definition: node.h:49
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
node::mtype
TYPE mtype
Definition: node.h:75
node::DUFF
@ DUFF
Definition: node.h:25
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition: beamspotman.py:731
node::mname
std::string mname
Definition: node.h:73
node::mpath
std::string mpath
Definition: node.h:77
node::HISTOGRAM
@ HISTOGRAM
Definition: node.h:25
node::addrate
void addrate(const std::string &s, double r)
Definition: node.h:60
node::DIRECTORY
@ DIRECTORY
Definition: node.h:25
node::mobj
TObject * mobj
Definition: node.h:81
node::mdepth
std::string mdepth
Definition: node.h:79