40 inline bool operator()(
const Evt& first,
const Evt& second)
const
70 JParser<> zap(
"Auxiliary program for time sorting of Monte-Carlo events.");
77 zap[
'O'] =
make_field(option,
"Write [multi] header to each output file");
82 catch(
const exception& error) {
110 STATUS(
"Processing " << filename <<
' ' <<
limit <<
"." << flush);
114 for (in.setLimit(
limit); in.hasNext(); ) {
115 buffer.push_back(*in.next());
120 sort(buffer.begin(), buffer.end(), JCompare_t());
133 for (
const auto& evt : buffer) {
137 if (i == 0 || option) {
int main(int argc, char **argv)
Recording of objects on file according a format that follows from the file name extension.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Scanning of objects from a single file according a format that follows from the extension of each fil...
ROOT TTree parameter settings of various packages.
Template definition of a multi-dimensional oscillation probability interpolation table.
std::string setWildCard(const std::string &file_name, const std::string &value)
Get file name by setting wild card to given value.
bool hasWildCard(const std::string &file_name)
Check presence of wild card.
static const char FILENAME_WILDCARD
wild card character for file name substitution
std::string to_string(const T &value)
Convert value to string.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
TTimeStamp mc_event_time
MC: true generation time (UTC) of the event, (default: 01 Jan 1970 00:00:00)
Auxiliary class for defining the range of iterations of objects.