1 #ifndef _GEN_NEUTRON_SINGLES_ANA_H_
2 #define _GEN_NEUTRON_SINGLES_ANA_H_
10 #include "TFitResult.h"
25 #include <Eigen/Dense>
43 double a_backgroundScaler);
50 double a_numSim = 2.e9);
53 double a_numSim = 2.e9);
86 double calcSliceChi2(
double a_angle,
double a_width,
double a_tof);
109 void plot1DComp(
int a_detID,
double a_minLight);
122 map<int, TH2F*> m_hists_bkg;
124 map<int, TH2F*> m_hists_orig;
126 map<int, TH2F*> m_hists_blank;
128 map<int, TH2F*> m_respFuncs;
129 map<int, Eigen::MatrixXf> m_respFuncsMat;
130 map<int, Eigen::MatrixXf> m_respFuncsMat2;
131 map<int, Eigen::MatrixXf> m_respFuncsMatUnc;
133 map<int, vector<double>> m_detDistAng;
135 double m_totalCharge;
137 double m_targetSolidAngle;
143 vector<double> m_flux1D;
144 vector<double> m_flux1D_unc;
145 vector<double> m_flux1D_binEdges;
148 TTree* m_yahfcEvents;
149 bool m_useAngularRespFuncs;
151 TH2F* m_totalExpHists;
159 vector<int> m_forwardModelDetIDs;
160 vector<std::pair<double,double>> m_forwardModelDetAngles;
Definition: FluxMatrixAna.h:35
Definition: GenesisNeutronSinglesAna.h:30
void setTargetSolidAngle(double a_solidAngle)
Definition: GenesisNeutronSinglesAna.cpp:326
vector< Eigen::MatrixXf > plotTALYSTotalTOFvsEnOut(int a_detID, bool a_draw=1)
Definition: GenesisNeutronSinglesAna.cpp:370
void setTargetRhoR(double a_rhoR)
Definition: GenesisNeutronSinglesAna.cpp:322
double talysModelFit(const double *a_params)
chi2 for forward model
Definition: GenesisNeutronSinglesAna.cpp:1225
void setRespFuncNumLYBins(int a_numLYBins)
Definition: GenesisNeutronSinglesAna.cpp:310
void setForwardModelDetectors(vector< int > a_dets)
set the detectors IDs for Chi2 experiment/model comparisons
Definition: GenesisNeutronSinglesAna.cpp:1181
void readYAHFCEventTree(string a_fileName)
Definition: GenesisNeutronSinglesAna.cpp:692
double calcSliceChi2(int a_detID, double a_tof)
calculate chi2 between model and experiment for a tof slice
Definition: GenesisNeutronSinglesAna.cpp:814
vector< Eigen::MatrixXf > convolveTotalTOFResponse(int a_detID)
Definition: GenesisNeutronSinglesAna.cpp:721
void readNeutronResponseFunctions(string a_fileNameTarget, double a_numSim=2.e9)
Definition: GenesisNeutronSinglesAna.cpp:226
void readTotalNeutronTOFHists(string a_fileName, string a_fileNameBKG, double a_backgroundScaler)
load the data - from buildTOFHists
Definition: GenesisNeutronSinglesAna.cpp:103
void setRespFuncMaxEner(double a_maxEnergy)
Definition: GenesisNeutronSinglesAna.cpp:314
int readTALYSOutput()
Definition: GenesisNeutronSinglesAna.cpp:1254
void useAngularResponseFunctions(bool a_useAngularRespFuncs)
Definition: GenesisNeutronSinglesAna.cpp:297
void setRespFuncNumEnerBins(int a_numEnerBins)
Definition: GenesisNeutronSinglesAna.cpp:302
void plot1DComp(int a_detID, double a_minLight)
plot TOF for experiment and model starting at a minimum light
Definition: GenesisNeutronSinglesAna.cpp:984
void plotTotalComp(int a_detID)
plot TOF vs light for experiment and model
Definition: GenesisNeutronSinglesAna.cpp:953
void readDetDistAng(string a_configFileName)
builds a map of detector ID, distance and angle
Definition: GenesisNeutronSinglesAna.cpp:330
double getDetectorDistance(int a_detID)
Definition: GenesisNeutronSinglesAna.cpp:341
vector< Eigen::MatrixXf > m_currModelMats
Definition: GenesisNeutronSinglesAna.h:163
void readAngularNeutronResponseFunctions(string a_fileNameTarget, double a_numSim=2.e9)
sets m_useAngularRespFuncs to true
Definition: GenesisNeutronSinglesAna.cpp:259
void readENDFEventTree(string a_fileName)
Definition: GenesisNeutronSinglesAna.cpp:548
void plotSliceComp(int a_detID, double a_tof)
plot light for a given TOF bin for experiment and model
Definition: GenesisNeutronSinglesAna.cpp:1027
void forwardModel()
run the forward model minimization
Definition: GenesisNeutronSinglesAna.cpp:1189
void setForwardModelAngles(vector< std::pair< double, double >> a_angles)
Definition: GenesisNeutronSinglesAna.cpp:1185
std::map< string, int > m_talysParams
Definition: GenesisNeutronSinglesAna.h:164
int m_tofWidth
Definition: GenesisNeutronSinglesAna.h:166
void readTotalNeutronTOFTreeBKG(string a_fileNameBKG)
Definition: GenesisNeutronSinglesAna.cpp:179
TH2F * getModelResponseHist(int a_detID)
Definition: GenesisNeutronSinglesAna.cpp:775
ROOT::Math::Minimizer * m_minimum
Definition: GenesisNeutronSinglesAna.h:162
TH2F * getResponseHist(int a_detID)
Definition: GenesisNeutronSinglesAna.cpp:1260
void addFluxMatrix(FluxAna a_fluxMat)
Definition: GenesisNeutronSinglesAna.cpp:71
TH2F * getExpHists(int a_detID)
returns experimental total TOF vs light histogram
Definition: GenesisNeutronSinglesAna.cpp:915
vector< Eigen::MatrixXf > plotENDFTotalTOFvsEnOut(int a_detID, bool a_draw=1)
Definition: GenesisNeutronSinglesAna.cpp:553
void readTotalNeutronTOFTree(string a_fileName)
Definition: GenesisNeutronSinglesAna.cpp:151
void subtractBackground(double a_bkgScalar)
Definition: GenesisNeutronSinglesAna.cpp:207
double getDetectorAngle(int a_detID)
Definition: GenesisNeutronSinglesAna.cpp:355
vector< double > getCovarianceMatrix(std::ostream &stream)
plots the covariance matrix and returns the values
Definition: GenesisNeutronSinglesAna.cpp:1311
GenesisNeutronSinglesAna()
default constructor
Definition: GenesisNeutronSinglesAna.cpp:37
double getFullChi2(int a_detID)
chi2 for all tofs (draws too)
Definition: GenesisNeutronSinglesAna.cpp:877
void setTotCharge(double a_totCharge)
Definition: GenesisNeutronSinglesAna.cpp:318
TALYSUtils * getTALYSUtils()
Definition: GenesisNeutronSinglesAna.cpp:99
void setRespFuncNumAngleBins(int a_numAngleBins)
Definition: GenesisNeutronSinglesAna.cpp:306
void addTALYSUtils(TALYSUtils a_talysUtils)
Definition: GenesisNeutronSinglesAna.cpp:95
Definition: TALYSUtils.h:62