MRVars.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "CAFAna/Core/Var.h"
4 
5 namespace ana
6 {
7  // MRBrem variables
8  extern const Var kShwAngle;
9  extern const Var kShwE;
10  extern const Var kDistNearestWall;
11 
12  // MRE variables
13  extern const Var kMREParentNumuE;
14  extern const Var kMREParentMuonStartZ;
15  extern const Var kMREParentMuonStartY;
16  extern const Var kMREParentMuonStartX;
17  extern const Var kMREParentMuonE;
18  extern const Var kMREParentSlcId;
19  extern const Var kMREParentEff;
20  extern const Var kMREParentPur;
21  extern const Var kMREParentNHit;
22  extern const Var kMREParentCPlanes;
23  extern const Var kMREParentMuonStopZ;
24  extern const Var kMREParentMuonStopY;
25  extern const Var kMREParentMuonStopX;
26  extern const Var kMREParentFirstPl;
27  extern const Var kMREParentLastPl;
28  extern const Var kMREParentFwdCell;
29  extern const Var kMREParentBckCell;
30  extern const Var kMREParentHadECat;
31  extern const Var kMREParentPID;
32 
33 }
const Var kShwE([](const caf::SRProxy *sr){double maxe=-99.0;if(!sr->vtx.elastic.IsValid) return-99999.0;if(sr->vtx.elastic.fuzzyk.npng< 1) return-99999.0;for(unsigned int i=0;i< sr->vtx.elastic.fuzzyk.npng;i++){if(maxe< sr->vtx.elastic.fuzzyk.png[i].shwlid.shwE){maxe=sr->vtx.elastic.fuzzyk.png[i].shwlid.shwE;}}return maxe;})
Definition: MRVars.h:9
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const Var kMREParentNumuE([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.numuE)) return-1000.0f;return float(sr->parent.mrccpar.numuE);})
Definition: MRVars.h:13
const Var kMREParentMuonStartY([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.muonstart.Y())) return-1000.0f;return float(sr->parent.mrccpar.muonstart.Y());})
Definition: MRVars.h:15
const Var kMREParentMuonStartX([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.muonstart.X())) return-1000.0f;return float(sr->parent.mrccpar.muonstart.X());})
Definition: MRVars.h:16
const Var kDistNearestWall([](const caf::SRProxy *sr){float disttonearestwall=std::min(float(kDistAllTop(sr)), float(kDistNotTop(sr)));return disttonearestwall;})
Definition: MRVars.h:10
const Var kMREParentNHit([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.nhit)) return-1000.0f;return float(sr->parent.mrccpar.nhit);})
Definition: MRVars.h:21
const Var kMREParentSlcId([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.muE)) return-1000.0f;return float(sr->parent.mrccpar.slcidx);})
Definition: MRVars.h:18
const Var kMREParentPID([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.remid)) return-1000.0f;return float(sr->parent.mrccpar.remid);})
Definition: MRVars.h:31
const Var kMREParentEff([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.eff)) return-1000.0f;return float(sr->parent.mrccpar.eff);})
Definition: MRVars.h:19
const Var kMREParentMuonStopZ([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.muonstop.Z())) return-1000.0f;return float(sr->parent.mrccpar.muonstop.Z());})
Definition: MRVars.h:23
const Var kMREParentLastPl([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.lastplane)) return-1000.0f;return float(sr->parent.mrccpar.lastplane);})
Definition: MRVars.h:27
const Var kMREParentPur([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.pur)) return-1000.0f;return float(sr->parent.mrccpar.pur);})
Definition: MRVars.h:20
const Var kMREParentFirstPl([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.firstplane)) return-1000.0f;return float(sr->parent.mrccpar.firstplane);})
Definition: MRVars.h:26
const Var kMREParentFwdCell([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.muonfwdcell)) return-1000.0f;return float(sr->parent.mrccpar.muonfwdcell);})
Definition: MRVars.h:28
const Var kMREParentMuonStartZ([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.muonstart.Z())) return-1000.0f;return float(sr->parent.mrccpar.muonstart.Z());})
Definition: MRVars.h:14
const Var kMREParentMuonStopY([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.muonstop.Y())) return-1000.0f;return float(sr->parent.mrccpar.muonstop.Y());})
Definition: MRVars.h:24
const Var kMREParentHadECat([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.hadEinmucat)) return-1000.0f;return float(sr->parent.mrccpar.hadEinmucat);})
Definition: MRVars.h:30
const Var kMREParentMuonE([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.muE)) return-1000.0f;return float(sr->parent.mrccpar.muE);})
Definition: MRVars.h:17
const Var kMREParentBckCell([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.muonbkcell)) return-1000.0f;return float(sr->parent.mrccpar.muonbkcell);})
Definition: MRVars.h:29
const Var kShwAngle([](const caf::SRProxy *sr){double maxe=-99.0;double cosz=-1.0;if(!sr->vtx.elastic.IsValid) return-99999.0;if(sr->vtx.elastic.fuzzyk.npng< 1) return-99999.0;for(unsigned int i=0;i< sr->vtx.elastic.fuzzyk.npng;i++){if(maxe< sr->vtx.elastic.fuzzyk.png[i].shwlid.shwE){maxe=sr->vtx.elastic.fuzzyk.png[i].shwlid.shwE;cosz=sr->vtx.elastic.fuzzyk.png[i].shwlid.dir.z;}}return cosz;})
Definition: MRVars.h:8
const Var kMREParentMuonStopX([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.muonstop.X())) return-1000.0f;return float(sr->parent.mrccpar.muonstop.X());})
Definition: MRVars.h:25
const Var kMREParentCPlanes([](const caf::SRProxy *sr){if(std::isnan(1.*sr->parent.mrccpar.contplanes)) return-1000.0f;return float(sr->parent.mrccpar.contplanes);})
Definition: MRVars.h:22