1 #ifndef THINSLICEDATASET_hh 2 #define THINSLICEDATASET_hh 20 const std::vector<fhicl::ParameterSet> & selections);
56 for (
size_t i = 0; i < vals.size(); ++i) {
71 throw std::runtime_error(message);
92 std::cout <<
"Making cumulatives" <<
std::endl;
95 for (
int i = 1; i <= it->second->GetNbinsX(); ++i) {
96 double val = it->second->GetBinContent(i);
101 fTotal += it->second->GetBinContent(i);
111 [](
auto a,
auto b){
return (
a.second >
b.second);});
121 const std::map<
int,
std::vector<std::vector<ThinSliceSample>>> & samples,
125 void Rebin1D(TH1 * sel_hist, TH1 * rebinned);
126 void Rebin2D(TH1 * sel_hist, TH1 * rebinned);
127 void Rebin3D(TH1 * sel_hist, TH1 * rebinned);
TH1 * GetRebinnedSelectionHist(int id)
TH1 * GetSelectionHist(int id)
void FillSelectionHist(int id, const double(&vals)[N])
void Rebin3D(TH1 *sel_hist, TH1 *rebinned)
std::map< int, TH1 * > & GetSelectionHists()
std::vector< std::pair< std::pair< int, int >, double > > fCumulatives
void Rebin2D(TH1 *sel_hist, TH1 *rebinned)
void FillIncidentHist(const std::vector< double > &vals)
std::map< int, TH1 * > fSelectionHistsRebinned
void FillHistsFromSamples(const std::map< int, std::vector< std::vector< ThinSliceSample >>> &samples, double &flux)
void GenerateStatFluctuation()
std::map< int, TH1 * > & GetRebinnedSelectionHists()
void Rebin1D(TH1 *sel_hist, TH1 *rebinned)
std::map< int, std::string > fSelectionNames
std::string & GetSelectionName(int id)
TH1D fIncidentHistRebinned
std::map< int, TH1 * > fSelectionHists
TH1D & GetRebinnedIncidentHist()
std::string to_string(ModuleType const mt)
QTextStream & endl(QTextStream &s)
void FillSelectionHist(int id, double val)
const std::map< int, std::string > & GetSelectionNames() const