82 float maxyall = -999.0;
83 for(
unsigned int i=0;i<sr->vtx.elastic.fuzzyk.nshwlid;
i++){
84 maxyall = std::max(std::max(sr->vtx.elastic.fuzzyk.png[i].shwlid.start.Y(),
85 sr->vtx.elastic.fuzzyk.png[i].shwlid.stop.Y()),maxyall);
100 float maxzall = -999.0;
101 for(
unsigned int i=0;i<sr->vtx.elastic.fuzzyk.nshwlid;
i++){
102 maxzall = std::max(std::max(sr->vtx.elastic.fuzzyk.png[i].shwlid.start.Z(),
103 sr->vtx.elastic.fuzzyk.png[i].shwlid.stop.Z()),maxzall);
caf::Proxy< unsigned int > nshwlid
caf::Proxy< caf::SRFuzzyK > fuzzyk
Cuts and Vars for the 2020 FD DiF Study.
const Var kDistAllBottom([](const caf::SRProxy *sr){if(std::isnan(1.*sr->sel.nuecosrej.distallpngbottom)) return-1000.0f;return float(sr->sel.nuecosrej.distallpngbottom);})
Distance of all showers in slice from the bottom edge of detector.
caf::Proxy< float > distallpngtop
const Var kDistAllWest([](const caf::SRProxy *sr){if(std::isnan(1.*sr->sel.nuecosrej.distallpngwest)) return-1000.0f;return float(sr->sel.nuecosrej.distallpngwest);})
Distance of all showers in slice from the west edge of detector.
const Var kDistAllTop([](const caf::SRProxy *sr){if(std::isnan(1.*sr->sel.nuecosrej.distallpngtop)) return-1000.0f;return float(sr->sel.nuecosrej.distallpngtop);})
Distance of all showers in slice from the top edge of detector.
caf::Proxy< float > distallpngeast
const Var kDistAllBack([](const caf::SRProxy *sr){if(std::isnan(1.*sr->sel.nuecosrej.distallpngback)) return-1000.0f;return float(sr->sel.nuecosrej.distallpngback);})
Distance of all showers in slice from the back edge of detector.
Proxy for caf::StandardRecord.
const Var kRawE
Raw energy (without calE correction) for the slice,.
#define SIMPLEVAR(CAFNAME)
For Vars where literally all you need is a single CAF variable.
const Var kMaxZ([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return-1000.0f;if(sr->vtx.elastic.fuzzyk.nshwlid==0) return-1000.0f;float maxzall=-999.0;for(unsigned int i=0;i< sr->vtx.elastic.fuzzyk.nshwlid;i++){maxzall=std::max(std::max(sr->vtx.elastic.fuzzyk.png[i].shwlid.start.Z(), sr->vtx.elastic.fuzzyk.png[i].shwlid.stop.Z()), maxzall);}return maxzall;})
const Var kSparsenessAsymm
_Var< caf::SRProxy > Var
Representation of a variable to be retrieved from a caf::StandardRecord object.
int isnan(const stan::math::var &a)
const Var kDistAllEast([](const caf::SRProxy *sr){if(std::isnan(1.*sr->sel.nuecosrej.distallpngeast)) return-1000.0f;return float(sr->sel.nuecosrej.distallpngeast);})
Distance of all showers in slice from the east edge of detector.
caf::Proxy< caf::SRElastic > elastic
caf::Proxy< caf::SRNueCosRej > nuecosrej
const Var kRawEshw
Raw energy (without calE correction) for the leading shower,.
const Var kPtP
Transverse momentum fraction in slice.
const Var kMaxY([](const caf::SRProxy *sr){if(!sr->vtx.elastic.IsValid) return-1000.0f;if(sr->vtx.elastic.fuzzyk.nshwlid==0) return-1000.0f;float maxyall=-999.0;for(unsigned int i=0;i< sr->vtx.elastic.fuzzyk.nshwlid;i++){maxyall=std::max(std::max(sr->vtx.elastic.fuzzyk.png[i].shwlid.start.Y(), sr->vtx.elastic.fuzzyk.png[i].shwlid.stop.Y()), maxyall);}return maxyall;})
caf::Proxy< float > distallpngwest
caf::Proxy< float > distallpngback
const Var kDistAllFront([](const caf::SRProxy *sr){if(std::isnan(1.*sr->sel.nuecosrej.distallpngfront)) return-1000.0f;return float(sr->sel.nuecosrej.distallpngfront);})
Distance of all showers in slice from the front edge of detector.
caf::Proxy< bool > IsValid
caf::Proxy< float > distallpngbottom
const Var kDistNotTop([](const caf::SRProxy *sr){float distnottop=std::min(kDistAllBottom(sr), kDistAllFront(sr));distnottop=std::min(float(kDistAllBack(sr)), distnottop);distnottop=std::min(float(kDistAllEast(sr)), distnottop);distnottop=std::min(float(kDistAllWest(sr)), distnottop);return distnottop;})
Distance of all showers in slice from the edge that is not the top.
const Var kRawEhad
Raw energy (without calE correction) for the slice - leading shower,.
caf::Proxy< caf::SRIDBranch > sel
T min(const caf::Proxy< T > &a, T b)
caf::Proxy< caf::SRVertexBranch > vtx
const Var kCosPIDCoreBDT
2020 nue cosmic rejection BDT variable - core
const Var kCosPIDPeriBDT
2020 nue cosmic rejection BDT variable - peripheral
caf::Proxy< float > distallpngfront