CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
MicroME Struct Reference

Public Member Functions

void add (TObject *obj_to_add) const
 
 MicroME (const std::string *full, const std::string *dir, const std::string *obj, uint32_t flags=0)
 
bool operator< (const MicroME &rhs) const
 

Public Attributes

const std::string * dirname
 
uint32_t flags
 
const std::string * fullname
 
TObject * obj
 
const std::string * objname
 

Detailed Description

Definition at line 113 of file fastHadd.cc.

Constructor & Destructor Documentation

MicroME::MicroME ( const std::string *  full,
const std::string *  dir,
const std::string *  obj,
uint32_t  flags = 0 
)
inline

Definition at line 114 of file fastHadd.cc.

const std::string * objname
Definition: fastHadd.cc:121
TObject * obj
Definition: fastHadd.cc:122
const std::string * dirname
Definition: fastHadd.cc:120
Definition: GenABIO.cc:180
const std::string * fullname
Definition: fastHadd.cc:119
uint32_t flags
Definition: fastHadd.cc:124
dbl *** dir
Definition: mlp_gen.cc:35

Member Function Documentation

void MicroME::add ( TObject *  obj_to_add) const
inline

Definition at line 133 of file fastHadd.cc.

References DEBUG, and obj.

Referenced by counter.Counter::register().

133  {
134  DEBUG(1, "Merging: " << obj->GetName() <<
135  " << " << obj_to_add->GetName() << std::endl);
136 
137  if (dynamic_cast<TH1 *>(obj) && dynamic_cast<TH1 *>(obj_to_add)) {
138  dynamic_cast<TH1 *>(obj)->Add(dynamic_cast<TH1 *>(obj_to_add));
139  } else if (dynamic_cast<TObjString *>(obj) && dynamic_cast<TObjString *>(obj_to_add)) {
140 
141 
142  } else {
143  DEBUG(1, "Cannot merge (different types): " << obj->GetName() <<
144  " << " << obj_to_add->GetName() << std::endl);
145  }
146  };
TObject * obj
Definition: fastHadd.cc:122
#define DEBUG(x, msg)
Definition: fastHadd.cc:100
bool MicroME::operator< ( const MicroME rhs) const
inline

Definition at line 126 of file fastHadd.cc.

References dirname, lessThanMME(), and objname.

126  {
127  return lessThanMME(*this->dirname,
128  *this->objname,
129  *rhs.dirname,
130  *rhs.objname);
131  };
const std::string * objname
Definition: fastHadd.cc:121
const std::string * dirname
Definition: fastHadd.cc:120
static bool lessThanMME(const std::string &lhs_dirname, const std::string &lhs_objname, const std::string &rhs_dirname, const std::string &rhs_objname)
Definition: fastHadd.cc:104

Member Data Documentation

const std::string* MicroME::dirname

Definition at line 120 of file fastHadd.cc.

Referenced by operator<().

uint32_t MicroME::flags

Definition at line 124 of file fastHadd.cc.

const std::string* MicroME::fullname

Definition at line 119 of file fastHadd.cc.

Referenced by addFiles().

TObject* MicroME::obj
mutable

Definition at line 122 of file fastHadd.cc.

Referenced by add(), addFiles(), and processDirectory().

const std::string* MicroME::objname

Definition at line 121 of file fastHadd.cc.

Referenced by operator<().