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