|
ATLAS Offline Software
|
Go to the documentation of this file.
89 RCU_THROW_MSG (
"Sample::makeLocal not supported for SampleHist");
100 std::vector<std::string>
result;
111 if (strncmp (
m_file.c_str(), from.c_str(), from.size()) == 0)
122 std::unique_ptr<TFile>
file (TFile::Open (
m_file.c_str(),
"READ"));
125 TObject *
object =
file->Get (
name.c_str());
A sample that represents a single histogram file.
virtual void doUpdateLocation(const std::string &from, const std::string &to)
update all file references starting with from to to
std::unique_ptr< TFile > m_file
description: this is a custom writer for the old-school drivers that don't use an actual writer
virtual std::string getFileName(std::size_t index) const
the name of the file with the given index
virtual std::size_t getNumFiles() const
the number of files in the sample
SampleHist()
standard constructor
virtual TObject * doReadHist(const std::string &name) const
read an object from a histogram file
void testInvariant() const
test the invariant of this object
ClassImp(SH::SampleHist) namespace SH
virtual SamplePtr doMakeLocal() const
Make this a local sample, i.e.
const std::string & name() const
the name of the sample we are using
std::string m_file
the path to the file we use
bool SetDirectory(TObject *object, TDirectory *directory)
effects: set the directory this object is associated with returns: whether the object type actively k...
virtual std::vector< std::string > doMakeFileList() const
make a list of all files, prestaging them if necessary
This module provides a lot of global definitions, forward declarations and includes that are used by ...
#define RCU_THROW_MSG(message)
#define RCU_READ_INVARIANT(x)
#define RCU_NEW_INVARIANT(x)