Jpp
15.0.1-rc.1-highQE
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JGizmo
getUTC.cc
Go to the documentation of this file.
1
2
#include <string>
3
#include <iostream>
4
#include <iomanip>
5
6
#include "TROOT.h"
7
#include "TFile.h"
8
9
#include "
JSupport/JSupport.hh
"
10
#include "
JSupport/JSupportToolkit.hh
"
11
12
#include "
Jeep/JPrint.hh
"
13
#include "
Jeep/JParser.hh
"
14
#include "
Jeep/JMessage.hh
"
15
16
17
/**
18
* \file
19
*
20
* Auxiliary program to print UTC start and stop time of data taking run.
21
* \author mdejong
22
*/
23
int
main
(
int
argc,
char
**argv)
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
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1500
JSUPPORT::getUTCTimeRange
JDAQUTCTimeRange getUTCTimeRange()
Get UTC time range.
Definition:
JSupportToolkit.hh:137
main
int main(int argc, char *argv[])
Definition:
Main.cc:15
JSupport.hh
ROOT TTree parameter settings of various packages.
FIXED
Auxiliary data structure for floating point format specification.
Definition:
JManip.hh:446
std::vector
Definition:
JSTDTypes.hh:12
JPrint.hh
I/O formatting auxiliaries.
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:1961
JSupportToolkit.hh
Support methods.
debug
int debug
debug level
Definition:
JSirene.cc:63
JTOOLS::JRange
Range of values.
Definition:
JRange.hh:38
JMessage.hh
General purpose messaging.
FATAL
#define FATAL(A)
Definition:
JMessage.hh:67
JParser.hh
Utility class to parse command line options.
Generated by
1.8.5