The Gaudi Framework  v36r1 (3e2fb5a8)
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 241 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 252 of file THistSvc.h.

252 : id( i ), temp( t ), obj( o ), file( f ) {}

◆ THistID() [4/4]

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

Definition at line 253 of file THistSvc.h.

254  : id( i ), temp( t ), obj( o ), file( f ), mode( m ) {}

Member Function Documentation

◆ operator<()

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

Definition at line 266 of file THistSvc.h.

266 { return ( obj < rhs.obj ); }

◆ reset()

void THistSvc::THistID::reset ( )
inline

Definition at line 256 of file THistSvc.h.

256  {
257  id = "";
258  temp = true;
259  obj = nullptr;
260  file = nullptr;
261  mode = INVALID;
262  mutex = nullptr;
263  shared = false;
264  }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 268 of file THistSvc.h.

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

Member Data Documentation

◆ file

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

Definition at line 245 of file THistSvc.h.

◆ id

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

Definition at line 242 of file THistSvc.h.

◆ mode

Mode THistSvc::THistID::mode {INVALID}

Definition at line 246 of file THistSvc.h.

◆ mutex

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

Definition at line 247 of file THistSvc.h.

◆ obj

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

Definition at line 244 of file THistSvc.h.

◆ shared

bool THistSvc::THistID::shared {false}

Definition at line 248 of file THistSvc.h.

◆ temp

bool THistSvc::THistID::temp {true}

Definition at line 243 of file THistSvc.h.


The documentation for this struct was generated from the following file:
THistSvc::THistID::id
std::string id
Definition: THistSvc.h:242
THistSvc::INVALID
@ INVALID
Definition: THistSvc.h:222
bug_34121.t
t
Definition: bug_34121.py:30
Gaudi::Units::m
constexpr double m
Definition: SystemOfUnits.h:108
THistSvc::THistID::temp
bool temp
Definition: THistSvc.h:243
THistSvc::THistID::file
TFile * file
Definition: THistSvc.h:245
THistSvc::THistID::obj
TObject * obj
Definition: THistSvc.h:244
THistSvc::THistID::mutex
histMut_t * mutex
Definition: THistSvc.h:247
THistSvc::THistID::mode
Mode mode
Definition: THistSvc.h:246
THistSvc::THistID::shared
bool shared
Definition: THistSvc.h:248