ATLAS Offline Software
HanInputRootFile.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef dqiHanInputRootFile_h
6 #define dqiHanInputRootFile_h
7 
8 #include <TDirectory.h>
9 #include <TKey.h>
10 #include <TObject.h>
11 
12 #include <string>
13 #include <vector>
14 
15 #include "dqm_core/InputRootFile.h"
16 
17 namespace dqi {
18 
19 class HanInputRootFile: public dqm_core::InputRootFile {
20 public:
21 
22  HanInputRootFile( const std::string& rootFileName, const std::string& path = "" );
24 
25  virtual void addListener( const boost::regex& regex, dqm_core::InputListener* listener ) override;
26 
27  virtual void addListener( const std::vector<std::string>& names, dqm_core::InputListener* listener ) override;
28 
29  virtual void addListener( const std::string& name, dqm_core::InputListener *listener ) override;
30 
31  TFile* file() const { return m_file.get(); }
32 
33  const TDirectory* getBasedir() const { return m_basedir; }
34  TDirectory* getBasedir() { return m_basedir; }
35 
36 protected:
37 
38  TDirectory* m_basedir;
39 
40  std::vector<std::string> m_histNames;
42 
43 };
44 
45 } // namespace dqi
46 
47 #endif
dqi::HanInputRootFile::getBasedir
TDirectory * getBasedir()
Definition: HanInputRootFile.h:34
dqi::HanInputRootFile::file
TFile * file() const
Definition: HanInputRootFile.h:31
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
dqi::HanInputRootFile::HanInputRootFile
HanInputRootFile(const std::string &rootFileName, const std::string &path="")
Definition: HanInputRootFile.cxx:28
m_file
std::unique_ptr< TFile > m_file
description: this is a custom writer for the old-school drivers that don't use an actual writer
Definition: OutputStreamData.cxx:52
PrepareReferenceFile.regex
regex
Definition: PrepareReferenceFile.py:43
dqi::HanInputRootFile::m_histNames
std::vector< std::string > m_histNames
Definition: HanInputRootFile.h:40
python.subdetectors.mmg.names
names
Definition: mmg.py:8
dqi::HanInputRootFile::~HanInputRootFile
~HanInputRootFile()
Definition: HanInputRootFile.cxx:49
dqi::HanInputRootFile::getBasedir
const TDirectory * getBasedir() const
Definition: HanInputRootFile.h:33
dqi::HanInputRootFile
Definition: HanInputRootFile.h:19
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
dqi::HanInputRootFile::addListener
virtual void addListener(const boost::regex &regex, dqm_core::InputListener *listener) override
Definition: HanInputRootFile.cxx:56
dqi::HanInputRootFile::m_basedir
TDirectory * m_basedir
Definition: HanInputRootFile.h:38
dqi::HanInputRootFile::m_histNamesBuilt
bool m_histNamesBuilt
Definition: HanInputRootFile.h:41
dqi
Definition: CompositeAlgorithm.h:16