The Gaudi Framework  v30r4 (9b837755)
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 203 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 214 of file THistSvc.h.

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

Definition at line 215 of file THistSvc.h.

216  : id( i ), temp( t ), obj( o ), file( f ), mode( m )
217  {
218  }
std::string id
Definition: THistSvc.h:204
constexpr double m
Definition: SystemOfUnits.h:94
TObject * obj
Definition: THistSvc.h:206

Member Function Documentation

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

Definition at line 231 of file THistSvc.h.

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

Definition at line 220 of file THistSvc.h.

221  {
222  id = "";
223  temp = true;
224  obj = nullptr;
225  file = nullptr;
226  mode = INVALID;
227  mutex = nullptr;
228  shared = false;
229  }
histMut_t * mutex
Definition: THistSvc.h:209
TObject * obj
Definition: THistSvc.h:206

Friends And Related Function Documentation

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

Definition at line 233 of file THistSvc.h.

234  {
235  ost << "id: " << hid.id << " t: " << hid.temp << " s: " << hid.shared << " M: " << hid.mode << " m: " << hid.mutex
236  << " o: " << hid.obj << " " << hid.obj->IsA()->GetName();
237  return ost;
238  }

Member Data Documentation

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

Definition at line 207 of file THistSvc.h.

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

Definition at line 204 of file THistSvc.h.

Mode THistSvc::THistID::mode {INVALID}

Definition at line 208 of file THistSvc.h.

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

Definition at line 209 of file THistSvc.h.

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

Definition at line 206 of file THistSvc.h.

bool THistSvc::THistID::shared {false}

Definition at line 210 of file THistSvc.h.

bool THistSvc::THistID::temp {true}

Definition at line 205 of file THistSvc.h.


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