#include <HanInputRootFile.h>
|
| | HanInputRootFile (const std::string &rootFileName, const std::string &path="") |
| | ~HanInputRootFile () |
| virtual void | addListener (const boost::regex ®ex, dqm_core::InputListener *listener) override |
| virtual void | addListener (const std::vector< std::string > &names, dqm_core::InputListener *listener) override |
| virtual void | addListener (const std::string &name, dqm_core::InputListener *listener) override |
| TFile * | file () const |
| const TDirectory * | getBasedir () const |
| TDirectory * | getBasedir () |
Definition at line 19 of file HanInputRootFile.h.
◆ HanInputRootFile()
| dqi::HanInputRootFile::HanInputRootFile |
( |
const std::string & | rootFileName, |
|
|
const std::string & | path = "" ) |
Definition at line 27 of file HanInputRootFile.cxx.
29 : dqm_core::InputRootFile::InputRootFile(rootFileName)
32{
33 if( path != "" ) {
34 std::cout <<
"Using path \"" <<
path <<
"\" in input file\n";
35 std::string pathForSearch =
path;
36 pathForSearch += "/dummyName";
37 m_basedir = changeInputDir( m_file.get(), pathForSearch );
39 std::cerr <<
"Cannot find \"" <<
path <<
"\" in input file\n";
40 }
41 }
42
45}
path
python interpreter configuration --------------------------------------—
◆ ~HanInputRootFile()
| dqi::HanInputRootFile::~HanInputRootFile |
( |
| ) |
|
◆ addListener() [1/3]
| void dqi::HanInputRootFile::addListener |
( |
const boost::regex & | regex, |
|
|
dqm_core::InputListener * | listener ) |
|
overridevirtual |
Definition at line 55 of file HanInputRootFile.cxx.
57{
58
62 }
63
64 for (std::vector<std::string>::const_iterator str =
m_histNames.begin();
66 ++str) {
67 try {
68 if (boost::regex_match(*str, regex)) {
69
71 if (dynamic_cast<TH1*>(temp) || dynamic_cast<TGraph*>(temp) || dynamic_cast<TEfficiency*>(temp) ) {
72 std::cout <<
"Regular expression " <<
regex <<
" matches " << *
str << std::endl;
74 }
75 delete temp;
76 }
77 } catch (std::exception &ex) {
78 std::cout <<
"Warning: Matching of regular expression " <<
regex <<
" failed: " << ex.what() << std::endl;
79 }
80
81 }
82}
void dolsr(const TDirectory *dir, std::vector< std::string > &hists, const TDirectory *topdir=nullptr)
◆ addListener() [2/3]
| void dqi::HanInputRootFile::addListener |
( |
const std::string & | name, |
|
|
dqm_core::InputListener * | listener ) |
|
overridevirtual |
Definition at line 94 of file HanInputRootFile.cxx.
96{
97
99 if( key == 0 ) {
100
101
102 return;
103 }
104 m_monObjects.push_back( MonBundle(name,key,listener) );
105}
◆ addListener() [3/3]
| void dqi::HanInputRootFile::addListener |
( |
const std::vector< std::string > & | names, |
|
|
dqm_core::InputListener * | listener ) |
|
overridevirtual |
Definition at line 86 of file HanInputRootFile.cxx.
88{
89 dqm_core::InputRootFile::addListener( names, listener );
90}
◆ file()
| TFile * dqi::HanInputRootFile::file |
( |
| ) |
const |
|
inline |
◆ getBasedir() [1/2]
| TDirectory * dqi::HanInputRootFile::getBasedir |
( |
| ) |
|
|
inline |
◆ getBasedir() [2/2]
| const TDirectory * dqi::HanInputRootFile::getBasedir |
( |
| ) |
const |
|
inline |
◆ m_basedir
| TDirectory* dqi::HanInputRootFile::m_basedir |
|
protected |
◆ m_histNames
| std::vector<std::string> dqi::HanInputRootFile::m_histNames |
|
protected |
◆ m_histNamesBuilt
| bool dqi::HanInputRootFile::m_histNamesBuilt |
|
protected |
The documentation for this class was generated from the following files: