|
ATLAS Offline Software
|
Go to the documentation of this file.
54 if (tree_name.empty())
57 Long64_t tot_entries = 0;
62 std::unique_ptr<TFile>
file (TFile::Open (
file_name.c_str(),
"READ"));
65 Long64_t treeEntries = 0;
66 TTree *
const tree =
dynamic_cast<TTree*
>(
file->Get (tree_name.c_str()));
68 treeEntries =
tree->GetEntries ();
69 entries.push_back (treeEntries);
70 tot_entries += treeEntries;
87 RCU_WARN_MSG (
"sample " +
sample.name() +
" lacks nc_nevtfile, running scanNEvents, please save sample");
97 RCU_THROW_MSG (
"nc_nevtfile has the wrong number of entries");
100 std::unique_ptr<SampleLocal>
res;
113 std::ostringstream
name;
118 if (!meta_tree.empty())
std::vector< Sample * >::const_iterator iterator
the iterator to use
#define RCU_WARN_MSG(message)
std::pair< std::vector< unsigned int >, bool > res
void scanNEvents(SampleHandler &sh)
effects: scan each sample in the sample handler and store the number of entries per file in the meta-...
a base class that manages a set of files belonging to a particular data set and the associated meta-d...
A Sample based on a simple file list.
A class that manages a list of Sample objects.
This module provides a lot of global definitions, forward declarations and includes that are used by ...
#define RCU_THROW_MSG(message)
SampleHandler splitSample(Sample &sample, const Long64_t nevt)
effects: split the given sample into a set of samples, with each sample containing either exactly one...