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 "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+3.10-2.17-e17-debug/GENIE-Generator/src/Framework/Utils/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-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 39 of file T2KEvGenMetaData.h.

Constructor & Destructor Documentation

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

Definition at line 57 of file T2KEvGenMetaData.h.

References fetch_tb_beamline_files::md, operator<<, Print(), and runNovaSAM::stream.

58  {
59  }

Member Function Documentation

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

Definition at line 34 of file T2KEvGenMetaData.cxx.

References allTimeWatchdog::endl.

Referenced by genie::utils::operator<<(), and ~T2KEvGenMetaData().

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

Friends And Related Function Documentation

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

Definition at line 26 of file T2KEvGenMetaData.cxx.

Referenced by ~T2KEvGenMetaData().

27  {
28  md.Print(stream);
29  return stream;
30  }

Member Data Documentation

string genie::utils::T2KEvGenMetaData::detector_location

Definition at line 67 of file T2KEvGenMetaData.h.

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

Definition at line 75 of file T2KEvGenMetaData.h.

double genie::utils::T2KEvGenMetaData::geom_density_units

Definition at line 71 of file T2KEvGenMetaData.h.

string genie::utils::T2KEvGenMetaData::geom_file

Definition at line 68 of file T2KEvGenMetaData.h.

double genie::utils::T2KEvGenMetaData::geom_length_units

Definition at line 70 of file T2KEvGenMetaData.h.

string genie::utils::T2KEvGenMetaData::geom_top_volume

Definition at line 69 of file T2KEvGenMetaData.h.

string genie::utils::T2KEvGenMetaData::jnubeam_file

Definition at line 66 of file T2KEvGenMetaData.h.

string genie::utils::T2KEvGenMetaData::jnubeam_version

Definition at line 65 of file T2KEvGenMetaData.h.

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

Definition at line 74 of file T2KEvGenMetaData.h.

bool genie::utils::T2KEvGenMetaData::using_hist_flux

Definition at line 73 of file T2KEvGenMetaData.h.

bool genie::utils::T2KEvGenMetaData::using_root_geom

Definition at line 72 of file T2KEvGenMetaData.h.


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