A sample that represents a single histogram file. More...
#include <SampleHist.h>
Public Member Functions | |
void | testInvariant () const |
test the invariant of this object | |
SampleHist () | |
standard constructor | |
SampleHist (const std::string &name, const std::string &file) | |
standard constructor | |
Protected Member Functions | |
virtual std::size_t | getNumFiles () const |
virtual std::string | getFileName (std::size_t index) const |
virtual SamplePtr | doMakeLocal () const |
virtual std::vector< std::string > | doMakeFileList () const |
virtual void | doUpdateLocation (const std::string &from, const std::string &to) |
virtual TObject * | doReadHist (const std::string &name) const |
A sample that represents a single histogram file.
This sample is kind of unusual, the main purpose for having it is to describe the histogram files produced by EventLoop together with all their meta-data.
SH::SampleHist::SampleHist | ( | ) |
standard constructor
SH::SampleHist::SampleHist | ( | const std::string & | name, | |
const std::string & | file | |||
) |
standard constructor
name | the name of the sample | |
file | the histogram file |
virtual std::vector<std::string> SH::SampleHist::doMakeFileList | ( | ) | const [protected, virtual] |
make a list of all files, prestaging them if necessary
Implements SH::Sample.
virtual SamplePtr SH::SampleHist::doMakeLocal | ( | ) | const [protected, virtual] |
Make this a local sample, i.e. one which can be directly opened with TFile::Open.
Implements SH::Sample.
virtual TObject* SH::SampleHist::doReadHist | ( | const std::string & | name | ) | const [protected, virtual] |
read an object from a histogram file
Reimplemented from SH::Sample.
virtual void SH::SampleHist::doUpdateLocation | ( | const std::string & | from, | |
const std::string & | to | |||
) | [protected, virtual] |
update all file references starting with from to to
from | the original path to the data area | |
to | the new path to the data area |
Reimplemented from SH::Sample.
virtual std::string SH::SampleHist::getFileName | ( | std::size_t | index | ) | const [protected, virtual] |
the name of the file with the given index
index | the index of the file |
Implements SH::Sample.
virtual std::size_t SH::SampleHist::getNumFiles | ( | ) | const [protected, virtual] |
the number of files in the sample
Implements SH::Sample.
void SH::SampleHist::testInvariant | ( | ) | const |