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
JPrintRandom.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
#include "TRandom.h"
9
10
#include "
JROOT/JRootFileReader.hh
"
11
12
#include "
Jeep/JParser.hh
"
13
#include "
Jeep/JMessage.hh
"
14
15
16
/**
17
* \file
18
*
19
* Auxiliary program to print ROOT TRandom seed.
20
* \author mdejong
21
*/
22
int
main
(
int
argc,
char
**argv)
23
{
24
using namespace
std;
25
26
string
inputFile;
27
int
debug
;
28
29
try
{
30
31
JParser<>
zap(
"Auxiliary program to print ROOT TRandom seed."
);
32
33
zap[
'f'
] =
make_field
(inputFile);
34
zap[
'd'
] =
make_field
(
debug
) = 1;
35
36
zap(argc, argv);
37
}
38
catch
(
const
exception &error) {
39
FATAL
(error.what() << endl);
40
}
41
42
43
cout.tie(&cerr);
44
45
using namespace
JPP;
46
47
JRootFileReader<TRandom> reader(inputFile.c_str(), gRandom->GetName());
48
49
while
(reader.hasNext()) {
50
51
TRandom*
x
= reader.next();
52
53
cout <<
"seed["
<< reader.getCycle() <<
"] = "
<< x->GetSeed() << endl;
54
}
55
56
reader.close();
57
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1500
main
int main(int argc, char *argv[])
Definition:
Main.cc:15
x
then chmod x
Definition:
JEvtReweightMupageParameterScan.sh:388
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:1961
JRootFileReader.hh
debug
int debug
debug level
Definition:
JSirene.cc:63
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