Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert SpectrumLoader to be an _ISource to handle new CAF structure #54

Draft
wants to merge 112 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
cd33835
Moving to cafancore v02, with the RecordSource spectrum loading infra…
cjbacchus Jul 29, 2022
9cd6e81
Updating root and duneanaobj versions
mcasales Oct 19, 2023
99c58c4
Temporarily ignoring PRISM and script dirs, too many dependencies on …
mcasales Oct 19, 2023
4145c39
Skip PRISM stuff
mcasales Oct 19, 2023
29756ba
we dont need this for 2x2 files
mcasales Oct 19, 2023
dcf58a9
Examples that work for 2x2 cafs
mcasales Nov 2, 2023
a80bc1f
Commenting out anything that interferes with the StandardRecord struc…
mcasales Nov 2, 2023
6a38741
The goal is to make this test macro work
mcasales Dec 8, 2023
1175dc3
Adding comments to test macro goal
mcasales Dec 8, 2023
e9b97b6
Fixing conficlts with branch feature/mcasales_CAFAna_2x2
mcasales Dec 13, 2023
9d19d46
First attempt to adapt SpectrumLoader and friends to the source/sink …
mcasales Dec 13, 2023
0236c2b
Remove unnecesary comments
mcasales Dec 13, 2023
27dd20f
I forgot to direct HandleFile to the rec tree
mcasales Dec 13, 2023
bdb5bf5
Update SpectrumLoaderBase.cxx
mcasales Dec 13, 2023
dc38d14
I think I misunderstood how the POT was accounted. We keep that in Sp…
mcasales Dec 13, 2023
fd98afb
remove examples that correspond to the feature/mcasales_CAFAna_2x2 br…
mcasales Dec 13, 2023
3f702ed
ignore everything but Core directory for the moment
mcasales Dec 13, 2023
9f0b08f
Add new header
mcasales Dec 13, 2023
88921ef
Fix typos
mcasales Dec 13, 2023
b88ed54
Implementing Loaders SBN-style
mcasales Dec 14, 2023
490285a
Fixing typos
mcasales Dec 14, 2023
10c4aad
Adding definitions for cuts and vars at SR and Interaction, RecoParti…
mcasales Dec 14, 2023
f17fecd
Bypassing OscillatableSpectrum at compilation time to focus on debugg…
mcasales Dec 18, 2023
d11b2de
Fixing more typos
mcasales Dec 18, 2023
df7b88b
only compile Core while debugging SpectrumLoader
mcasales Dec 18, 2023
5e10057
Uncomment some things we dont need to skip
mcasales Dec 18, 2023
bdaecd3
Added missing includes of IRecord(Source,Sink)
mcasales Dec 18, 2023
c7c0207
I missed IRecordSource.cxx in the list
mcasales Dec 19, 2023
27bb316
Correcting more headers and typos in VectorAdapter
mcasales Dec 19, 2023
9380edb
Trying to implement an argument to select reconstruction type RecoTyp…
mcasales Jan 8, 2024
5347d43
Ignore some libraries for the moment
mcasales Jan 8, 2024
b184de5
sketch of one path towards loader.Interactions(kPandora) etc.
chenel Jan 11, 2024
74017cc
Attempting to compile
mcasales Jan 12, 2024
98a1d9e
initialize the collection in a dedicated constructor instead of initi…
chenel Jan 12, 2024
e9e75b3
Merge remote-tracking branch 'dune-github/feature/source-sink-overhau…
chenel Jan 12, 2024
b41bd4e
Duplicating for Interactions
mcasales Jan 12, 2024
a4f3490
I forgot to declare _IRecordSource
mcasales Jan 12, 2024
ade722c
In the meantime leave a DLP source for the operator
mcasales Jan 12, 2024
e937155
static assertions were failing when compiling, commenting them out al…
mcasales Jan 12, 2024
d08503d
Im not sure this is the way to use assert here, but this compiles
mcasales Jan 13, 2024
b6187b3
Updating example macro with the latest
mcasales Jan 13, 2024
5fa9f34
Simplifying demo0b and adding a more stuff to the new demo1b
mcasales Jan 13, 2024
cfcce55
Adding TrueInteraction adapters
mcasales Jan 18, 2024
e3a5e07
Updating examples and readme
mcasales Jan 18, 2024
eea4b04
Adding Interaction ensemble
mcasales Feb 16, 2024
124980c
Introduce Multiverse class, necessary for EnsembleRecord source sink …
mcasales Feb 16, 2024
687b939
Adding Multiverse and FitMultiverse
mcasales Feb 16, 2024
6090a84
Corrected order of headers
mcasales Feb 26, 2024
b9622ba
Changes to multiverse on Interaction rather than SR
mcasales Feb 26, 2024
21a9d8b
Change ISyst to InteractionProxy rather than std record
mcasales Feb 26, 2024
6759448
fix header
mcasales Feb 26, 2024
39b8e23
Add Multiverse
mcasales Feb 26, 2024
529a7d4
Add randomThrows and shift in interaction rather than standard record
mcasales Feb 26, 2024
112c099
Pointing out where GetUniverse is not working
mcasales Feb 26, 2024
a72093b
Return to original line 41
mcasales Feb 29, 2024
566b82b
Added Ensemble version that returns particles
mcasales Feb 29, 2024
b7b724f
Fix header
mcasales Feb 29, 2024
a83d540
Added unordered_map constructor
mcasales Feb 29, 2024
7a9264a
Fix headers
mcasales Feb 29, 2024
a3b6a0f
new example for ensemble spectra will be here
mcasales Feb 29, 2024
e4f0f7e
Adding SR and Interaction level weights:
mcasales Mar 4, 2024
3af2da7
Introducing EnsembleSpectrum and friends, directly from sbnana CAFAna
mcasales Mar 4, 2024
0e0d88a
ignore ._* files
mcasales Mar 4, 2024
56a612a
Add missing headers
mcasales Mar 4, 2024
4a9cc5a
Uncommenting copy constructor, I dont understand errors regarding this
mcasales Mar 4, 2024
9e20f9b
Add utility functions needed for EnsembleSpectrum and friends
mcasales Mar 4, 2024
3619d89
Add EnsembleSpectrum and friends. This commit compiles, yay
mcasales Mar 4, 2024
d99535a
Sketch of test macro for EnsembleSpectrum
mcasales Mar 4, 2024
80eee34
Add override POT option
mcasales Mar 7, 2024
c0e9522
A somwehat working version of ensemble spectrum that draws error band…
mcasales Mar 7, 2024
dd66f8f
adding true 1-sigma error band to compare
mcasales Mar 7, 2024
ac99c69
Updating tutorials
mcasales Mar 20, 2024
42be02d
Updating things to include reading true particles branch
mcasales Apr 20, 2024
3d0b5d8
Updating dir of files
mcasales Apr 20, 2024
5c2bbdd
update duneanaobj
sindhu-ku Apr 22, 2024
7570fab
add setup to use files in pnfs
sindhu-ku Apr 22, 2024
4796759
2x2 mesonless analysis
sindhu-ku Apr 22, 2024
e105590
Merge branch 'feature/source-sink-overhaul' of https://github.com//si…
sindhu-ku Apr 22, 2024
22477a9
add true particle dists
sindhu-ku Apr 22, 2024
34bebcf
change energy range
sindhu-ku Apr 23, 2024
733fc5b
Adding commented out lines of my attempt at making Ensemble implement…
mcasales Apr 23, 2024
6c58a2b
Updating demos to latest files
mcasales Apr 23, 2024
0381670
I was missing a line
mcasales Apr 23, 2024
bbb026e
edit selection
sindhu-ku Apr 23, 2024
38698d4
update selection
sindhu-ku Apr 24, 2024
0ea26b3
update selection
sindhu-ku Apr 25, 2024
eb252b5
Fixing a small typo
mcasales Apr 25, 2024
7940b03
updated duneanaobj version
mcasales Apr 25, 2024
c2e41e2
Update README.md
mcasales Apr 25, 2024
4aaf436
fixed a typo in setting root
mcasales Aug 8, 2024
fc1cb98
Adding BOOST include to cafe
mcasales Aug 8, 2024
20d2409
Adding container instruction
mcasales Aug 8, 2024
c8b276a
Closer to the tutorial version, with new files and prettier plots
mcasales Aug 9, 2024
1387a38
Making sure flatcafs read the right pot
mcasales Aug 20, 2024
c37e105
Adding a function to merge several spectra into an ensemble
mcasales Aug 20, 2024
a79df73
removing ups products that will be replaced by jwolcott versions
mcasales Aug 20, 2024
68564e5
adding an example with file systematics
mcasales Aug 20, 2024
a1139e6
adding instruction about setting the ups directory from Jeremy
mcasales Aug 20, 2024
34cfc11
Adding more examples with true-reco matching
mcasales Aug 20, 2024
85e5d7a
Adding notes of to dos
mcasales Sep 2, 2024
c7fa966
Adding a member that merges several EnsembleSpectrum into a single one
mcasales Sep 2, 2024
6d9acf7
Fixing comments and indentations
mcasales Sep 4, 2024
1c5b10e
Adding a function to get th2 from eigenmx
mcasales Sep 4, 2024
29a00bd
Pushing a bunch of updates in examples
mcasales Sep 4, 2024
bc0db40
Update README.md
mcasales Sep 4, 2024
4e446df
Merge branch 'feature/source-sink-overhaul' of github.com:DUNE/lblpwg…
mcasales Sep 4, 2024
71cae01
more details in instructions
mcasales Sep 4, 2024
4eec285
Changed duneanaobj version to add FindInteraction function
mcasales Sep 5, 2024
b5cfed3
small change in verifying universe size
mcasales Sep 5, 2024
6395c98
cleaning up tutorials
mcasales Sep 5, 2024
b7c4525
Merge branch 'feature/source-sink-overhaul' into feature/source-sink-…
sindhu-ku Sep 5, 2024
d774e61
Revert "Merge branch 'feature/source-sink-overhaul' into feature/sour…
sindhu-ku Sep 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CAFAna/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ cmake/CMakeFiles/
*.root
*.pdf
*.png
._*
.DS_*
support/
227 changes: 115 additions & 112 deletions CAFAna/Analysis/AnalysisBinnings.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,131 +10,134 @@ using namespace ana;

AxisBlob GetAxisBlob(std::string const &blob_name) {

//Should all be statically initialized on first method call to ensure that the vars have been initialized beforehand
// Axes
static HistAxis const axRecoEnuFDnumu("Reco energy (GeV)", kFDRecoBinning,
kRecoE_numu);
static HistAxis const axRecoEnuFDnue("Reco energy (GeV)", kFDRecoBinning,
kRecoE_nue);
static HistAxis const axErecYrecND("Reco energy (GeV)", kNDRecoBinning,
kRecoEnergyND, "y_{rec}", kYBinning,
kRecoYND);
static HistAxis const axRecoEnuFDnumu_v3("Reco energy (GeV)",
kFDRecoBinning, kRecoE_numu);
static HistAxis const axRecoEnuFDnue_v3("Reco energy (GeV)",
kFDRecoV3Binning, kRecoE_nue);
static HistAxis const axErecYrecND_v3("Reco energy (GeV)",
kNDRecoV3Binning, kRecoEnergyND,
"y_{rec}", kYV3Binning, kRecoYND);
static HistAxis const axErecND("Reco energy (GeV)", kNDRecoBinning,
kRecoEnergyND);

static HistAxis const axErecFD_FromDep("Reco energy (GeV)", kFDRecoBinning,
kRecoE_FromDep);
static HistAxis const axErecYrecND_FromDep(
"Reco energy (GeV)", kNDRecoBinning, kRecoE_FromDep, "y_{rec}", kYBinning,
kRecoY_FromDep);
static HistAxis const axErecYrecNDOA_FromDep(
"Reco energy (GeV)", kNDRecoOABinning, kRecoE_FromDep, "y_{rec}", kYBinning,
kRecoY_FromDep);
static HistAxis const axErecND_FromDep("#it{E}_{#nu}^{Rec.} (GeV)",
kNDRecoBinning, kRecoE_FromDep);
// //Should all be statically initialized on first method call to ensure that the vars have been initialized beforehand
// // Axes
// static HistAxis const axRecoEnuFDnumu("Reco energy (GeV)", kFDRecoBinning,
// kRecoE_numu);
// static HistAxis const axRecoEnuFDnue("Reco energy (GeV)", kFDRecoBinning,
// kRecoE_nue);
// static HistAxis const axErecYrecND("Reco energy (GeV)", kNDRecoBinning,
// kRecoEnergyND, "y_{rec}", kYBinning,
// kRecoYND);
// static HistAxis const axRecoEnuFDnumu_v3("Reco energy (GeV)",
// kFDRecoBinning, kRecoE_numu);
// static HistAxis const axRecoEnuFDnue_v3("Reco energy (GeV)",
// kFDRecoV3Binning, kRecoE_nue);
// static HistAxis const axErecYrecND_v3("Reco energy (GeV)",
// kNDRecoV3Binning, kRecoEnergyND,
// "y_{rec}", kYV3Binning, kRecoYND);
// static HistAxis const axErecND("Reco energy (GeV)", kNDRecoBinning,
// kRecoEnergyND);
//
// static HistAxis const axErecFD_FromDep("Reco energy (GeV)", kFDRecoBinning,
// kRecoE_FromDep);
// static HistAxis const axErecYrecND_FromDep(
// "Reco energy (GeV)", kNDRecoBinning, kRecoE_FromDep, "y_{rec}", kYBinning,
// kRecoY_FromDep);
// static HistAxis const axErecYrecNDOA_FromDep(
// "Reco energy (GeV)", kNDRecoOABinning, kRecoE_FromDep, "y_{rec}", kYBinning,
// kRecoY_FromDep);
// static HistAxis const axErecND_FromDep("#it{E}_{#nu}^{Rec.} (GeV)",
// kNDRecoBinning, kRecoE_FromDep);

static HistAxis const axTrueE_unibin("#it{E}_{#nu} (GeV)", kTrueBinning,
kTrueEnergy);

static HistAxis const axTrueE_unibin_coarse(
"#it{E}_{#nu} (GeV)", kTrueCoarseBinning, kTrueEnergy);

static HistAxis const axErec_FromDep_unibin("#it{E}_{#nu}^{Rec.} (GeV)",
kTrueBinning, kRecoE_FromDep);
static HistAxis const axErecND_unibin("#it{E}_{#nu}^{Rec.} (GeV)",
kTrueBinning, kRecoEnergyND);
static HistAxis const axRecoEnuFDnumu_unibin("Reco energy (GeV)",
kTrueBinning, kRecoE_numu);
static HistAxis const axRecoEnuFDnue_unibin("Reco energy (GeV)",
kTrueBinning, kRecoE_nue);

static HistAxis const axErecND_coarsebin(
"Reco energy (GeV)", kRecoCoarseBinning, kRecoEnergyND);
static HistAxis const axRecoEnuFDnumu_coarsebin(
"Reco energy (GeV)", kRecoCoarseBinning, kRecoE_numu);

static HistAxis const axRecoEnuFDnue_coarsebin(
"Reco energy (GeV)", kRecoCoarseBinning, kRecoE_nue);

static HistAxis const axErecND_verycoarsebin(
"Reco energy (GeV)", kRecoVeryCoarseBinning, kRecoEnergyND);
static HistAxis const axRecoEnuFDnumu_verycoarsebin(
"Reco energy (GeV)", kRecoVeryCoarseBinning, kRecoE_numu);

static HistAxis const axRecoEnuFDnue_verycoarsebin(
"Reco energy (GeV)", kRecoVeryCoarseBinning, kRecoE_nue);

static HistAxis const axErecND_onebin("Reco energy (GeV)", kOneBinBinning,
kRecoEnergyND);
static HistAxis const axRecoEnuFDnumu_onebin("Reco energy (GeV)", kOneBinBinning,
kRecoE_numu);

static HistAxis const axRecoEnuFDnue_onebin("Reco energy (GeV)", kOneBinBinning,
kRecoE_nue);

static AxisBlob const default_axes_v4{&axErecYrecND, &axRecoEnuFDnumu,
&axRecoEnuFDnue};
static AxisBlob const default_axes_v3{&axErecYrecND_v3, &axRecoEnuFDnumu_v3,
&axRecoEnuFDnue_v3};
static AxisBlob const fake_data_axes{&axErecYrecND_FromDep, &axErecFD_FromDep,
&axErecFD_FromDep};

static AxisBlob const Ax1DND_unibin{&axErecND_unibin, &axRecoEnuFDnumu_unibin,
&axRecoEnuFDnue_unibin};
static AxisBlob const Ax1DND_FromDep_unibin{
&axErec_FromDep_unibin, &axErec_FromDep_unibin, &axErec_FromDep_unibin};

AxisBlob AxToUse =
(GetAnaVersion() == kV4) ? default_axes_v4 : default_axes_v3;
if (blob_name == "1DND") {
AxToUse.NDAx = &axErecND;
} else if (blob_name == "FromDep") {
AxToUse.NDAx = &axErecYrecND_FromDep;
AxToUse.FDAx_numu = &axErecFD_FromDep;
AxToUse.FDAx_nue = &axErecFD_FromDep;
} else if (blob_name == "1DNDFromDep") {
AxToUse.NDAx = &axErecND_FromDep;
AxToUse.FDAx_numu = &axErecFD_FromDep;
AxToUse.FDAx_nue = &axErecFD_FromDep;
} else if (blob_name == "CoarseBin1D") {
AxToUse.NDAx = &axErecND_coarsebin;
AxToUse.FDAx_numu = &axRecoEnuFDnumu_coarsebin;
AxToUse.FDAx_nue = &axRecoEnuFDnue_coarsebin;
} else if (blob_name == "VeryCoarseBin1D") {
AxToUse.NDAx = &axErecND_verycoarsebin;
AxToUse.FDAx_numu = &axRecoEnuFDnumu_verycoarsebin;
AxToUse.FDAx_nue = &axRecoEnuFDnue_verycoarsebin;
} else if (blob_name == "OneBin") {
AxToUse.NDAx = &axErecND_onebin;
AxToUse.FDAx_numu = &axRecoEnuFDnumu_onebin;
AxToUse.FDAx_nue = &axRecoEnuFDnue_onebin;
} else if (blob_name == "ETrue") {
// static HistAxis const axErec_FromDep_unibin("#it{E}_{#nu}^{Rec.} (GeV)",
// kTrueBinning, kRecoE_FromDep);
// static HistAxis const axErecND_unibin("#it{E}_{#nu}^{Rec.} (GeV)",
// kTrueBinning, kRecoEnergyND);
// static HistAxis const axRecoEnuFDnumu_unibin("Reco energy (GeV)",
// kTrueBinning, kRecoE_numu);
// static HistAxis const axRecoEnuFDnue_unibin("Reco energy (GeV)",
// kTrueBinning, kRecoE_nue);
//
// static HistAxis const axErecND_coarsebin(
// "Reco energy (GeV)", kRecoCoarseBinning, kRecoEnergyND);
// static HistAxis const axRecoEnuFDnumu_coarsebin(
// "Reco energy (GeV)", kRecoCoarseBinning, kRecoE_numu);
//
// static HistAxis const axRecoEnuFDnue_coarsebin(
// "Reco energy (GeV)", kRecoCoarseBinning, kRecoE_nue);
//
// static HistAxis const axErecND_verycoarsebin(
// "Reco energy (GeV)", kRecoVeryCoarseBinning, kRecoEnergyND);
// static HistAxis const axRecoEnuFDnumu_verycoarsebin(
// "Reco energy (GeV)", kRecoVeryCoarseBinning, kRecoE_numu);
//
// static HistAxis const axRecoEnuFDnue_verycoarsebin(
// "Reco energy (GeV)", kRecoVeryCoarseBinning, kRecoE_nue);
//
// static HistAxis const axErecND_onebin("Reco energy (GeV)", kOneBinBinning,
// kRecoEnergyND);
// static HistAxis const axRecoEnuFDnumu_onebin("Reco energy (GeV)", kOneBinBinning,
// kRecoE_numu);
//
// static HistAxis const axRecoEnuFDnue_onebin("Reco energy (GeV)", kOneBinBinning,
// kRecoE_nue);
//
// static AxisBlob const default_axes_v4{&axErecYrecND, &axRecoEnuFDnumu,
// &axRecoEnuFDnue};
// static AxisBlob const default_axes_v3{&axErecYrecND_v3, &axRecoEnuFDnumu_v3,
// &axRecoEnuFDnue_v3};
// static AxisBlob const fake_data_axes{&axErecYrecND_FromDep, &axErecFD_FromDep,
// &axErecFD_FromDep};
//
// static AxisBlob const Ax1DND_unibin{&axErecND_unibin, &axRecoEnuFDnumu_unibin,
// &axRecoEnuFDnue_unibin};
// static AxisBlob const Ax1DND_FromDep_unibin{
// &axErec_FromDep_unibin, &axErec_FromDep_unibin, &axErec_FromDep_unibin};

static AxisBlob const default_axes_true{&axTrueE_unibin_coarse, &axTrueE_unibin_coarse,
&axTrueE_unibin_coarse};
AxisBlob AxToUse = default_axes_true;
//(GetAnaVersion() == kV4) ? default_axes_v4 : default_axes_v3;
// if (blob_name == "1DND") {
// AxToUse.NDAx = &axErecND;
// } else if (blob_name == "FromDep") {
// AxToUse.NDAx = &axErecYrecND_FromDep;
// AxToUse.FDAx_numu = &axErecFD_FromDep;
// AxToUse.FDAx_nue = &axErecFD_FromDep;
// } else if (blob_name == "1DNDFromDep") {
// AxToUse.NDAx = &axErecND_FromDep;
// AxToUse.FDAx_numu = &axErecFD_FromDep;
// AxToUse.FDAx_nue = &axErecFD_FromDep;
// } else if (blob_name == "CoarseBin1D") {
// AxToUse.NDAx = &axErecND_coarsebin;
// AxToUse.FDAx_numu = &axRecoEnuFDnumu_coarsebin;
// AxToUse.FDAx_nue = &axRecoEnuFDnue_coarsebin;
// } else if (blob_name == "VeryCoarseBin1D") {
// AxToUse.NDAx = &axErecND_verycoarsebin;
// AxToUse.FDAx_numu = &axRecoEnuFDnumu_verycoarsebin;
// AxToUse.FDAx_nue = &axRecoEnuFDnue_verycoarsebin;
// } else if (blob_name == "OneBin") {
// AxToUse.NDAx = &axErecND_onebin;
// AxToUse.FDAx_numu = &axRecoEnuFDnumu_onebin;
// AxToUse.FDAx_nue = &axRecoEnuFDnue_onebin;
// } else
if (blob_name == "ETrue") {
AxToUse.NDAx = &axTrueE_unibin;
AxToUse.FDAx_numu = &axTrueE_unibin;
AxToUse.FDAx_nue = &axTrueE_unibin;
} else if (blob_name == "ETrueCoarse") {
AxToUse.NDAx = &axTrueE_unibin_coarse;
AxToUse.FDAx_numu = &axTrueE_unibin_coarse;
AxToUse.FDAx_nue = &axTrueE_unibin_coarse;
} else if (blob_name == "FakeData") {
AxToUse = fake_data_axes;
} else if (blob_name == "v4") {
AxToUse = default_axes_v4;
} else if (blob_name == "v3") {
AxToUse = default_axes_v3;
} else if (blob_name == "CoarseNue") {
AxToUse.FDAx_nue = &axRecoEnuFDnue_coarsebin;
} else if (blob_name == "VeryCoarseNue") {
AxToUse.FDAx_nue = &axRecoEnuFDnue_verycoarsebin;
} else if (blob_name == "OneBinNue") {
AxToUse.FDAx_nue = &axRecoEnuFDnue_onebin;
}
} //else if (blob_name == "FakeData") {
// AxToUse = fake_data_axes;
// } else if (blob_name == "v4") {
// AxToUse = default_axes_v4;
// } else if (blob_name == "v3") {
// AxToUse = default_axes_v3;
// } else if (blob_name == "CoarseNue") {
// AxToUse.FDAx_nue = &axRecoEnuFDnue_coarsebin;
// } else if (blob_name == "VeryCoarseNue") {
// AxToUse.FDAx_nue = &axRecoEnuFDnue_verycoarsebin;
// } else if (blob_name == "OneBinNue") {
// AxToUse.FDAx_nue = &axRecoEnuFDnue_onebin;
// }
return AxToUse;
}
76 changes: 38 additions & 38 deletions CAFAna/Analysis/AnalysisVars.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,41 @@ using namespace ana;

// List of vars
// -->FD
Var const kRecoE_nue = SIMPLEVAR(Ev_reco_nue);
Var const kRecoE_numu = SIMPLEVAR(Ev_reco_numu);
Var const kRecoE_FromDep = SIMPLEVAR(eRec_FromDep);
Var const kFDNumuPid = SIMPLEVAR(cvnnumu);
Var const kFDNuePid = SIMPLEVAR(cvnnue);
Var const kMVANUMU = SIMPLEVAR(mvanumu);

Var const kLepEReco_numu = SIMPLEVAR(RecoLepEnNumu);
Var const kLepEReco_nue = SIMPLEVAR(RecoLepEnNue);

Var const kHadEReco_numu = SIMPLEVAR(RecoHadEnNumu);
Var const kHadEReco_nue = SIMPLEVAR(RecoHadEnNue);

Var const kEVisReco_numu = SIMPLEVAR(EVisReco_numu);
Var const kEVisReco_nue = SIMPLEVAR(EVisReco_nue);

// -->ND
Var const kRecoEnergyND = SIMPLEVAR(Ev_reco);
Var const kRecoYND = (SIMPLEVAR(Ev_reco) - SIMPLEVAR(Elep_reco)) /
SIMPLEVAR(Ev_reco);
Var const kRecoY_FromDep =
(SIMPLEVAR(eRec_FromDep) - SIMPLEVAR(LepE)) /
SIMPLEVAR(eRec_FromDep);

Var const kNDLepEReco = SIMPLEVAR(Elep_reco);
Var const kNDEVisReco = SIMPLEVAR(EVisReco_ND);

// -->Common ND & FD
Var const kTrueEnergy = SIMPLEVAR(Ev);
Var const kProxyERec = SIMPLEVAR(eRecProxy);
Var const kEVisTrue = SIMPLEVAR(VisTrue_NDFD);

Var const kPEReco = SIMPLEVAR(eRecoP);
Var const kPipmEReco = SIMPLEVAR(eRecoPip) + SIMPLEVAR(eRecoPim);
Var const kPi0EReco = SIMPLEVAR(eRecoPi0);

// CV weighting
Weight const kCVXSecWeights = SIMPLEWEIGHT(total_xsSyst_cv_wgt); // kUnweighted
//Var const kRecoE_nue = SIMPLEVAR(Ev_reco_nue);
//Var const kRecoE_numu = SIMPLEVAR(Ev_reco_numu);
//Var const kRecoE_FromDep = SIMPLEVAR(eRec_FromDep);
//Var const kFDNumuPid = SIMPLEVAR(cvnnumu);
//Var const kFDNuePid = SIMPLEVAR(cvnnue);
//Var const kMVANUMU = SIMPLEVAR(mvanumu);
//
//Var const kLepEReco_numu = SIMPLEVAR(RecoLepEnNumu);
//Var const kLepEReco_nue = SIMPLEVAR(RecoLepEnNue);
//
//Var const kHadEReco_numu = SIMPLEVAR(RecoHadEnNumu);
//Var const kHadEReco_nue = SIMPLEVAR(RecoHadEnNue);
//
//Var const kEVisReco_numu = SIMPLEVAR(EVisReco_numu);
//Var const kEVisReco_nue = SIMPLEVAR(EVisReco_nue);
//
//// -->ND
//Var const kRecoEnergyND = SIMPLEVAR(Ev_reco);
//Var const kRecoYND = (SIMPLEVAR(Ev_reco) - SIMPLEVAR(Elep_reco)) /
// SIMPLEVAR(Ev_reco);
//Var const kRecoY_FromDep =
// (SIMPLEVAR(eRec_FromDep) - SIMPLEVAR(LepE)) /
// SIMPLEVAR(eRec_FromDep);
//
//Var const kNDLepEReco = SIMPLEVAR(Elep_reco);
//Var const kNDEVisReco = SIMPLEVAR(EVisReco_ND);
//
//// -->Common ND & FD
//Var const kTrueEnergy = SIMPLEVAR(Ev);
//Var const kProxyERec = SIMPLEVAR(eRecProxy);
//Var const kEVisTrue = SIMPLEVAR(VisTrue_NDFD);
//
//Var const kPEReco = SIMPLEVAR(eRecoP);
//Var const kPipmEReco = SIMPLEVAR(eRecoPip) + SIMPLEVAR(eRecoPim);
//Var const kPi0EReco = SIMPLEVAR(eRecoPi0);
//
//// CV weighting
//Weight const kCVXSecWeights = SIMPLEWEIGHT(total_xsSyst_cv_wgt); // kUnweighted
Loading