29 testInvariant ()
const
46 SampleHist (
const std::string& name,
const std::string&
file)
47 : Sample (name), m_file (
file)
54 std::size_t SampleHist ::
63 std::string SampleHist ::
64 getFileName (
const std::size_t
78 std::unique_ptr<SampleLocal> SampleHist ::
82 RCU_THROW_MSG (
"Sample::makeLocal not supported for SampleHist");
88 std::vector<std::string> SampleHist ::
89 doMakeFileList ()
const
93 std::vector<std::string> result;
94 result.push_back (m_file);
101 doUpdateLocation (
const std::string& from,
const std::string& to)
104 if (strncmp (m_file.c_str(), from.c_str(), from.size()) == 0)
105 m_file = to +
"/" + m_file.substr (from.size());
110 TObject *SampleHist ::
111 doReadHist (
const std::string& name)
const
115 std::unique_ptr<TFile>
file (TFile::Open (m_file.c_str(),
"READ"));
118 TObject *
object =
file->Get (name.c_str());