All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vars.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace ana
8 {
9  // Return the run number
10  extern const SpillVar kRun;
11 
12  // Return the event number
13  extern const SpillVar kEvt;
14 
15  extern const SpillMultiVar kCRTHitX;
16  extern const SpillMultiVar kCRTHitY;
17  extern const SpillMultiVar kCRTHitZ;
18  extern const SpillMultiVar kCRTHitPE;
19  extern const SpillMultiVar kCRTHitTime;
21 
22  // // Return the slice number
23  // extern const SliceVar kSlc;
24 
25  // Return spill count
26  extern const Var kCounting;
27  extern const SpillVar kSpillCounting;
28 
29  // Slice verteces
30  extern const Var kSlcVtxX;
31  extern const Var kSlcVtxY;
32  extern const Var kSlcVtxZ;
33  extern const Var kSlcNuScore;
34  extern const Var kSlcHasFlash;
35  extern const Var kSlcFlashScore;
36 
37 }
const SpillMultiVar kCRTHitTime([](const caf::SRSpillProxy *sr){std::vector< double > times;for(const auto &hit:sr->crt_hits){times.push_back(hit.time);}return times;})
Definition: Vars.h:19
const SpillMultiVar kCRTHitX([](const caf::SRSpillProxy *sr){std::vector< double > positions;for(const auto &hit:sr->crt_hits){positions.push_back(hit.position.x);}return positions;})
Definition: Vars.h:15
const SpillMultiVar 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;})
Definition: Vars.h:20
const Var kSlcFlashScore([](const caf::SRSliceProxy *slc) -> double{return((bool) kSlcHasFlash(slc)?(float) slc->fmatch.score:-5.f);})
Definition: Vars.h:35
process_name opflashCryoW ana
const Var kSlcVtxX([](const caf::SRSliceProxy *slc) -> double{return slc->vertex.x;})
Definition: Vars.h:30
const Var kSlcVtxY([](const caf::SRSliceProxy *slc) -> double{return slc->vertex.y;})
Definition: Vars.h:31
const SpillVar kRun
Definition: Vars.cxx:15
const SpillMultiVar kCRTHitPE([](const caf::SRSpillProxy *sr){std::vector< double > pes;for(const auto &hit:sr->crt_hits){pes.push_back(hit.pe);}return pes;})
Definition: Vars.h:18
_Var< caf::SRSpillProxy > SpillVar
Equivalent of Var acting on caf::SRSpill.
Definition: Var.h:76
const Var kSlcVtxZ([](const caf::SRSliceProxy *slc) -> double{return slc->vertex.z;})
Definition: Vars.h:32
const SpillMultiVar kCRTHitY([](const caf::SRSpillProxy *sr){std::vector< double > positions;for(const auto &hit:sr->crt_hits){positions.push_back(hit.position.y);}return positions;})
Definition: Vars.h:16
const SpillMultiVar kCRTHitZ([](const caf::SRSpillProxy *sr){std::vector< double > positions;for(const auto &hit:sr->crt_hits){positions.push_back(hit.position.z);}return positions;})
Definition: Vars.h:17
const Var kCounting
Definition: Vars.cxx:19
const SpillVar kSpillCounting
Definition: Vars.cxx:20
const Var kSlcHasFlash([](const caf::SRSliceProxy *slc) -> double{return slc->fmatch.present;})
Definition: Vars.h:34
const Var kSlcNuScore([](const caf::SRSliceProxy *slc) -> double{return slc->nu_score;})
Definition: Vars.h:33
const SpillVar kEvt
Definition: Vars.cxx:16