RooParticle
Particle scattering simulator with ROOT
Loading...
Searching...
No Matches
runinfo.hpp
Go to the documentation of this file.
1
3
4#ifndef H_RUNINFO
5#define H_RUNINFO 1
6
7#include "TROOT.h"
8#include "TString.h"
9
16namespace runinfo{
18 const UInt_t kDefaultSeed = 65539;
19
28 UInt_t SeedFromJob(Int_t jobIndex, Long64_t seed = -1);
29
33 TString GitSHA();
34
40
43 void Write(const char* key, const char* value);
46 void Write(const char* key, Double_t value);
49 void Write(const char* key, Long64_t value);
51
62 void WriteCommon(UInt_t seed, Double_t dt, const char* integrator,
63 Long64_t nevents, const char* inspectorCriteria);
64}
65
66#endif
Run metadata helpers for the test programs.
Definition runinfo.hpp:16
UInt_t SeedFromJob(Int_t jobIndex, Long64_t seed=-1)
Seed of one job.
Definition runinfo.cpp:10
const UInt_t kDefaultSeed
Seed used when no seed is given on the command line (job index 0).
Definition runinfo.hpp:18
TString GitSHA()
Git revision the binary was built from.
Definition runinfo.cpp:15
void WriteCommon(UInt_t seed, Double_t dt, const char *integrator, Long64_t nevents, const char *inspectorCriteria)
Write the parameters every run shares.
Definition runinfo.cpp:34
void Write(const char *key, const char *value)
Definition runinfo.cpp:19