25int main(
int argc,
char **argv)
48 catch(
const exception& error) {
49 FATAL(error.what() << endl);
55 if (!
outputFile.empty() && pos == string::npos) {
56 FATAL(
"Valid wildcard must be specified (<" <<
outputFile <<
"> does not contain \'" << wildcard <<
"\').");
62 const size_t Ndigits =
to_string(scanners.size()).size();
66 const size_t n =
distance(scanners.begin(), scanner);
70 NOTICE(
"Header type " <<
n <<
":" << endl);
71 DEBUG (endl << scanner->getHeader() << endl);
72 NOTICE(
"========================" << endl <<
74 "========================" << endl << endl);
78 const string filename = string(
outputFile).replace(pos, 1,
MAKE_STRING(setfill(
'0') << setw(Ndigits) <<
n));
80 ofstream ofs(filename);
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
#define MAKE_STRING(A)
Make string.
ROOT TTree parameter settings of various packages.
Utility class to parse command line options.
std::string to_string(const T &value)
Convert value to string.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for organising Monte Carlo file scanners associated with event weighters.
Auxiliary base class for list of file names.
const JMultipleFileScanner_t & getFilelist() const
Get file list.