ATLAS Offline Software
Loading...
Searching...
No Matches
HanUtils.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "TCollection.h"
6#include "TNamed.h"
7
8#include <mutex>
9
10class TSeqCollection;
11class TKey;
12class TDirectory;
13
14namespace dqi {
15 TSeqCollection* newTList( const char *name, TObject *obj = 0 );
16 TSeqCollection* newTObjArray( const char *name, TObject *obj = 0, Int_t size = TCollection::kInitCapacity);
17 TKey* getObjKey( TDirectory* dir, const std::string& path );
18 void dolsr(const TDirectory* dir, std::vector<std::string>& hists, const TDirectory* topdir = nullptr);
19
20 class HanHistogramLink : public TNamed {
21 public:
22 HanHistogramLink(TDirectory* dir, const std::string& path);
23 TObject* getObject();
24 private:
25 TDirectory* m_dir;
26 std::string m_path;
27 };
28
29
31 public:
34 private:
35 std::unique_lock<std::mutex> m_lock;
37 };
38}
std::unique_lock< std::mutex > m_lock
Definition HanUtils.h:35
TSeqCollection * newTObjArray(const char *name, TObject *obj=0, Int_t size=TCollection::kInitCapacity)
Definition HanUtils.cxx:27
void dolsr(const TDirectory *dir, std::vector< std::string > &hists, const TDirectory *topdir=nullptr)
Definition HanUtils.cxx:80
TKey * getObjKey(TDirectory *dir, const std::string &path)
Definition HanUtils.cxx:36
TSeqCollection * newTList(const char *name, TObject *obj=0)
Definition HanUtils.cxx:18