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-2019, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15  or see $GENIE/LICENSE
16 */
17 //____________________________________________________________________________
18 
19 #ifndef _T2KEVGEN_METADATA_H_
20 #define _T2KEVGEN_METADATA_H_
21 
22 #include <iostream>
23 #include <string>
24 #include <map>
25 
26 #include <TObject.h>
27 #include <TH1D.h>
28 
29 using std::ostream;
30 using std::string;
31 using std::map;
32 
33 namespace genie {
34 namespace utils {
35 
36 class T2KEvGenMetaData;
37 ostream & operator << (ostream & stream, const T2KEvGenMetaData & md);
38 
39 class T2KEvGenMetaData: public TObject
40 {
41 public:
42  using TObject::Print; // suppress clang 'hides overloaded virtual function [-Woverloaded-virtual]' warnings
43 
45  jnubeam_version(""),
46  jnubeam_file(""),
47  detector_location(""),
48  geom_file(""),
49  geom_top_volume(""),
50  geom_length_units(1.),
52  using_root_geom(false),
53  using_hist_flux(false)
54  {
55  }
56 
58  {
59  }
60 
61  void Print(ostream & stream) const;
62 
63  friend ostream & operator << (ostream & stream, const T2KEvGenMetaData & md);
64 
66  string jnubeam_file;
68  string geom_file;
74  map<int, double> target_mix;
75  map<int, TH1D*> flux_hists;
76 
77  ClassDef(T2KEvGenMetaData,1)
78 
79 };
80 
81 
82 } // utils namespace
83 } // genie namespace
84 
85 #endif // _T2KEVGEN_METADATA_H_
friend ostream & operator<<(ostream &stream, const T2KEvGenMetaData &md)
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
ostream & operator<<(ostream &stream, const T2KEvGenMetaData &md)
void Print(ostream &stream) const
void Print(std::string prefix, std::string name, std::string suffix="")
Definition: nue_pid_effs.C:68
Utility class to store MC job meta-data.
enum BeamMode string