![]() |
ATLAS Offline Software
|
Base class to loop over all the keys in a ROOT file. More...
#include <TFileLooper.h>
Public Member Functions | |
| TFileLooper ()=default | |
| virtual | ~TFileLooper ()=default |
| TFileLooper (const TFileLooper &other)=delete | |
| TFileLooper & | operator= (const TFileLooper &other)=delete |
| virtual Int_t | run (const char *filename, const char *rootDir=0) |
| Start processing. More... | |
| virtual void | processKey (TDirectory &dir, TKey &key) |
| Method called for every key. More... | |
Processing hooks | |
| TFile * | m_file {nullptr} |
| TString | m_rootDir |
| TString | m_skipDirs |
| Bool_t | m_verbose {kFALSE} |
| Bool_t | m_passBeforeFail {kFALSE} |
| Int_t | m_errorCode {0} |
| std::vector< TPRegexp > | m_failRE |
| std::vector< TPRegexp > | m_passRE |
| std::vector< std::string > | m_skippedObjects |
| virtual void | beginJob () |
| virtual void | endJob () |
| virtual void | beforeFile () |
| virtual void | afterFile () |
| virtual void | beforeDir () |
| virtual void | afterDir () |
| virtual void | beforeObj () |
| virtual void | afterObj () |
| void | setDirsToSkip (const char *skipDirs) |
| Skip this comma separated list of directories. More... | |
| void | addFailRegexp (const char *regexp) |
| Skip keys that match this regexp. More... | |
| void | addPassRegexp (const char *regexp) |
| Never skip keys that match this regexp. More... | |
| void | passBeforeFailRegexp (Bool_t passBeforeFail=kTRUE) |
| Reverse pass/fail logic. First check on pass then on fail. More... | |
| void | setVerbose (Bool_t verbose=kTRUE) |
| Set verbose mode. More... | |
| Bool_t | verbose () const |
| Query verbose mode. More... | |
| const TFile * | file () const |
| Current ROOT file. More... | |
| TString | rootDir () const |
| Current directory. More... | |
| TString | getPathFromDir (const TDirectory &dir) |
| TString | getKeyPath (const TDirectory &dir, const TKey &key) |
| void | processDir (TDirectory &dir) |
| void | processFile (const char *filename, const char *rootDir=0) |
| Bool_t | skipDir (const TDirectory &dir) |
| Bool_t | skipObject (const char *name) |
| TString | getDrawOptions (const TH1 &h) |
Base class to loop over all the keys in a ROOT file.
Loop over all the keys in a given ROOT file. Apply regular expressions to the keys to relevant keys. The action for each key needs to be implemented in a derived class.
Definition at line 35 of file TFileLooper.h.
|
default |
|
virtualdefault |
|
delete |
| void TFileLooper::addFailRegexp | ( | const char * | regexp | ) |
Skip keys that match this regexp.
Definition at line 160 of file TFileLooper.cxx.
| void TFileLooper::addPassRegexp | ( | const char * | regexp | ) |
Never skip keys that match this regexp.
Definition at line 169 of file TFileLooper.cxx.
|
inlinevirtual |
Definition at line 59 of file TFileLooper.h.
|
inlinevirtual |
Definition at line 57 of file TFileLooper.h.
|
inlinevirtual |
Definition at line 61 of file TFileLooper.h.
|
inlinevirtual |
Definition at line 58 of file TFileLooper.h.
|
inlinevirtual |
Definition at line 56 of file TFileLooper.h.
|
inlinevirtual |
Definition at line 60 of file TFileLooper.h.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
protected |
|
protected |
|
delete |
|
inline |
Reverse pass/fail logic. First check on pass then on fail.
Definition at line 74 of file TFileLooper.h.
|
protected |
Definition at line 73 of file TFileLooper.cxx.
Definition at line 44 of file TFileLooper.cxx.
|
virtual |
Method called for every key.
Only dummy implementation. Needs to be implemented in derived classes.
Reimplemented in TRootCompare.
Definition at line 110 of file TFileLooper.cxx.
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 118 of file TFileLooper.cxx.
|
protected |
Definition at line 129 of file TFileLooper.cxx.
|
inline |
|
protected |
Definition at line 94 of file TFileLooper.h.
|
protected |
Definition at line 96 of file TFileLooper.h.
|
protected |
Definition at line 89 of file TFileLooper.h.
|
protected |
Definition at line 93 of file TFileLooper.h.
|
protected |
Definition at line 97 of file TFileLooper.h.
|
protected |
Definition at line 90 of file TFileLooper.h.
|
protected |
Definition at line 91 of file TFileLooper.h.
|
protected |
Definition at line 99 of file TFileLooper.h.
|
protected |
Definition at line 92 of file TFileLooper.h.
1.8.18