The Gaudi Framework  v36r1 (3e2fb5a8)
THistSvc.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2021 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDISVC_THISTSVC_H
12 #define GAUDISVC_THISTSVC_H
13 
14 // system includes:
15 #include <map>
16 #include <set>
17 #include <string>
18 #include <vector>
19 
20 // Gaudi includes:
21 #include "GaudiKernel/IFileMgr.h"
24 #include "GaudiKernel/ITHistSvc.h"
25 #include "GaudiKernel/MsgStream.h"
26 #include "GaudiKernel/Service.h"
27 
28 // ROOT includes:
29 #include "TEfficiency.h"
30 #include "TGraph.h"
31 #include "TH1.h"
32 #include "TH2.h"
33 #include "TH3.h"
34 #include "TList.h"
35 #include "TObject.h"
36 #include "TTree.h"
37 
38 class IIncidentSvc;
39 class TClass;
40 
41 class THistSvc : public extends<Service, ITHistSvc, IIncidentListener, IIoComponent> {
42 public:
43  using extends::extends;
44 
45  StatusCode initialize() override;
46  StatusCode reinitialize() override;
47  StatusCode finalize() override;
48 
49 public:
50  // Methods from ITHistSvc
53 
55  StatusCode regHist( const std::string& name ) override;
59  StatusCode regHist( const std::string& name, std::unique_ptr<TH1> hist ) override;
64  StatusCode regHist( const std::string& name, std::unique_ptr<TH1> hist, TH1* hist_ptr ) override;
67  StatusCode regHist( const std::string& name, TH1* ) override;
68 
70  StatusCode getHist( const std::string& name, TH1*&, size_t index = 0 ) const override;
72  StatusCode getHist( const std::string& name, TH2*&, size_t index = 0 ) const override;
74  StatusCode getHist( const std::string& name, TH3*&, size_t index = 0 ) const override;
75 
77 
80 
82  StatusCode regTree( const std::string& name ) override;
87  StatusCode regTree( const std::string& name, TTree* ) override;
89  StatusCode getTree( const std::string& name, TTree*& ) const override;
90 
92 
95 
97  StatusCode regGraph( const std::string& name ) override;
102  virtual StatusCode regGraph( const std::string& name, TGraph* ) override;
104  StatusCode getGraph( const std::string& name, TGraph*& ) const override;
105 
107  StatusCode regEfficiency( const std::string& name ) override;
112  virtual StatusCode regEfficiency( const std::string& name, TEfficiency* ) override;
114  StatusCode getEfficiency( const std::string& name, TEfficiency*& ) const override;
115 
117 
120 
132  StatusCode getShared( const std::string& name, LockedHandle<TH1>& ) const override;
134  StatusCode getShared( const std::string& name, LockedHandle<TH2>& ) const override;
136  StatusCode getShared( const std::string& name, LockedHandle<TH3>& ) const override;
138  StatusCode getShared( const std::string& name, LockedHandle<TGraph>& ) const override;
141 
143 
146 
148  StatusCode deReg( const std::string& name ) override;
150  StatusCode deReg( TObject* obj ) override;
151 
153  StatusCode merge( const std::string& id ) override;
155  StatusCode merge( TObject* ) override;
156 
159  bool exists( const std::string& name ) const override;
161  bool existsHist( const std::string& name ) const override;
163  bool existsTree( const std::string& name ) const override;
165  bool existsGraph( const std::string& name ) const override;
167  bool existsEfficiency( const std::string& name ) const override;
168 
170 
173 
174  std::vector<std::string> getHists() const override;
175  std::vector<std::string> getTrees() const override;
176  std::vector<std::string> getGraphs() const override;
177  std::vector<std::string> getEfficiencies() const override;
178 
179  StatusCode getTHists( TDirectory* td, TList&, bool recurse = false ) const override;
180  StatusCode getTHists( const std::string& name, TList&, bool recurse = false ) const override;
181  StatusCode getTHists( TDirectory* td, TList& tl, bool recurse = false, bool reg = false ) override;
182  StatusCode getTHists( const std::string& name, TList& tl, bool recurse = false, bool reg = false ) override;
183 
184  StatusCode getTTrees( TDirectory* td, TList&, bool recurse = false ) const override;
185  StatusCode getTTrees( const std::string& name, TList&, bool recurse = false ) const override;
186  StatusCode getTTrees( TDirectory* td, TList& tl, bool recurse = false, bool reg = false ) override;
187  StatusCode getTTrees( const std::string& name, TList& tl, bool recurse = false, bool reg = false ) override;
188 
189  StatusCode getTEfficiencies( TDirectory* td, TList&, bool recurse = false ) const override;
190  StatusCode getTEfficiencies( const std::string& name, TList&, bool recurse = false ) const override;
191  StatusCode getTEfficiencies( TDirectory* td, TList& tl, bool recurse = false, bool reg = false ) override;
192  StatusCode getTEfficiencies( const std::string& name, TList& tl, bool recurse = false, bool reg = false ) override;
193 
195 
196 public:
197  // Methods from other interfaces
198  // From IIncidentListener
199  void handle( const Incident& ) override;
200 
201  // From IIoComponent
202  StatusCode io_reinit() override;
203 
204 private:
207 
210  public:
213 
214  private:
215  TDirectory* m_gDirectory;
216  TFile* m_gFile;
219  };
220 
223 
225  static Mode charToMode( const char typ ) {
226  switch ( typ ) {
227  case 'O':
228  return READ;
229  case 'A':
230  return APPEND;
231  case 'R':
232  return UPDATE;
233  case 'S':
234  return SHARE;
235  default:
236  return INVALID;
237  }
238  }
239 
241  struct THistID {
242  std::string id{""};
243  bool temp{true};
244  TObject* obj{nullptr};
245  TFile* file{nullptr};
247  histMut_t* mutex{nullptr};
248  bool shared{false};
249 
250  THistID() = default;
251  THistID( const THistID& rhs ) = default;
252  THistID( std::string& i, bool& t, TObject* o, TFile* f ) : id( i ), temp( t ), obj( o ), file( f ) {}
253  THistID( std::string& i, bool& t, TObject* o, TFile* f, Mode m )
254  : id( i ), temp( t ), obj( o ), file( f ), mode( m ) {}
255 
256  void reset() {
257  id = "";
258  temp = true;
259  obj = nullptr;
260  file = nullptr;
261  mode = INVALID;
262  mutex = nullptr;
263  shared = false;
264  }
265 
266  bool operator<( THistID const& rhs ) const { return ( obj < rhs.obj ); }
267 
268  friend std::ostream& operator<<( std::ostream& ost, const THistID& hid ) {
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  }
273  };
274 
277 
279 
283 
287 
288  // containers for fast lookups
289  // same uid for all elements in vec
291  // all THistIDs
293  // uid: /stream/name -> vhid
295  // name -> vhid
298 
302 
303  // Container holding all TObjects and vhid*s
305 
308  streamMap m_fileStreams; // fileName->streams
309 
310  // stream->filename of shared files
312 
314 
317 
318  template <typename T>
319  StatusCode regHist_i( std::unique_ptr<T> hist, const std::string& name, bool shared );
320  template <typename T>
321  StatusCode regHist_i( std::unique_ptr<T> hist, const std::string& name, bool shared, THistID*& hid );
322  template <typename T>
323  T* getHist_i( const std::string& name, const size_t& ind = 0, bool quiet = false ) const;
324  template <typename T>
325  T* readHist_i( const std::string& name ) const;
326 
327  template <typename T>
329  template <typename T>
331 
333 
336 
337  template <typename T>
338  T* readHist( const std::string& name ) const;
339  TTree* readTree( const std::string& name ) const;
340 
342  void updateFiles();
344  StatusCode connect( const std::string& );
345  TDirectory* changeDir( const THistSvc::THistID& hid ) const;
347  void removeDoubleSlash( std::string& ) const;
348 
349  void MergeRootFile( TDirectory*, TDirectory* );
350 
351  bool findStream( const std::string& name, std::string& root, std::string& rem, TFile*& file ) const;
352  void parseString( const std::string& id, std::string& root, std::string& rem ) const;
353 
355  void setupInputFile();
356 
358  void setupOutputFile();
359 
361  void copyFileLayout( TDirectory*, TDirectory* );
362 
363  size_t findHistID( const std::string& id, const THistID*& hid, const size_t& index = 0 ) const;
364 
365  void dump() const;
366 
368  StatusCode merge( const THistID& );
370  StatusCode merge( vhid_t* );
371 
374 
376 
379 
380  Gaudi::Property<int> m_autoSave{this, "AutoSave", 0};
381  Gaudi::Property<int> m_autoFlush{this, "AutoFlush", 0};
382  Gaudi::Property<bool> m_print{this, "PrintAll", false};
383  Gaudi::Property<int> m_maxFileSize{this, "MaxFileSize", 10240,
384  "maximum file size in MB. if exceeded,"
385  " will cause an abort. -1 to never check."};
386  Gaudi::Property<int> m_compressionLevel{this, "CompressionLevel", 1, [this]( auto& ) {
387  this->warning()
388  << "\"CompressionLevel\" Property has been deprecated. "
389  << "Set it via the \"CL=\" parameter in the \"Output\" Property"
390  << endmsg;
391  }};
393  this, "Output", {}, &THistSvc::setupOutputFile, "", "OrderedSet<std::string>"};
395  this, "Input", {}, &THistSvc::setupInputFile, "", "OrderedSet<std::string>"};
396 
398 
399  IIncidentSvc* p_incSvc = nullptr;
400  IFileMgr* p_fileMgr = nullptr;
401 
402  bool m_signaledStop = false;
403  bool m_delayConnect = false;
404  bool m_okToConnect = false;
405 
407  const TClass* m_ttreeClass = nullptr;
408 
410 
412 };
413 
414 // Include template implementation
415 #include "THistSvc.icc"
416 
417 #endif // GAUDISVC_THISTSVC_H
THistSvc::THistID::id
std::string id
Definition: THistSvc.h:242
THistSvc::p_incSvc
IIncidentSvc * p_incSvc
Definition: THistSvc.h:399
THistSvc::readHist_i
T * readHist_i(const std::string &name) const
Definition: THistSvc.icc:217
THistSvc::getEfficiency
StatusCode getEfficiency(const std::string &name, TEfficiency *&) const override
Return TEfficiency with given name.
Definition: THistSvc.cpp:477
THistSvc::m_autoFlush
Gaudi::Property< int > m_autoFlush
Definition: THistSvc.h:381
IIoComponent.h
THistSvc::regShared_i
LockedHandle< T > regShared_i(const std::string &id, std::unique_ptr< T > hist)
Definition: THistSvc.icc:271
THistSvc::INVALID
@ INVALID
Definition: THistSvc.h:222
THistSvc::UPDATE
@ UPDATE
Definition: THistSvc.h:222
std::string
STL class.
THistSvc::merge
StatusCode merge(const std::string &id) override
Merge all clones for object with a given id.
Definition: THistSvc.cpp:660
THistSvc::m_signaledStop
bool m_signaledStop
Definition: THistSvc.h:402
THistSvc::m_delayConnect
bool m_delayConnect
Definition: THistSvc.h:403
THistSvc::getEfficiencies
std::vector< std::string > getEfficiencies() const override
Definition: THistSvc.cpp:718
THistSvc::regShared
StatusCode regShared(const std::string &name, std::unique_ptr< TH1 >, LockedHandle< TH1 > &) override
Register shared object of type TH1 and return LockedHandle for that object.
Definition: THistSvc.cpp:486
THistSvc::m_ttreeClass
const TClass * m_ttreeClass
Cached pointer to the TTree dictionary.
Definition: THistSvc.h:407
THistSvc::histMut_t
std::mutex histMut_t
Definition: THistSvc.h:206
THistSvc
Definition: THistSvc.h:41
std::list< vhid_t * >
THistSvc::getTrees
std::vector< std::string > getTrees() const override
Definition: THistSvc.cpp:702
THistSvc::GlobalDirectoryRestore::m_lock
std::lock_guard< THistSvcMutex_t > m_lock
Definition: THistSvc.h:218
THistSvc::copyFileLayout
void copyFileLayout(TDirectory *, TDirectory *)
helper function to recursively copy the layout of a TFile into a new TFile
Definition: THistSvc.cpp:1941
THistSvc::m_curstream
std::string m_curstream
Definition: THistSvc.h:409
THistSvc::getTEfficiencies
StatusCode getTEfficiencies(TDirectory *td, TList &, bool recurse=false) const override
Definition: THistSvc.cpp:1107
THistSvc::getTTrees
StatusCode getTTrees(TDirectory *td, TList &, bool recurse=false) const override
Definition: THistSvc.cpp:926
THistSvc::GlobalDirectoryRestore::GlobalDirectoryRestore
GlobalDirectoryRestore(THistSvcMutex_t &mut)
Definition: THistSvc.cpp:1456
std::vector< std::string >
THistSvc::writeObjectsToFile
StatusCode writeObjectsToFile()
Definition: THistSvc.cpp:1556
THistSvc::existsEfficiency
bool existsEfficiency(const std::string &name) const override
Check if TEfficiency with given name is managed by THistSvcMT.
Definition: THistSvc.cpp:684
THistSvc::getGraph
StatusCode getGraph(const std::string &name, TGraph *&) const override
Return TGraph with given name.
Definition: THistSvc.cpp:454
THistSvc::existsGraph
bool existsGraph(const std::string &name) const override
Check if graph with given name is managed by THistSvcMT.
Definition: THistSvc.cpp:688
THistSvc::initialize
StatusCode initialize() override
Definition: THistSvc.cpp:79
IFileMgr
Definition: IFileMgr.h:294
THistSvc::deReg
StatusCode deReg(const std::string &name) override
Deregister object with given name and give up ownership (without deletion!)
Definition: THistSvc.cpp:577
std::recursive_mutex
STL class.
std::lock_guard
STL class.
gaudiComponentHelp.root
root
Definition: gaudiComponentHelp.py:38
THistSvc::setupInputFile
void setupInputFile()
call-back method to handle input stream property
Definition: THistSvc.cpp:1897
THistSvc::m_hlist
hlist_t m_hlist
Definition: THistSvc.h:299
THistSvc::m_autoSave
Gaudi::Property< int > m_autoSave
Definition: THistSvc.h:380
IFileMgr.h
THistSvc::THistID::THistID
THistID(std::string &i, bool &t, TObject *o, TFile *f)
Definition: THistSvc.h:252
THistSvc::getTHists
StatusCode getTHists(TDirectory *td, TList &, bool recurse=false) const override
Definition: THistSvc.cpp:727
THistSvc::THistID::THistID
THistID(std::string &i, bool &t, TObject *o, TFile *f, Mode m)
Definition: THistSvc.h:253
THistSvc::getShared
StatusCode getShared(const std::string &name, LockedHandle< TH1 > &) const override
Retrieve shared object with given name as TH1 through LockedHandle.
Definition: THistSvc.cpp:532
THistSvc::m_inputfile
Gaudi::Property< std::vector< std::string > > m_inputfile
Definition: THistSvc.h:394
THistSvc::readHist
T * readHist(const std::string &name) const
Definition: THistSvc.cpp:1471
THistSvc::rootOpenAction
StatusCode rootOpenAction(FILEMGR_CALLBACK_ARGS)
Definition: THistSvc.cpp:2098
std::unordered_multimap< std::string, vhid_t * >
THistSvc::setupOutputFile
void setupOutputFile()
call-back method to handle output stream property
Definition: THistSvc.cpp:1921
THistSvc::m_print
Gaudi::Property< bool > m_print
Definition: THistSvc.h:382
THistSvc::objMap_t
std::unordered_map< TObject *, std::pair< vhid_t *, size_t > > objMap_t
Definition: THistSvc.h:297
THistSvc::stripDirectoryName
std::string stripDirectoryName(std::string &dir) const
Definition: THistSvc.cpp:1780
THistSvc::vhid_t
std::vector< THistID > vhid_t
Definition: THistSvc.h:290
THistSvc::getHists
std::vector< std::string > getHists() const override
Definition: THistSvc.cpp:694
THistSvc::GlobalDirectoryRestore::m_gFile
TFile * m_gFile
Definition: THistSvc.h:216
bug_34121.t
t
Definition: bug_34121.py:30
THistSvc::getShared_i
LockedHandle< T > getShared_i(const std::string &name) const
Definition: THistSvc.icc:305
THistSvc::rootOpenErrAction
StatusCode rootOpenErrAction(FILEMGR_CALLBACK_ARGS)
Definition: THistSvc.cpp:2120
Service::name
const std::string & name() const override
Retrieve name of the service
Definition: Service.cpp:332
StatusCode
Definition: StatusCode.h:65
THistSvc::parseString
void parseString(const std::string &id, std::string &root, std::string &rem) const
Definition: THistSvc.cpp:1883
THistSvc::m_Rstream
std::vector< std::string > m_Rstream
Definition: THistSvc.h:278
THistSvc::existsTree
bool existsTree(const std::string &name) const override
Check if tree with given name is managed by THistSvcMT.
Definition: THistSvc.cpp:692
THistSvc::SHARE
@ SHARE
Definition: THistSvc.h:222
THistSvc::handle
void handle(const Incident &) override
Definition: THistSvc.cpp:1310
THistSvc::finalize
StatusCode finalize() override
Definition: THistSvc.cpp:197
Gaudi::Units::m
constexpr double m
Definition: SystemOfUnits.h:108
std::ostream
STL class.
THistSvc::m_maxFileSize
Gaudi::Property< int > m_maxFileSize
Definition: THistSvc.h:383
THistSvc::findStream
bool findStream(const std::string &name, std::string &root, std::string &rem, TFile *&file) const
Definition: THistSvc.cpp:1847
THistSvc::THistID::temp
bool temp
Definition: THistSvc.h:243
THistSvc::THistSvcMutex_t
std::recursive_mutex THistSvcMutex_t
Definition: THistSvc.h:205
THistSvc::Mode
Mode
Enumerating all possible file access modes.
Definition: THistSvc.h:222
THistSvc::m_tobjs
objMap_t m_tobjs
Definition: THistSvc.h:304
THistSvc::getHist
StatusCode getHist(const std::string &name, TH1 *&, size_t index=0) const override
Return histogram with given name as TH1*, THistSvcMT still owns object.
Definition: THistSvc.cpp:360
THistSvc::charToMode
static Mode charToMode(const char typ)
Convert a char to a Mode enum.
Definition: THistSvc.h:225
THistSvc::m_outputfile
Gaudi::Property< std::vector< std::string > > m_outputfile
Definition: THistSvc.h:392
THistSvc::THistID::file
TFile * file
Definition: THistSvc.h:245
THistSvc::regEfficiency
StatusCode regEfficiency(const std::string &name) override
Register a new TEfficiency with a given name.
Definition: THistSvc.cpp:463
THistSvc::changeDir
TDirectory * changeDir(const THistSvc::THistID &hid) const
Definition: THistSvc.cpp:1758
THistSvc::idMap_t
std::unordered_multimap< std::string, vhid_t * > idMap_t
Definition: THistSvc.h:296
THistSvc::m_Wstream
std::vector< std::string > m_Wstream
Definition: THistSvc.h:278
THistSvc.icc
THistSvc::APPEND
@ APPEND
Definition: THistSvc.h:222
THistSvc::m_ids
idMap_t m_ids
Definition: THistSvc.h:301
THistSvc::m_okToConnect
bool m_okToConnect
Definition: THistSvc.h:404
THistSvc::streamMap
std::multimap< std::string, std::string > streamMap
Definition: THistSvc.h:307
THistSvc::THistID::operator<<
friend std::ostream & operator<<(std::ostream &ost, const THistID &hid)
Definition: THistSvc.h:268
THistSvc::regHist
StatusCode regHist(const std::string &name) override
Register a new ROOT histogram TH*X with a name.
Definition: THistSvc.cpp:340
THistSvc::removeDoubleSlash
void removeDoubleSlash(std::string &) const
Definition: THistSvc.cpp:1796
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
THistSvc::THistID::obj
TObject * obj
Definition: THistSvc.h:244
std::map
STL class.
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:20
THistSvc::THistID::mutex
histMut_t * mutex
Definition: THistSvc.h:247
THistSvc::GlobalDirectoryRestore
Helper class that manages ROOts global directory and file.
Definition: THistSvc.h:209
THistSvc::GlobalDirectoryRestore::~GlobalDirectoryRestore
~GlobalDirectoryRestore()
Definition: THistSvc.cpp:1462
THistSvc::READ
@ READ
Definition: THistSvc.h:222
THistSvc::getHist_i
T * getHist_i(const std::string &name, const size_t &ind=0, bool quiet=false) const
Definition: THistSvc.icc:177
THistSvc::m_compressionLevel
Gaudi::Property< int > m_compressionLevel
Definition: THistSvc.h:386
THistSvc::reinitialize
StatusCode reinitialize() override
Definition: THistSvc.cpp:191
THistSvc::getTree
StatusCode getTree(const std::string &name, TTree *&) const override
Return TTree with given name.
Definition: THistSvc.cpp:413
THistSvc::m_alreadyConnectedOutFiles
std::set< std::string > m_alreadyConnectedOutFiles
list of already connected files.
Definition: THistSvc.h:286
Service.h
ITHistSvc.h
THistSvc::regTree
StatusCode regTree(const std::string &name) override
Register a new TTree with a given name.
Definition: THistSvc.cpp:387
THistSvc::regHist_i
StatusCode regHist_i(std::unique_ptr< T > hist, const std::string &name, bool shared)
Definition: THistSvc.icc:27
THistSvc::WRITE
@ WRITE
Definition: THistSvc.h:222
THistSvc::m_files
std::map< std::string, std::pair< TFile *, Mode > > m_files
Definition: THistSvc.h:306
THistSvc::connect
StatusCode connect(const std::string &)
Definition: THistSvc.cpp:1581
THistSvc::p_fileMgr
IFileMgr * p_fileMgr
Definition: THistSvc.h:400
IIncidentListener.h
THistSvc::existsHist
bool existsHist(const std::string &name) const override
Check if histogram with given name is managed by THistSvcMT.
Definition: THistSvc.cpp:682
FILEMGR_CALLBACK_ARGS
#define FILEMGR_CALLBACK_ARGS
Definition: IFileMgr.h:287
THistSvc::THistID::operator<
bool operator<(THistID const &rhs) const
Definition: THistSvc.h:266
THistSvc::exists
bool exists(const std::string &name) const override
Check if object with given name is managed by THistSvcMT exists calls existsHist and only works for T...
Definition: THistSvc.cpp:680
THistSvc::THistID::mode
Mode mode
Definition: THistSvc.h:246
THistSvc::THistID::reset
void reset()
Definition: THistSvc.h:256
THistSvc::hlist_t
std::list< vhid_t * > hlist_t
Definition: THistSvc.h:292
THistSvc::readTree
TTree * readTree(const std::string &name) const
Definition: THistSvc.cpp:1475
THistSvc::THistID::THistID
THistID(const THistID &rhs)=default
std::multimap< std::string, std::string >
THistSvc::GlobalDirectoryRestore::m_gErrorIgnoreLevel
int m_gErrorIgnoreLevel
Definition: THistSvc.h:217
THistSvc::GlobalDirectoryRestore::m_gDirectory
TDirectory * m_gDirectory
Definition: THistSvc.h:215
std::mutex
STL class.
THistSvc::m_uids
uidMap_t m_uids
Definition: THistSvc.h:300
THistSvc::m_alreadyConnectedInFiles
std::set< std::string > m_alreadyConnectedInFiles
list of already connected files.
Definition: THistSvc.h:282
THistSvc::updateFiles
void updateFiles()
Handle case where TTree grows beyond TTree::fgMaxTreeSize.
Definition: THistSvc.cpp:1477
LockedHandle
Definition: LockedHandle.h:38
THistSvc::io_reinit
StatusCode io_reinit() override
callback method to reinitialize the internal state of the component for I/O purposes (e....
Definition: THistSvc.cpp:1355
THistSvc::m_svcMut
THistSvcMutex_t m_svcMut
Definition: THistSvc.h:411
THistSvc::findHistID
size_t findHistID(const std::string &id, const THistID *&hid, const size_t &index=0) const
Definition: THistSvc.cpp:1973
IIncidentSvc
Definition: IIncidentSvc.h:33
THistSvc::m_fileStreams
streamMap m_fileStreams
Definition: THistSvc.h:308
Incident
Definition: Incident.h:27
std::unique_ptr
STL class.
std::unordered_map< std::string, vhid_t * >
THistSvc::THistID::shared
bool shared
Definition: THistSvc.h:248
THistSvc::regGraph
StatusCode regGraph(const std::string &name) override
Register a new TGraph with a given name.
Definition: THistSvc.cpp:422
std::set< std::string >
THistSvc::getGraphs
std::vector< std::string > getGraphs() const override
Definition: THistSvc.cpp:710
THistSvc::THistID
Helper struct that bundles the histogram ID with a mutex, TFile and TObject*.
Definition: THistSvc.h:241
Gaudi::Property< int >
THistSvc::uidMap_t
std::unordered_map< std::string, vhid_t * > uidMap_t
Definition: THistSvc.h:294
THistSvc::THistID::THistID
THistID()=default
THistSvc::m_sharedFiles
std::map< std::string, std::string > m_sharedFiles
Definition: THistSvc.h:311
MsgStream.h
THistSvc::dump
void dump() const
Definition: THistSvc.cpp:2018
THistSvc::MergeRootFile
void MergeRootFile(TDirectory *, TDirectory *)
Definition: THistSvc.cpp:1800