Jpp
Functions
getUTC.cc File Reference
#include <string>
#include <iostream>
#include <iomanip>
#include "TROOT.h"
#include "TFile.h"
#include "JSupport/JSupport.hh"
#include "JSupport/JSupportToolkit.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Auxiliary program to print UTC start and stop time of data taking run.

Author
mdejong

Definition in file getUTC.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 23 of file getUTC.cc.

24 {
25  using namespace std;
26  using namespace JPP;
27 
28  vector<string> inputFile;
29  int debug;
30 
31  try {
32 
33  JParser<> zap("Auxiliary program to print UTC start and stop time of data taking run.");
34 
35  zap['f'] = make_field(inputFile);
36  zap['d'] = make_field(debug) = 1;
37 
38  zap(argc, argv);
39  }
40  catch(const exception &error) {
41  FATAL(error.what() << endl);
42  }
43 
44  cout.tie(&cerr);
45 
46  const JDAQUTCTimeRange UTC = getUTCTimeRange(inputFile.begin(), inputFile.end());
47 
48  cout << FIXED(12,1) << UTC.getLowerLimit().getUTCseconds() << ' '
49  << FIXED(12,1) << UTC.getUpperLimit().getUTCseconds() << endl;
50 }
JTOOLS::JRange::getLowerLimit
T getLowerLimit() const
Get lower limit.
Definition: JRange.hh:215
JTOOLS::JRange::getUpperLimit
T getUpperLimit() const
Get upper limit.
Definition: JRange.hh:226
FIXED
Auxiliary data structure for floating point format specification.
Definition: JPrint.hh:481
std::vector
Definition: JSTDTypes.hh:12
JTOOLS::JRange
Range of values.
Definition: JRange.hh:34
JPARSER::JParser
Utility class to parse command line options.
Definition: JParser.hh:1493
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
debug
int debug
debug level
Definition: JSirene.cc:59
JSUPPORT::getUTCTimeRange
JDAQUTCTimeRange getUTCTimeRange(JTreeScanner< T, KM3NETDAQ::JDAQEvaluator > &in)
Get UTC time range.
Definition: JSupportToolkit.hh:119
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:1954
std
Definition: jaanetDictionary.h:36
FATAL
#define FATAL(A)
Definition: JMessage.hh:67