210 std::string inputFile;
212 size_t numberOfFiles;
219 JParser<> zap(
"Auxiliary program to split data.");
227 "Precede name of data structure by a '+' or '-' "
228 "to add or remove data types in the output, respectively."
234 catch(
const exception& error) {
235 FATAL(error.what() << endl);
239 if (numberOfFiles == 0 && ranges.empty()) {
240 FATAL(
"Invalid splitting " << numberOfFiles <<
'/' << ranges.size() << endl);
245 if (pos == string::npos) {
246 FATAL(
"Output file name " <<
outputFile <<
" does not contain wild card '" << WILDCARD <<
"'" << endl);
250 getUTCTimeRange<JDAQEvent> (inputFile));
252 if (!total.is_valid()) {
253 FATAL(
"No (valid) summary data in input file " << inputFile <<
' ' << total << endl);
256 NOTICE(
"Total time range " << total << endl);
258 if (ranges.empty()) {
260 const double T_ns = (total.getUpperLimit().getTimeNanoSecond() -
261 total.getLowerLimit().getTimeNanoSecond()) / numberOfFiles;
263 for (
double t1 = total.getLowerLimit().getTimeNanoSecond(); t1 < total.getUpperLimit().getTimeNanoSecond(); t1 += T_ns) {
271 JCopyMaster<JDAQTypes_t>
master(inputFile, selection);
273 const int width = (int) (
log10(ranges.size() + 1) + 1);
275 for (
size_t i = 0; i != ranges.size(); ++i) {
279 STATUS(
"Writing " << file_name << endl);
281 master.open(file_name.c_str());
Utility class to parse command line options.
then echo Test string reversed by master(hit< return > to continue)." $DIR/JProcess -c "$DIR/JEcho" -rC fi if (( 1 ))
Auxiliary class for ROOT class selection.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Data structure for UTC time.
#define MAKE_STRING(A)
Make string.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
set_variable E_E log10(E_{fit}/E_{#mu})"
JTOOLS::JRange< JDAQUTCExtended > JDAQUTCTimeRange
Type definition for DAQ UTC time range.
Auxiliary data structure for sequence of same character.
JTriggerParameters getTriggerParameters(const JMultipleFileScanner_t &file_list)
Get trigger parameters.