|
ATLAS Offline Software
|
Go to the documentation of this file.
34 std::unique_ptr<TFile>
37 const unsigned retries
46 std::unique_ptr<TFile>
result;
48 static std::atomic<unsigned> seed = 0;
49 std::default_random_engine
re (++seed);
50 std::uniform_real_distribution wait_dist (wait/2, wait);
52 for (
unsigned tries = 0; tries <= retries; ++ tries)
56 unsigned mywait = 1000 * wait_dist (
re);
57 std::cout <<
"open failed, waiting " << (mywait/1000.) <<
" seconds: "
59 std::this_thread::sleep_for (std::chrono::milliseconds (mywait));
61 result.reset (TFile::Open (
name.c_str(),
"READ"));
72 std::unique_ptr<SampleLocal>
79 if (overwrite || gSystem->AccessPathName (location.c_str()) != 0)
81 std::vector<std::string>
files =
sample.makeFileList();
96 std::string sublocation = location +
sample->name() +
".root";
void hadd(const std::string &output_file, const std::vector< std::string > &input_files, unsigned max_files)
effects: perform the hadd functionality guarantee: basic failures: out of memory III failures: i/o er...
std::unique_ptr< TFile > openFile(const std::string &name, const MetaObject &options)
open a file with the given options
a base class that manages a set of files belonging to a particular data set and the associated meta-d...
std::unique_ptr< SampleLocal > mergeFiles(const Sample &sample, const std::string &location, bool overwrite)
merge all the files in the sample into a single file in the given location
const boost::regex re(r_e)
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)