Classes | Namespaces | Macros | Typedefs | Functions | Variables
Var.h File Reference
#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::SRProxyana::Var
 Representation of a variable to be retrieved from a caf::StandardRecord object. More...
 
typedef _Var< caf::SRSpillProxyana::SpillVar
 Equivalent of Var acting on caf::SRSpill. For use in making plots of POT per run etc. More...
 
typedef _Var< caf::SRNeutrinoProxyana::NuTruthVar
 Var designed to be used over the nuTree, ie all neutrinos, not just those that got slices. More...
 

Functions

template<class T >
_Var< Tana::Unweighted ()
 
template<class T >
_Var< Tana::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< Tana::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< Tana::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< Tana::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< Tana::operator> (double c, const _Var< T > &v)
 
template<class T >
_Cut< Tana::operator< (double c, const _Var< T > &v)
 
template<class T >
_Cut< Tana::operator>= (double c, const _Var< T > &v)
 
template<class T >
_Cut< Tana::operator<= (double c, const _Var< T > &v)
 
template<class T >
_Cut< Tana::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>()}
 

Macro Definition Documentation

#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;})