#include <string>
#include <iostream>
#include <iomanip>
#include <memory>
#include <map>
#include "TROOT.h"
#include "TFile.h"
#include "TH1D.h"
#include "TRandom3.h"
#include "JAstronomy/JNuisance.hh"
#include "JLang/JVectorize.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| | Toy simulation to study nuisance.
|
| |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Toy simulation to study nuisance.
Definition at line 23 of file JNuisance.cc.
24{
27
28 size_t numberOfEvents;
33
34 try {
35
37
40 zap[
'u'] =
make_field(nuisance,
"nuisance: \"<type> (parameters)+\"\n\twhere <type> can be:" <<
get_keys(nuisance_helper));
43
45 }
46 catch(const exception &error) {
48 }
49
51
53
54 TH1D h0(
"h0",
NULL, 100, -5.0, +5.0);
55
56 for (size_t counter = 0; counter != numberOfEvents; ++counter) {
57
59
60 h0.Fill(nuisance->get());
61 }
62
63 out.Write();
64 out.Close();
65}
#define DEBUG(A)
Message macros.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
std::shared_ptr< JNuisance > nuisance_type
Type definition of generic nuisance.
const array_type< JKey_t > & get_keys(const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &data)
Method to create array of keys of map.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).