Base class to loop over all the keys in several ROOT files.
More...
#include <TMultiFileLooper.h>
Base class to loop over all the keys in several ROOT files.
- Author
- Frank Winklmeier
Same as TFileLooper but can loop over multiple ROOT files.
Definition at line 28 of file TMultiFileLooper.h.
◆ TMultiFileLooper()
TMultiFileLooper::TMultiFileLooper |
( |
| ) |
|
|
inline |
◆ ~TMultiFileLooper()
virtual TMultiFileLooper::~TMultiFileLooper |
( |
| ) |
|
|
virtualdefault |
◆ addFailRegexp()
void TFileLooper::addFailRegexp |
( |
const char * |
regexp | ) |
|
|
inherited |
◆ addFile()
void TMultiFileLooper::addFile |
( |
const char * |
filename | ) |
|
◆ addPassRegexp()
void TFileLooper::addPassRegexp |
( |
const char * |
regexp | ) |
|
|
inherited |
◆ afterDir()
virtual void TFileLooper::afterDir |
( |
| ) |
|
|
inlinevirtualinherited |
◆ afterFile()
virtual void TFileLooper::afterFile |
( |
| ) |
|
|
inlinevirtualinherited |
◆ afterObj()
virtual void TFileLooper::afterObj |
( |
| ) |
|
|
inlinevirtualinherited |
◆ beforeDir()
virtual void TFileLooper::beforeDir |
( |
| ) |
|
|
inlinevirtualinherited |
◆ beforeFile()
virtual void TFileLooper::beforeFile |
( |
| ) |
|
|
inlinevirtualinherited |
◆ beforeObj()
virtual void TFileLooper::beforeObj |
( |
| ) |
|
|
inlinevirtualinherited |
◆ beginJob()
virtual void TFileLooper::beginJob |
( |
| ) |
|
|
inlinevirtualinherited |
◆ endJob()
virtual void TFileLooper::endJob |
( |
| ) |
|
|
inlinevirtualinherited |
◆ file()
const TFile* TFileLooper::file |
( |
| ) |
const |
|
inlineinherited |
◆ getDrawOptions()
TString TFileLooper::getDrawOptions |
( |
const TH1 & |
h | ) |
|
|
protectedinherited |
◆ getKeyPath()
TString TFileLooper::getKeyPath |
( |
const TDirectory & |
dir, |
|
|
const TKey & |
key |
|
) |
| |
|
protectedinherited |
Definition at line 188 of file TFileLooper.cxx.
190 TString
s(
dir.GetPath()+TString(
"/")+
key.GetName());
192 s.Replace(0,
s.First(
":")+2,0);
◆ getPathFromDir()
TString TFileLooper::getPathFromDir |
( |
const TDirectory & |
dir | ) |
|
|
protectedinherited |
Definition at line 178 of file TFileLooper.cxx.
180 TString
s(
dir.GetPath());
181 if (
s.Index(
"../")==0)
s.Remove(0,3);
182 s.ReplaceAll(
":",
"");
◆ passBeforeFailRegexp()
void TFileLooper::passBeforeFailRegexp |
( |
Bool_t |
passBeforeFail = kTRUE | ) |
|
|
inlineinherited |
Reverse pass/fail logic. First check on pass then on fail.
Definition at line 74 of file TFileLooper.h.
◆ processDir()
void TFileLooper::processDir |
( |
TDirectory & |
dir | ) |
|
|
protectedinherited |
Definition at line 73 of file TFileLooper.cxx.
78 cout <<
"Skipping " <<
s << endl;
82 if (
m_verbose) cout <<
"Reading directory "<<
dir.GetPath() << endl;
85 TList* dirList =
dir.GetListOfKeys();
◆ processFile()
void TFileLooper::processFile |
( |
const char * |
filename, |
|
|
const char * |
rootDir = 0 |
|
) |
| |
|
protectedinherited |
◆ processKey()
void TFileLooper::processKey |
( |
TDirectory & |
dir, |
|
|
TKey & |
key |
|
) |
| |
|
virtualinherited |
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.
112 cout <<
"--- processKey: " <<
key.GetName()
113 <<
" in directory " <<
dir.GetPath() << endl;
◆ rootDir()
TString TFileLooper::rootDir |
( |
| ) |
const |
|
inlineinherited |
◆ run() [1/2]
Int_t TMultiFileLooper::run |
( |
| ) |
|
◆ run() [2/2]
Int_t TMultiFileLooper::run |
( |
const char * |
filename, |
|
|
const char * |
rootDir = 0 |
|
) |
| |
|
virtual |
Start processing.
Reimplemented from TFileLooper.
Definition at line 20 of file TMultiFileLooper.cxx.
24 if (fileListName==0) {
25 cout <<
"Invalid file list (0)" << endl;
31 ifs.open(fileListName);
33 cout <<
"Cannot open file " << fileListName << endl;
◆ setDirsToSkip()
void TFileLooper::setDirsToSkip |
( |
const char * |
skipDirs | ) |
|
|
inlineinherited |
Skip this comma separated list of directories.
Definition at line 65 of file TFileLooper.h.
◆ setVerbose()
void TFileLooper::setVerbose |
( |
Bool_t |
verbose = kTRUE | ) |
|
|
inlineinherited |
◆ skipDir()
Bool_t TFileLooper::skipDir |
( |
const TDirectory & |
dir | ) |
|
|
protectedinherited |
◆ skipObject()
Bool_t TFileLooper::skipObject |
( |
const char * |
name | ) |
|
|
protectedinherited |
Definition at line 129 of file TFileLooper.cxx.
131 Bool_t failMatch(kFALSE);
132 Bool_t passMatch(kFALSE);
151 else result = (failMatch && !passMatch);
◆ verbose()
Bool_t TFileLooper::verbose |
( |
| ) |
const |
|
inlineinherited |
◆ m_errorCode
Int_t TFileLooper::m_errorCode {0} |
|
protectedinherited |
◆ m_failRE
std::vector<TPRegexp> TFileLooper::m_failRE |
|
protectedinherited |
◆ m_file
TFile* TFileLooper::m_file {nullptr} |
|
protectedinherited |
◆ m_fileList
std::vector<TString> TMultiFileLooper::m_fileList |
|
private |
◆ m_passBeforeFail
Bool_t TFileLooper::m_passBeforeFail {kFALSE} |
|
protectedinherited |
◆ m_passRE
std::vector<TPRegexp> TFileLooper::m_passRE |
|
protectedinherited |
◆ m_rootDir
TString TFileLooper::m_rootDir |
|
protectedinherited |
◆ m_skipDirs
TString TFileLooper::m_skipDirs |
|
protectedinherited |
◆ m_skippedObjects
std::vector<std::string> TFileLooper::m_skippedObjects |
|
protectedinherited |
◆ m_verbose
Bool_t TFileLooper::m_verbose {kFALSE} |
|
protectedinherited |
The documentation for this class was generated from the following files: