All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TruthVars.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace ana
6 {
7  extern const Var kHasTruthMatch;
8  extern const Var kCompletness;
9 
10  extern const Var kTruthEnergy;
11 
12  extern const Var kTruthVtxX;
13  extern const Var kTruthVtxY;
14  extern const Var kTruthVtxZ;
15 
16  extern const Var kTruthVtxDistX;
17  extern const Var kTruthVtxDistY;
18  extern const Var kTruthVtxDistZ;
19 
20  extern const Var kTruthVtxDistMag;
21 
22  extern const SpillVar kTruthNuEnergy;
24 
25 }
const Var kCompletness([](const caf::SRSliceProxy *slc) -> double{return(kHasTruthMatch(slc)?(float) slc->tmatch.eff:-5.f);})
Definition: TruthVars.h:8
const Var kTruthEnergy([](const caf::SRSliceProxy *slc) -> double{return(kHasTruthMatch(slc)?(float) slc->truth.E:-5.f);})
Definition: TruthVars.h:10
const Var kTruthVtxY([](const caf::SRSliceProxy *slc) -> double{return(kHasTruthMatch(slc)?(float) slc->truth.position.y:-999.f);})
Definition: TruthVars.h:13
const Var kTruthVtxDistMag([](const caf::SRSliceProxy *slc) -> double{return(kHasTruthMatch(slc)?(float) std::hypot(kTruthVtxDistX(slc), kTruthVtxDistY(slc), kTruthVtxDistZ(slc)):-5.f);})
Definition: TruthVars.h:20
process_name opflashCryoW ana
const SpillVar kTruthNuEnergy([](const caf::SRSpillProxy *sr) -> double{return(sr->mc.nnu!=1?-5.f:(float) sr->mc.nu[0].E);})
Definition: TruthVars.h:22
const Var kTruthVtxZ([](const caf::SRSliceProxy *slc) -> double{return(kHasTruthMatch(slc)?(float) slc->truth.position.z:-999.f);})
Definition: TruthVars.h:14
const Var kTruthVtxX([](const caf::SRSliceProxy *slc) -> double{return(kHasTruthMatch(slc)?(float) slc->truth.position.x:-999.f);})
Definition: TruthVars.h:12
const Var kTruthVtxDistY([](const caf::SRSliceProxy *slc) -> double{return(kHasTruthMatch(slc)?(float) std::abs(slc->truth.position.y-kSlcVtxY(slc)):-999.f);})
Definition: TruthVars.h:17
const Var kHasTruthMatch([](const caf::SRSliceProxy *slc) -> double{return(slc->truth.index!=-1);})
Definition: TruthVars.h:7
const Var kTruthVtxDistX([](const caf::SRSliceProxy *slc) -> double{return(kHasTruthMatch(slc)?(float) std::abs(slc->truth.position.x-kSlcVtxX(slc)):-999.f);})
Definition: TruthVars.h:16
const Var kTruthVtxDistZ([](const caf::SRSliceProxy *slc) -> double{return(kHasTruthMatch(slc)?(float) std::abs(slc->truth.position.z-kSlcVtxZ(slc)):-999.f);})
Definition: TruthVars.h:18
const SpillVar kTruthLeptonEnergy([](const caf::SRSpillProxy *sr) -> double{if(sr->mc.nnu!=1) return-5.f;for(auto const &prim:sr->mc.nu[0].prim){if(std::abs(prim.pdg)!=11 &&std::abs(prim.pdg)!=13) continue;return prim.startE;}return-5.f;})
Definition: TruthVars.h:23