|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGVALTOOLS_TFILELOOPER_H
6 #define TRIGVALTOOLS_TFILELOOPER_H
18 #include "TDirectory.h"
Bool_t skipDir(const TDirectory &dir)
Bool_t verbose() const
Query verbose mode.
std::vector< std::string > m_skippedObjects
void addFailRegexp(const char *regexp)
Skip keys that match this regexp.
void processFile(const char *filename, const char *rootDir=0)
virtual Int_t run(const char *filename, const char *rootDir=0)
Start processing.
const TFile * file() const
Current ROOT file.
virtual ~TFileLooper()=default
void setVerbose(Bool_t verbose=kTRUE)
Set verbose mode.
TString getDrawOptions(const TH1 &h)
TFileLooper & operator=(const TFileLooper &other)=delete
void addPassRegexp(const char *regexp)
Never skip keys that match this regexp.
TFileLooper(const TFileLooper &other)=delete
TString rootDir() const
Current directory.
void passBeforeFailRegexp(Bool_t passBeforeFail=kTRUE)
Reverse pass/fail logic. First check on pass then on fail.
std::vector< TPRegexp > m_passRE
virtual void beforeFile()
TString getPathFromDir(const TDirectory &dir)
Base class to loop over all the keys in a ROOT file.
std::vector< TPRegexp > m_failRE
void processDir(TDirectory &dir)
TString getKeyPath(const TDirectory &dir, const TKey &key)
virtual void processKey(TDirectory &dir, TKey &key)
Method called for every key.
Bool_t skipObject(const char *name)
void setDirsToSkip(const char *skipDirs)
Skip this comma separated list of directories.