GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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-2024, 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 
44  jnubeam_version(""),
45  jnubeam_file(""),
47  geom_file(""),
48  geom_top_volume(""),
51  using_root_geom(false),
52  using_hist_flux(false)
53  {
54  }
55 
57  {
58  }
59 
60  void Print(ostream & stream) const;
61 
62  friend ostream & operator << (ostream & stream, const T2KEvGenMetaData & md);
63 
65  string jnubeam_file;
67  string geom_file;
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_
friend ostream & operator<<(ostream &stream, const T2KEvGenMetaData &md)
ostream & operator<<(ostream &stream, const T2KEvGenMetaData &md)
void Print(ostream &stream) const
Utility class to store MC job meta-data.