The Gaudi Framework  v30r3 (a5ef0a68)
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 186 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 197 of file THistSvc.h.

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

Definition at line 198 of file THistSvc.h.

199  : id( i ), temp( t ), obj( o ), file( f ), mode( m )
200  {
201  }
std::string id
Definition: THistSvc.h:187
constexpr double m
Definition: SystemOfUnits.h:94
TObject * obj
Definition: THistSvc.h:189

Member Function Documentation

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

Definition at line 214 of file THistSvc.h.

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

Definition at line 203 of file THistSvc.h.

204  {
205  id = "";
206  temp = true;
207  obj = nullptr;
208  file = nullptr;
209  mode = INVALID;
210  mutex = nullptr;
211  shared = false;
212  }
histMut_t * mutex
Definition: THistSvc.h:192
TObject * obj
Definition: THistSvc.h:189

Friends And Related Function Documentation

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

Definition at line 216 of file THistSvc.h.

217  {
218  ost << "id: " << hid.id << " t: " << hid.temp << " s: " << hid.shared << " M: " << hid.mode << " m: " << hid.mutex
219  << " o: " << hid.obj << " " << hid.obj->IsA()->GetName();
220  return ost;
221  }

Member Data Documentation

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

Definition at line 190 of file THistSvc.h.

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

Definition at line 187 of file THistSvc.h.

Mode THistSvc::THistID::mode {INVALID}

Definition at line 191 of file THistSvc.h.

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

Definition at line 192 of file THistSvc.h.

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

Definition at line 189 of file THistSvc.h.

bool THistSvc::THistID::shared {false}

Definition at line 193 of file THistSvc.h.

bool THistSvc::THistID::temp {true}

Definition at line 188 of file THistSvc.h.


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