5 #include "TFitResult.h"
17 #include <Eigen/Dense>
47 std::string a_bkgFile);
65 bool a_scintScint=
false);
80 double a_tofWidth = 8);
91 Eigen::VectorXf a_calcYield,
92 double a_normalization = -1);
99 bool a_normalize=
false,
107 bool a_normEff=
false);
109 map<int, EffData> m_detEff;
110 map<int, TH2*> m_tofHists;
111 map<int, TH2*> m_tofHistsBKG;
112 map<int, TH2*> m_tofHistsOrgOrg;
113 map<int, TH2*> m_tofHistsBKGOrgOrg;
117 map<int,map<double,vector<double>>> m_maxwellFitRes;
120 double m_bkgScalerOrgOrg;
Definition: NeutronAngularDistAna.h:36
EffData getEffData(int a_detID)
returns efficiency data
Definition: NeutronAngularDistAna.cpp:937
void addExperimentalTOFBKGData(std::string a_fileName)
Definition: NeutronAngularDistAna.cpp:257
void uniBinEfficiency(int a_detID, int a_nBins, double a_lowE=1)
draw efficiency with uniform a_lowE-10 MeV binning
Definition: NeutronAngularDistAna.cpp:164
std::vector< double > getEnerDistTOF(int a_detID, double a_tof, bool a_draw=false, bool a_useEff=true, double a_tofWidth=8)
Definition: NeutronAngularDistAna.cpp:322
void addExperimentalTOFData(std::string a_fileName)
Definition: NeutronAngularDistAna.cpp:234
void plot2DEnerDistTOF(int a_detID)
uses fits to draw time-since-last-rf vs neutron energy
Definition: NeutronAngularDistAna.cpp:822
void getAngDistTOF(int a_tof, bool a_normalize=false, int a_tofWidth=8)
Definition: NeutronAngularDistAna.cpp:848
void readEfficiencyData(std::string a_effFile)
Definition: NeutronAngularDistAna.cpp:93
TH2F * getScintScintHist(int a_detID, bool a_normEff=false)
Definition: NeutronAngularDistAna.cpp:948
TH2F * drawEffCorrAngDist(std::string a_expFile, std::string a_bkgFile)
Definition: NeutronAngularDistAna.cpp:194
void setBackgroundScaler(double a_bkgScaler, bool a_scintScint=false)
Definition: NeutronAngularDistAna.cpp:280
void plotEnerDistTOF(int a_detID)
plots integral and temperature from maxwellian fit across TOF domain
Definition: NeutronAngularDistAna.cpp:517
NeutronAngularDistAna()
Definition: NeutronAngularDistAna.cpp:86
void drawRFExpBkg(int a_detID, bool a_drawSub=false)
draw x-projection of m_tofHists histograms for data and background
Definition: NeutronAngularDistAna.cpp:290
J. Gordon.
Definition: NeutronAngularDistAna.h:22
vector< double > m_effsErr
Definition: NeutronAngularDistAna.h:26
EffData()
Definition: NeutronAngularDistAna.cpp:23
double m_angle
Definition: NeutronAngularDistAna.h:27
vector< double > getEfficiency(double a_lowE, double a_highE)
calculate the efficiency for a given range of neutron energy
Definition: NeutronAngularDistAna.cpp:28
void drawEff()
draws the efficiency
Definition: NeutronAngularDistAna.cpp:64
vector< double > m_lowBinEdges
Definition: NeutronAngularDistAna.h:24
vector< double > m_effs
Definition: NeutronAngularDistAna.h:25