Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Generator
src
Framework
Utils
T2KEvGenMetaData.h
Go to the documentation of this file.
1
//____________________________________________________________________________
2
/*!
3
4
\class genie::utils::T2KEvGenMetaData
5
6
\brief Utility class to store MC job meta-data
7
8
\author Jim Dobson
9
Imperial College London
10
11
\created Mar 04, 2010
12
13
\cpright Copyright (c) 2003-2020, The GENIE Collaboration
14
For the full text of the license visit http://copyright.genie-mc.org
15
*/
16
//____________________________________________________________________________
17
18
#ifndef _T2KEVGEN_METADATA_H_
19
#define _T2KEVGEN_METADATA_H_
20
21
#include <iostream>
22
#include <string>
23
#include <map>
24
25
#include <TObject.h>
26
#include <TH1D.h>
27
28
using
std::ostream;
29
using
std::string
;
30
using
std::map;
31
32
namespace
genie
{
33
namespace
utils
{
34
35
class
T2KEvGenMetaData;
36
ostream &
operator <<
(ostream &
stream
,
const
T2KEvGenMetaData &
md
);
37
38
class
T2KEvGenMetaData
:
public
TObject
39
{
40
public
:
41
using
TObject::Print;
// suppress clang 'hides overloaded virtual function [-Woverloaded-virtual]' warnings
42
43
T2KEvGenMetaData
() :
44
jnubeam_version
(
""
),
45
jnubeam_file
(
""
),
46
detector_location
(
""
),
47
geom_file
(
""
),
48
geom_top_volume
(
""
),
49
geom_length_units
(1.),
50
geom_density_units
(1.),
51
using_root_geom
(false),
52
using_hist_flux
(false)
53
{
54
}
55
56
~T2KEvGenMetaData
()
57
{
58
}
59
60
void
Print
(ostream &
stream
)
const
;
61
62
friend
ostream &
operator <<
(ostream & stream,
const
T2KEvGenMetaData
&
md
);
63
64
string
jnubeam_version
;
65
string
jnubeam_file
;
66
string
detector_location
;
67
string
geom_file
;
68
string
geom_top_volume
;
69
double
geom_length_units
;
70
double
geom_density_units
;
71
bool
using_root_geom
;
72
bool
using_hist_flux
;
73
map<int, double>
target_mix
;
74
map<int, TH1D*>
flux_hists
;
75
76
ClassDef
(
T2KEvGenMetaData
,1)
77
78
};
79
80
81
}
// utils namespace
82
}
// genie namespace
83
84
#endif // _T2KEVGEN_METADATA_H_
genie::utils::T2KEvGenMetaData::operator<<
friend ostream & operator<<(ostream &stream, const T2KEvGenMetaData &md)
Definition:
T2KEvGenMetaData.cxx:22
genie::utils::T2KEvGenMetaData::geom_density_units
double geom_density_units
Definition:
T2KEvGenMetaData.h:70
genie::utils::T2KEvGenMetaData::geom_length_units
double geom_length_units
Definition:
T2KEvGenMetaData.h:69
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
AlgCmp.h:25
string
std::string string
Definition:
nybbler.cc:12
genie::utils::operator<<
ostream & operator<<(ostream &stream, const T2KEvGenMetaData &md)
Definition:
T2KEvGenMetaData.cxx:22
genie::utils::T2KEvGenMetaData::Print
void Print(ostream &stream) const
Definition:
T2KEvGenMetaData.cxx:30
genie::utils::T2KEvGenMetaData::flux_hists
map< int, TH1D * > flux_hists
Definition:
T2KEvGenMetaData.h:74
genie::utils::T2KEvGenMetaData::geom_file
string geom_file
Definition:
T2KEvGenMetaData.h:67
genie::utils::T2KEvGenMetaData::target_mix
map< int, double > target_mix
Definition:
T2KEvGenMetaData.h:73
genie::utils::T2KEvGenMetaData::T2KEvGenMetaData
T2KEvGenMetaData()
Definition:
T2KEvGenMetaData.h:43
generate_datataset.stream
stream
Definition:
generate_datataset.py:30
genie::utils::T2KEvGenMetaData::~T2KEvGenMetaData
~T2KEvGenMetaData()
Definition:
T2KEvGenMetaData.h:56
genie::utils::T2KEvGenMetaData::geom_top_volume
string geom_top_volume
Definition:
T2KEvGenMetaData.h:68
python.root_metadata.md
md
Definition:
root_metadata.py:196
genie::utils::T2KEvGenMetaData::detector_location
string detector_location
Definition:
T2KEvGenMetaData.h:66
utils
Definition:
utils.py:1
genie::utils::T2KEvGenMetaData::using_hist_flux
bool using_hist_flux
Definition:
T2KEvGenMetaData.h:72
genie::utils::T2KEvGenMetaData
Utility class to store MC job meta-data.
Definition:
T2KEvGenMetaData.h:38
genie::utils::T2KEvGenMetaData::jnubeam_version
string jnubeam_version
Definition:
T2KEvGenMetaData.h:64
ClassDef
Definition:
classdef.h:59
genie::utils::T2KEvGenMetaData::jnubeam_file
string jnubeam_file
Definition:
T2KEvGenMetaData.h:65
genie::utils::T2KEvGenMetaData::using_root_geom
bool using_root_geom
Definition:
T2KEvGenMetaData.h:71
Generated by
1.8.11