36 testInvariant ()
const
53 SampleHist (
const std::string& name,
const std::string&
file)
54 : Sample (name), m_file (
file)
61 std::size_t SampleHist ::
70 std::string SampleHist ::
71 getFileName (
const std::size_t
85 SamplePtr SampleHist ::
89 RCU_THROW_MSG (
"Sample::makeLocal not supported for SampleHist");
95 std::vector<std::string> SampleHist ::
96 doMakeFileList ()
const
100 std::vector<std::string>
result;
101 result.push_back (m_file);
108 doUpdateLocation (
const std::string& from,
const std::string& to)
111 if (strncmp (m_file.c_str(), from.c_str(), from.size()) == 0)
112 m_file = to +
"/" + m_file.substr (from.size());
117 TObject *SampleHist ::
118 doReadHist (
const std::string& name)
const
122 std::unique_ptr<TFile>
file (TFile::Open (m_file.c_str(),
"READ"));
125 TObject *
object =
file->Get (name.c_str());