40    inline bool operator()(
const Evt& first, 
const Evt& second)
 const 
   54int main(
int argc, 
char **argv)
 
   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) {
 
   83    FATAL(error.what() << endl);
 
   87  if (numberOfFiles == 0) {
 
   99  counter_type ns = (number_of_events + numberOfFiles - 1) / numberOfFiles;
 
  104  for (
size_t i = 0; i != numberOfFiles; ++i, ni += ns) {
 
  106    const JLimit limit(ni, min(ni + ns, number_of_events));
 
  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.
 
Utility class to parse command line options.
 
JTreeWriter object output.
 
JTreeWriter< T > & getTreeWriter()
Get TreeWriter.
 
virtual void open(const char *file_name) override
Open file.
 
Object reading from a list of files.
 
Template definition for direct access of elements in ROOT TChain.
 
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).
 
Long64_t counter_type
Type definition for counter.
 
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)
 
virtual void close() override
Close device.
 
virtual bool put(const T &object) override
Object output.
 
Auxiliary class for defining the range of iterations of objects.