Public Member Functions | Public Attributes | Friends | List of all members
genie::utils::T2KEvGenMetaData Class Reference

Utility class to store MC job meta-data. More...

#include <T2KEvGenMetaData.h>

Inheritance diagram for genie::utils::T2KEvGenMetaData:

Public Member Functions

 T2KEvGenMetaData ()
 
 ~T2KEvGenMetaData ()
 
void Print (ostream &stream) const
 

Public Attributes

string jnubeam_version
 
string jnubeam_file
 
string detector_location
 
string geom_file
 
string geom_top_volume
 
double geom_length_units
 
double geom_density_units
 
bool using_root_geom
 
bool using_hist_flux
 
map< int, double > target_mix
 
map< int, TH1D * > flux_hists
 

Friends

ostream & operator<< (ostream &stream, const T2KEvGenMetaData &md)
 

Detailed Description

Utility class to store MC job meta-data.

Author
Jim Dobson Imperial College London

Mar 04, 2010

Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 38 of file T2KEvGenMetaData.h.

Constructor & Destructor Documentation

genie::utils::T2KEvGenMetaData::T2KEvGenMetaData ( )
inline
genie::utils::T2KEvGenMetaData::~T2KEvGenMetaData ( )
inline

Definition at line 56 of file T2KEvGenMetaData.h.

57  {
58  }

Member Function Documentation

void genie::utils::T2KEvGenMetaData::Print ( ostream &  stream) const

Definition at line 30 of file T2KEvGenMetaData.cxx.

31 {
32  stream << endl;
33 
34  if(this->jnubeam_version.size() > 0) {
35  stream << "jnubeam version = " << this->jnubeam_version << endl;
36  }
37  if(this->jnubeam_file.size() > 0) {
38  stream << "flux ntuple filename = " << this->jnubeam_file << endl;
39  }
40  if(this->detector_location.size() > 0) {
41  stream << "detector location = " << this->detector_location << endl;
42  }
43  if(this->geom_file.size() > 0) {
44  stream << "detector geometry file = " << this->geom_file << endl;
45  }
46 
47  map<int, TH1D*> fluxhists = this->flux_hists;
48  if(fluxhists.size()>0) {
49  stream << "found flux histograms:" << endl;
50  }
51  map<int, TH1D*>::const_iterator hist_iter = fluxhists.begin();
52  while(hist_iter != fluxhists.end()){
53  TH1D * curr_hist = (TH1D*) hist_iter->second;
54  if(curr_hist){
55  stream << " - name = " << curr_hist->GetName()
56  << " (entries: " << curr_hist->GetEntries()
57  << ", mean: " << curr_hist->GetMean()
58  << ") --> neutrino pdg = " << hist_iter->first << endl;
59  ++hist_iter;
60  }//curr_hist
61  }//hist_iter
62 
63  map<int, double> targetmix = this->target_mix;
64  if(targetmix.size()>0) {
65  stream << "found target mix:" << endl;
66  }
67  map<int, double>::const_iterator target_iter = targetmix.begin();
68  while(target_iter != targetmix.end()){
69  stream << " - target pdg = " << target_iter->first
70  << ", weight fraction = " << target_iter->second << endl;
71  ++target_iter;
72  }
73 }
intermediate_table::const_iterator const_iterator
QTextStream & endl(QTextStream &s)

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const T2KEvGenMetaData md 
)
friend

Definition at line 22 of file T2KEvGenMetaData.cxx.

23  {
24  md.Print(stream);
25  return stream;
26  }

Member Data Documentation

string genie::utils::T2KEvGenMetaData::detector_location

Definition at line 66 of file T2KEvGenMetaData.h.

map<int, TH1D*> genie::utils::T2KEvGenMetaData::flux_hists

Definition at line 74 of file T2KEvGenMetaData.h.

double genie::utils::T2KEvGenMetaData::geom_density_units

Definition at line 70 of file T2KEvGenMetaData.h.

string genie::utils::T2KEvGenMetaData::geom_file

Definition at line 67 of file T2KEvGenMetaData.h.

double genie::utils::T2KEvGenMetaData::geom_length_units

Definition at line 69 of file T2KEvGenMetaData.h.

string genie::utils::T2KEvGenMetaData::geom_top_volume

Definition at line 68 of file T2KEvGenMetaData.h.

string genie::utils::T2KEvGenMetaData::jnubeam_file

Definition at line 65 of file T2KEvGenMetaData.h.

string genie::utils::T2KEvGenMetaData::jnubeam_version

Definition at line 64 of file T2KEvGenMetaData.h.

map<int, double> genie::utils::T2KEvGenMetaData::target_mix

Definition at line 73 of file T2KEvGenMetaData.h.

bool genie::utils::T2KEvGenMetaData::using_hist_flux

Definition at line 72 of file T2KEvGenMetaData.h.

bool genie::utils::T2KEvGenMetaData::using_root_geom

Definition at line 71 of file T2KEvGenMetaData.h.


The documentation for this class was generated from the following files: