The Gaudi Framework  v36r13 (995e4364)
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)
 
bool operator< (THistID const &rhs) const
 

Public Attributes

std::string id {}
 
TObject * obj { nullptr }
 
TFile * file { nullptr }
 
histMut_tmutex { nullptr }
 
Mode mode { INVALID }
 
ObjectType type { ObjectType::UNKNOWN }
 
bool temp { true }
 
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 244 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 256 of file THistSvc.h.

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

◆ THistID() [4/4]

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

Definition at line 257 of file THistSvc.h.

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

Member Function Documentation

◆ operator<()

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

Definition at line 260 of file THistSvc.h.

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

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 262 of file THistSvc.h.

262  {
263  ost << "id: " << hid.id << " t: " << hid.temp << " s: " << hid.shared << " M: " << hid.mode << " m: " << hid.mutex
264  << " o: " << hid.obj << " T: " << static_cast<int>( hid.type ) << " " << hid.obj->IsA()->GetName();
265  return ost;
266  }

Member Data Documentation

◆ file

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

Definition at line 247 of file THistSvc.h.

◆ id

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

Definition at line 245 of file THistSvc.h.

◆ mode

Mode THistSvc::THistID::mode { INVALID }

Definition at line 249 of file THistSvc.h.

◆ mutex

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

Definition at line 248 of file THistSvc.h.

◆ obj

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

Definition at line 246 of file THistSvc.h.

◆ shared

bool THistSvc::THistID::shared { false }

Definition at line 252 of file THistSvc.h.

◆ temp

bool THistSvc::THistID::temp { true }

Definition at line 251 of file THistSvc.h.

◆ type

ObjectType THistSvc::THistID::type { ObjectType::UNKNOWN }

Definition at line 250 of file THistSvc.h.


The documentation for this struct was generated from the following file:
THistSvc::THistID::id
std::string id
Definition: THistSvc.h:245
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:251
THistSvc::THistID::file
TFile * file
Definition: THistSvc.h:247
THistSvc::THistID::obj
TObject * obj
Definition: THistSvc.h:246
THistSvc::THistID::mode
Mode mode
Definition: THistSvc.h:249