The Gaudi Framework  v31r0 (aeb156f0)
THistSvc::THistID Struct Reference

Helper struct that bundles the histogram ID with a mutex, TFile and TObject*. More...

Collaboration diagram for THistSvc::THistID:

Public Member Functions

 THistID ()=default
 
 THistID (const THistID &rhs)=default
 
 THistID (std::string &i, bool &t, TObject *o, TFile *f)
 
 THistID (std::string &i, bool &t, TObject *o, TFile *f, Mode m)
 
void reset ()
 
bool operator< (THistID const &rhs) const
 

Public Attributes

std::string id {""}
 
bool temp {true}
 
TObject * obj {nullptr}
 
TFile * file {nullptr}
 
Mode mode {INVALID}
 
histMut_tmutex {nullptr}
 
bool shared {false}
 

Friends

std::ostreamoperator<< (std::ostream &ost, const THistID &hid)
 

Detailed Description

Helper struct that bundles the histogram ID with a mutex, TFile and TObject*.

Definition at line 200 of file THistSvc.h.

Constructor & Destructor Documentation

THistSvc::THistID::THistID ( )
default
THistSvc::THistID::THistID ( const THistID rhs)
default
THistSvc::THistID::THistID ( std::string i,
bool &  t,
TObject *  o,
TFile *  f 
)
inline

Definition at line 211 of file THistSvc.h.

211 : id( i ), temp( t ), obj( o ), file( f ) {}
std::string id
Definition: THistSvc.h:201
TObject * obj
Definition: THistSvc.h:203
THistSvc::THistID::THistID ( std::string i,
bool &  t,
TObject *  o,
TFile *  f,
Mode  m 
)
inline

Definition at line 212 of file THistSvc.h.

213  : id( i ), temp( t ), obj( o ), file( f ), mode( m ) {}
std::string id
Definition: THistSvc.h:201
constexpr double m
Definition: SystemOfUnits.h:92
TObject * obj
Definition: THistSvc.h:203

Member Function Documentation

bool THistSvc::THistID::operator< ( THistID const &  rhs) const
inline

Definition at line 225 of file THistSvc.h.

225 { return ( obj < rhs.obj ); }
TObject * obj
Definition: THistSvc.h:203
void THistSvc::THistID::reset ( )
inline

Definition at line 215 of file THistSvc.h.

215  {
216  id = "";
217  temp = true;
218  obj = nullptr;
219  file = nullptr;
220  mode = INVALID;
221  mutex = nullptr;
222  shared = false;
223  }
histMut_t * mutex
Definition: THistSvc.h:206
TObject * obj
Definition: THistSvc.h:203

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream ost,
const THistID hid 
)
friend

Definition at line 227 of file THistSvc.h.

227  {
228  ost << "id: " << hid.id << " t: " << hid.temp << " s: " << hid.shared << " M: " << hid.mode << " m: " << hid.mutex
229  << " o: " << hid.obj << " " << hid.obj->IsA()->GetName();
230  return ost;
231  }

Member Data Documentation

TFile* THistSvc::THistID::file {nullptr}

Definition at line 204 of file THistSvc.h.

std::string THistSvc::THistID::id {""}

Definition at line 201 of file THistSvc.h.

Mode THistSvc::THistID::mode {INVALID}

Definition at line 205 of file THistSvc.h.

histMut_t* THistSvc::THistID::mutex {nullptr}

Definition at line 206 of file THistSvc.h.

TObject* THistSvc::THistID::obj {nullptr}

Definition at line 203 of file THistSvc.h.

bool THistSvc::THistID::shared {false}

Definition at line 207 of file THistSvc.h.

bool THistSvc::THistID::temp {true}

Definition at line 202 of file THistSvc.h.


The documentation for this struct was generated from the following file: