16 int color_pal = kFuchsia;
17 Style_t
line = kSolid;
22 horn =
"fhc", name =
"FHC";
26 horn =
"rhc", name =
"RHC";
30 std::string filename =
"/nova/ana/nu_mu_ana/Ana2018/Quantiles/quantiles__" + horn +
"_full__numu2018.root";
32 TH2* quanthist = (TH2*)infile->Get(
"FDSpec2D");
36 std::vector< TH1* > hist_bound;
37 for(
int thisQuant = 0; thisQuant <
nQuant; thisQuant++){
38 TH1* h_temp = quanthist->ProjectionX();
41 double bound = QuantBounds[
bin][thisQuant];
44 hist_bound.push_back(h_temp);
48 gStyle->SetPalette(color_pal);
49 gStyle->SetPadRightMargin(0.11);
51 new TCanvas(
"canvas");
52 gPad->SetFillStyle(0);
53 quanthist ->
Scale(0.1,
"width");
54 quanthist ->
Draw(
"colz");
55 quanthist->GetYaxis()->SetTitle(
"E_{had} / E_{#nu}");
56 quanthist->GetXaxis()->CenterTitle();
57 quanthist->GetYaxis()->CenterTitle();
58 for(
int thisQuant = 1; thisQuant <
nQuant; thisQuant++){
60 hist_bound[thisQuant] ->
Draw(
"histsame][");
62 TLegend *
legend =
new TLegend(0.15,0.70,0.30,0.85);
63 legend->AddEntry(hist_bound[1], Form(
"%s", name.c_str()),
"l");
64 legend->SetTextSize(0.05);
65 legend->SetBorderSize(0);
66 legend->SetFillStyle(0);
70 TString outname =
"quantiles__" + horn +
"_full__numu2018";
71 gPad->
Print(outname +
".pdf");
72 gPad->
Print(outname +
".png");
Cuts and Vars for the 2020 FD DiF Study.
const HistAxis kHadEFracAxis("E_{had.} / E_{#nu}", Binning::Simple(200, 0, 1), kHadEFrac)
HistAxis that implements Hadronic Energy fraction binning used by L.Vinton to derive Hadronic Energy ...
std::vector< std::vector< double > > GetQuantileBins(TH2 *quantileHist, const HistAxis &independentAxis, const HistAxis &quantileAxis, const unsigned int &numQuantiles, const bool verbose)
Returns a 2D vector First index is the independentAxis bin number Second index is the high bin edge f...
void plot_ehade_quantbound(bool fhc=true)
std::string pnfs2xrootd(std::string loc, bool unauth)
const HistAxis kNumuCCOptimisedAxis("Reconstructed Neutrino Energy (GeV)", kNumuCCEOptimisedBinning, kCCE)
HistAxis that implements optimised numuCCE from L. Vinton. See docdb 16332. This was close to 'custC'...
cout<< "--"<< endl;for(Int_t iP=1;iP<=hyz->GetNbinsX();iP++){for(Int_t iC=1;iC<=hyz->GetNbinsY();iC++){if(hyv->GetBinContent(iP, iC)>-999){goal_hyv-> SetBinContent(iP, iC,-(dy[iP-1][iC-1]))
void Print(std::string prefix, std::string name, std::string suffix="")
simulatedPeak Scale(1/simulationNormalisationFactor)