The Gaudi Framework  v33r2 (a6f0ec87)
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 240 of file THistSvc.h.

Constructor & Destructor Documentation

◆ THistID() [1/4]

THistSvc::THistID::THistID ( )
default

◆ THistID() [2/4]

THistSvc::THistID::THistID ( const THistID rhs)
default

◆ THistID() [3/4]

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

Definition at line 251 of file THistSvc.h.

251 : id( i ), temp( t ), obj( o ), file( f ) {}
std::string id
Definition: THistSvc.h:241
TObject * obj
Definition: THistSvc.h:243

◆ THistID() [4/4]

THistSvc::THistID::THistID ( std::string i,
bool &  t,
TObject *  o,
TFile *  f,
Mode  m 
)
inline

Definition at line 252 of file THistSvc.h.

253  : id( i ), temp( t ), obj( o ), file( f ), mode( m ) {}
std::string id
Definition: THistSvc.h:241
constexpr double m
TObject * obj
Definition: THistSvc.h:243

Member Function Documentation

◆ operator<()

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

Definition at line 265 of file THistSvc.h.

265 { return ( obj < rhs.obj ); }
TObject * obj
Definition: THistSvc.h:243

◆ reset()

void THistSvc::THistID::reset ( )
inline

Definition at line 255 of file THistSvc.h.

255  {
256  id = "";
257  temp = true;
258  obj = nullptr;
259  file = nullptr;
260  mode = INVALID;
261  mutex = nullptr;
262  shared = false;
263  }
histMut_t * mutex
Definition: THistSvc.h:246
TObject * obj
Definition: THistSvc.h:243

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 267 of file THistSvc.h.

267  {
268  ost << "id: " << hid.id << " t: " << hid.temp << " s: " << hid.shared << " M: " << hid.mode << " m: " << hid.mutex
269  << " o: " << hid.obj << " " << hid.obj->IsA()->GetName();
270  return ost;
271  }

Member Data Documentation

◆ file

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

Definition at line 244 of file THistSvc.h.

◆ id

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

Definition at line 241 of file THistSvc.h.

◆ mode

Mode THistSvc::THistID::mode {INVALID}

Definition at line 245 of file THistSvc.h.

◆ mutex

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

Definition at line 246 of file THistSvc.h.

◆ obj

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

Definition at line 243 of file THistSvc.h.

◆ shared

bool THistSvc::THistID::shared {false}

Definition at line 247 of file THistSvc.h.

◆ temp

bool THistSvc::THistID::temp {true}

Definition at line 242 of file THistSvc.h.


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