The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
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
 
THistIDoperator= (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::ostream & operator<< (std::ostream &ost, const THistID &hid)
 

Detailed Description

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

Definition at line 238 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 ), obj( o ), file( f ), temp( t ) {}
TObject * obj
Definition THistSvc.h:240
std::string id
Definition THistSvc.h:239

◆ 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 ), obj( o ), file( f ), mode( m ), temp( t ) {}

Member Function Documentation

◆ operator<()

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

Definition at line 255 of file THistSvc.h.

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

◆ operator=()

THistID & THistSvc::THistID::operator= ( const THistID & rhs)
default

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 257 of file THistSvc.h.

257 {
258 ost << "id: " << hid.id << " t: " << hid.temp << " s: " << hid.shared << " M: " << hid.mode << " m: " << hid.mutex
259 << " o: " << hid.obj << " T: " << static_cast<int>( hid.type ) << " " << hid.obj->IsA()->GetName();
260 return ost;
261 }

Member Data Documentation

◆ file

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

Definition at line 241 of file THistSvc.h.

241{ nullptr };

◆ id

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

Definition at line 239 of file THistSvc.h.

239{};

◆ mode

Mode THistSvc::THistID::mode { INVALID }

Definition at line 243 of file THistSvc.h.

243{ INVALID };

◆ mutex

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

Definition at line 242 of file THistSvc.h.

242{ nullptr };

◆ obj

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

Definition at line 240 of file THistSvc.h.

240{ nullptr };

◆ shared

bool THistSvc::THistID::shared { false }

Definition at line 246 of file THistSvc.h.

246{ false };

◆ temp

bool THistSvc::THistID::temp { true }

Definition at line 245 of file THistSvc.h.

245{ true };

◆ type

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

Definition at line 244 of file THistSvc.h.


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