|
ATLAS Offline Software
|
Go to the documentation of this file.
21 class node :
public std::vector<node*> {
31 if (
t!=0 )
mname =
t->GetName();
32 mhirate = std::pair<std::string, double>(
"", 0);
61 addrate( std::pair<std::string, double>(
s,
r ) );
64 void addrate(
const std::pair<std::string, double>&
r ) {
68 const std::pair<std::string, double>&
rate()
const {
return mhirate; }
90 s <<
n.depth() <<
n.name() <<
"::" <<
n.stype() <<
" : obj " <<
n.object() <<
" : size " <<
n.size() <<
"\tpath " <<
n.path();
92 else if (
n.size() ) {
93 if (
n.parent() )
s <<
"\t( parent " <<
n.parent()->name() <<
" )";
94 if (
n.rate().first!=
"" )
s <<
"\t\t:::(max rate chain " <<
n.rate().first <<
" " <<
n.rate().second <<
" ):::";
95 for (
unsigned i=0 ;
i<
n.size() ;
i++ ) {
97 s <<
"\n" <<
i <<
" " <<
n.depth() <<
" " << *
n[
i];
std::ostream & operator<<(std::ostream &s, const node &n)
void path(const std::string &p)
const std::string & depth() const
std::pair< std::string, double > mhirate
virtual TYPE type() const
void addrate(const std::pair< std::string, double > &r)
const std::pair< std::string, double > & rate() const
const node * parent() const
const TObject * object() const
void name(const std::string &n)
void addrate(const std::string &s, double r)
std::string stype() const
const std::string & path() const
node(node *n=0, const std::string &d="", TObject *t=0)
const std::string & name() const