#include "CAFAna/Core/Binning.h"
#include "CAFAna/Core/Cut.h"
#include <functional>
Go to the source code of this file.
Classes | |
class | ana::_Var< T > |
Template for Var and SpillVar. More... | |
struct | ana::One< T > |
Namespaces | |
ana | |
Cuts and Vars for the 2020 FD DiF Study. | |
Macros | |
#define | SIMPLEVAR(CAFNAME) ana::Var([](const caf::SRProxy* sr){return sr->CAFNAME;}) |
For Vars where literally all you need is a single CAF variable. More... | |
#define | SIMPLENUTRUTHVAR(CAFNAME) ana::NuTruthVar([](const caf::SRNeutrinoProxy* nu){return nu->CAFNAME;}) |
Typedefs | |
typedef _Var< caf::SRProxy > | ana::Var |
Representation of a variable to be retrieved from a caf::StandardRecord object. More... | |
typedef _Var< caf::SRSpillProxy > | ana::SpillVar |
Equivalent of Var acting on caf::SRSpill. For use in making plots of POT per run etc. More... | |
typedef _Var< caf::SRNeutrinoProxy > | ana::NuTruthVar |
Var designed to be used over the nuTree, ie all neutrinos, not just those that got slices. More... | |
Functions | |
template<class T > | |
_Var< T > | ana::Unweighted () |
template<class T > | |
_Var< T > | ana::Var2D (const _Var< T > &a, const Binning &binsa, const _Var< T > &b, const Binning &binsb) |
Variable formed from two input variables. More... | |
template<class T > | |
_Var< T > | ana::Var2D (const _Var< T > &a, int na, double a0, double a1, const _Var< T > &b, int nb, double b0, double b1) |
Variable formed from two input variables. More... | |
template<class T > | |
_Var< T > | ana::Var3D (const _Var< T > &a, const Binning &binsa, const _Var< T > &b, const Binning &binsb, const _Var< T > &c, const Binning &binsc) |
This is just like a Var2D, but useful for 3D Spectra. More... | |
template<class T > | |
_Var< T > | ana::Var3D (const _Var< T > &a, int na, double a0, double a1, const _Var< T > &b, int nb, double b0, double b1, const _Var< T > &c, int nc, double c0, double c1) |
This is just like a Var2D, but useful for 3D Spectra. More... | |
Var | ana::Scaled (const Var &v, double s) |
Use to rescale another variable. More... | |
Var | ana::Constant (double c) |
Use to weight events up and down by some factor. More... | |
Var | ana::Sqrt (const Var &v) |
Use to take sqrt of a var. More... | |
template<class T > | |
_Cut< T > | ana::operator> (double c, const _Var< T > &v) |
template<class T > | |
_Cut< T > | ana::operator< (double c, const _Var< T > &v) |
template<class T > | |
_Cut< T > | ana::operator>= (double c, const _Var< T > &v) |
template<class T > | |
_Cut< T > | ana::operator<= (double c, const _Var< T > &v) |
template<class T > | |
_Cut< T > | ana::operator!= (double c, const _Var< T > &v) |
Variables | |
const Var | ana::kUnweighted {One<caf::SRProxy>()} |
The simplest possible Var, always 1. Used as a default weight. More... | |
const SpillVar | ana::kSpillUnweighted {One<caf::SRSpillProxy>()} |
const NuTruthVar | ana::kNuTruthUnweighted {One<caf::SRNeutrinoProxy>()} |
#define SIMPLENUTRUTHVAR | ( | CAFNAME | ) | ana::NuTruthVar([](const caf::SRNeutrinoProxy* nu){return nu->CAFNAME;}) |
Definition at line 89 of file Var.h.
Referenced by resolution_event_tree().
#define SIMPLEVAR | ( | CAFNAME | ) | ana::Var([](const caf::SRProxy* sr){return sr->CAFNAME;}) |
For Vars where literally all you need is a single CAF variable.
eg Var myVar = SIMPLEVAR(my.var.str); NB lack of quotes quotes around my.var.str
Definition at line 88 of file Var.h.
Referenced by ana::AddHistDefSlice(), ana::AddHistDefSliceTruth(), ana::AddNueHistDefTruth(), ana::AddNumuHistDefBasic(), ana::AddNumuHistDefSliceTruth(), Ana2017_box_opening_macro(), Ana2017_sb_opening_macro(), Ana2018_box_opening_macro(), Analyse_Data2DataComp(), Analyse_Data2DataComp_kNumu2020ND(), AnaResultsLoad(), caf_nue_data_mc(), caf_numu_fd_validation_data(), caf_numu_fd_validation_MC(), caf_numu_fd_validation_MC_no_tau(), caf_numu_nd_cutflow(), caf_numu_validation(), ana::constructBPFPng3dVar(), CutTableLoad(), DataMCLoad(), DataMCNDLoad_nus17(), drawTimePlots(), EnergyCont_macro(), ExtendedAxesLoad(), FD_plots(), get_data(), get_eventlist(), get_eventlist2020(), get_eventslist(), getCosmicList(), getData(), GetHistsFD(), GetHistsND(), getInputList(), getPredictions(), getTimePeakPlots(), getTimePeakTotal(), hyperon_macro(), hyperon_nom_macro(), ana::k2018PIDs(), make_nus_ana01_event_list(), ana::MakeEventListFileHelper(), nus17_box_opening(), nus18_box_opening(), nus_ana01_box_opening(), nus_ana01_sideband_box_opening(), resolution_event_tree(), test_fluxhadr_prod_weights_Flux(), and train_reduce().