Functions | Variables
INukeNucleonCorr.cxx File Reference
#include "Physics/HadronTransport/INukeNucleonCorr.h"
#include "Physics/HadronTransport/INukeUtils2018.h"
#include "Physics/HadronTransport/INukeHadroData2018.h"
#include "Framework/ParticleData/PDGLibrary.h"
#include "Framework/Conventions/Units.h"
#include "Framework/Numerical/RandomGen.h"
#include "Framework/Messenger/Messenger.h"
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <TGraph.h>

Go to the source code of this file.

Functions

string genie_dir (std::getenv("GENIE"))
 
void read_file (string rfilename)
 

Variables

const int NRows = 200
 
const int NColumns = 17
 
string dir = genie_dir + string("/data/evgen/nncorr/")
 
string infile
 
vector< vector< double > > infile_values
 
vector< stringcomments
 
vector< vector< double > > HeliumValues
 
vector< vector< double > > CarbonValues
 
vector< vector< double > > CalciumValues
 
vector< vector< double > > IronValues
 
vector< vector< double > > TinValues
 
vector< vector< double > > UraniumValues
 
vector< vector< double > > clear
 

Function Documentation

string genie_dir ( std::getenv("GENIE")  )
void read_file ( string  rfilename)

Definition at line 194 of file INukeNucleonCorr.cxx.

References file, MECModelEnuComparisons::i, in, make_syst_table_plots::line, LOG, and pNOTICE.

Referenced by INukeNucleonCorr::getAvgCorrection().

195 {
196  ifstream file;
197  file.open((char*)rfilename.c_str(), ios::in);
198 
199  if (file.is_open())
200  {
201  string line;
202  int cur_line = 0;
203  while (getline(file,line))
204  {
205  if (line[0]=='#')
206  {
207  comments.push_back(line);
208  }
209  else {
210  vector<double> temp_vector;
211  istringstream iss(line);
212  string s;
213  for (int i=0; i<18; i++)
214  {
215  iss >> s;
216  temp_vector.push_back(atof(s.c_str()));
217  }
218  infile_values.push_back(temp_vector);
219  cur_line++;
220  }
221  }
222  LOG("INukeNucleonCorr",pNOTICE) << "Successful open file" << rfilename << "\n";
223 
224  }
225  else {
226  LOG("INukeNucleonCorr",pNOTICE) << "Could not open " << rfilename << "\n";
227 
228  }
229  file.close();
230 }
vector< vector< double > > infile_values
const XML_Char * s
Definition: expat.h:262
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
ifstream in
Definition: comparison.C:7
TFile * file
Definition: cellShifts.C:17
#define pNOTICE
Definition: Messenger.h:62
vector< string > comments

Variable Documentation

vector<vector<double> > CalciumValues

Definition at line 108 of file INukeNucleonCorr.cxx.

vector<vector<double> > CarbonValues

Definition at line 107 of file INukeNucleonCorr.cxx.

vec_dose clear
vector<string> comments

Definition at line 62 of file INukeNucleonCorr.cxx.

Referenced by evdb::ScanFrame::SetCanvas().

string dir = genie_dir + string("/data/evgen/nncorr/")

Definition at line 59 of file INukeNucleonCorr.cxx.

vector<vector<double> > HeliumValues

Definition at line 106 of file INukeNucleonCorr.cxx.

string infile

Definition at line 60 of file INukeNucleonCorr.cxx.

Referenced by rawfileparser::RawFileParser::backup(), bpfit::BPFTmvaTrainer::beginJob(), bpfit::BPFEnergyEstimator::beginRun(), bpfit::BPFPIdMaker::beginRun(), BuildOldTree(), combineFiles(), compare_fits(), ConsolidateSystMaker(), CosmicPred(), rawfileparser::RawFileParser::curpos(), DecorrelateMatrix(), demoFitContours(), demoFitSlices(), art::TrivialFileTransfer::doTranslateToLocalFilename(), draw_SK_IH(), draw_SK_NH(), rawfileparser::RawFileParser::forward(), get_eventlist2020(), get_fd_dataspectrum(), get_numi_data_histogram(), get_numu_data_histogram(), rawfileparser::RawFileParser::getFilefd(), getHists_FNEX(), GetManualSubruns(), is_file_exist(), joint_fit_2017_contours(), joint_fit_2017_slices(), joint_fit_2018_contours(), joint_fit_2018_slices(), joint_fit_2019_contours(), joint_fit_2019_slices(), jointsensitivity(), nerd::NERDEval::load_anchors(), main(), make_DataMCComp_numu(), make_pdf(), make_rockpred(), MakeCovarSim(), MakeDQValidityCSV(), MakeDQValidityCSVND(), MakeISysts(), MakePlots(), MakeSysts(), median_contours(), nc_bkgd_by_interaction_mode(), nova_t2k_comparison(), NumuCosmic(), NumuExtrap(), plot_contprof(), plot_ehade_quantbound(), plot_joint_fit_2020_contours(), plot_joint_fit_2020_slices(), plot_muonid_dist(), plot_quantile_boundaries_2020(), plotContProf(), pots(), readTree(), reduce_the_predfile_nue_numu(), rawfileparser::RawFileParser::rewind(), sensitivity2018(), sensitivity2020(), sensitivity_plot(), SetCut(), SetCuts(), Tutorial2019FitContours(), Tutorial2019FitSlices(), uptime(), and validation().

vector<vector<double> > infile_values

Definition at line 61 of file INukeNucleonCorr.cxx.

Referenced by INukeNucleonCorr::getAvgCorrection().

vector<vector<double> > IronValues

Definition at line 109 of file INukeNucleonCorr.cxx.

const int NColumns = 17

Definition at line 55 of file INukeNucleonCorr.cxx.

Referenced by INukeNucleonCorr::getAvgCorrection().

const int NRows = 200

Definition at line 54 of file INukeNucleonCorr.cxx.

Referenced by INukeNucleonCorr::getAvgCorrection().

vector<vector<double> > TinValues

Definition at line 110 of file INukeNucleonCorr.cxx.

vector<vector<double> > UraniumValues

Definition at line 111 of file INukeNucleonCorr.cxx.