All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions | Variables
Vars.cxx File Reference
#include "sbnana/SBNAna/Vars/Vars.h"
#include "sbnana/CAFAna/Core/Utilities.h"
#include "sbnanaobj/StandardRecord/Proxy/SRProxy.h"
#include "TFile.h"
#include "TH1.h"
#include <iostream>
#include <vector>

Go to the source code of this file.

Namespaces

 ana
 Oscillation analysis framework, runs over CAF files outside of ART.
 

Functions

const Var ana::kSlcIsRecoNu ([](const caf::SRSliceProxy *slc) -> double{return!slc->is_clear_cosmic;})
 

Variables

const SpillVar ana::kRun = SIMPLESPILLVAR(hdr.run)
 
const SpillVar ana::kEvt = SIMPLESPILLVAR(hdr.evt)
 
const Var ana::kCounting = kUnweighted
 
const SpillVar ana::kSpillCounting = kSpillUnweighted
 
const SpillMultiVar ana::kCRTHitX ([](const caf::SRSpillProxy *sr){std::vector< double > positions;for(const auto &hit:sr->crt_hits){positions.push_back(hit.position.x);}return positions;})
 
const SpillMultiVar ana::kCRTHitY ([](const caf::SRSpillProxy *sr){std::vector< double > positions;for(const auto &hit:sr->crt_hits){positions.push_back(hit.position.y);}return positions;})
 
const SpillMultiVar ana::kCRTHitZ ([](const caf::SRSpillProxy *sr){std::vector< double > positions;for(const auto &hit:sr->crt_hits){positions.push_back(hit.position.z);}return positions;})
 
const SpillMultiVar ana::kCRTHitPE ([](const caf::SRSpillProxy *sr){std::vector< double > pes;for(const auto &hit:sr->crt_hits){pes.push_back(hit.pe);}return pes;})
 
const SpillMultiVar ana::kCRTHitTime ([](const caf::SRSpillProxy *sr){std::vector< double > times;for(const auto &hit:sr->crt_hits){times.push_back(hit.time);}return times;})
 
const SpillMultiVar ana::kCRTHitTimeFD ([](const caf::SRSpillProxy *sr){std::vector< double > times;for(const auto &hit:sr->crt_hits){auto thistime=hit.time-1600.;times.push_back(thistime);}return times;})
 
const Var ana::kSlcVtxX ([](const caf::SRSliceProxy *slc) -> double{return slc->vertex.x;})
 
const Var ana::kSlcVtxY ([](const caf::SRSliceProxy *slc) -> double{return slc->vertex.y;})
 
const Var ana::kSlcVtxZ ([](const caf::SRSliceProxy *slc) -> double{return slc->vertex.z;})
 
const Var ana::kSlcNuScore ([](const caf::SRSliceProxy *slc) -> double{return slc->nu_score;})
 
const Var ana::kSlcHasFlash ([](const caf::SRSliceProxy *slc) -> double{return slc->fmatch.present;})
 
const Var ana::kSlcFlashScore ([](const caf::SRSliceProxy *slc) -> double{return((bool) kSlcHasFlash(slc)?(float) slc->fmatch.score:-5.f);})