VarsAndCuts.h
Go to the documentation of this file.
1 #include "CAFAna/Cuts/Cuts.h"
2 #include "CAFAna/Vars/Vars.h"
3 #include "CAFAna/Core/Binning.h"
4 
6 
7 using namespace ana;
8 
9 const Var kSliceTime([](const caf::SRProxy *sr)
10  {
11  return sr->slc.meantime/1000;
12  });
13 
14 const Cut kSoftContain([](const caf::SRProxy *sr)
15  {
16  return sr->slc.ncellsfromedge > 10 &&
17  sr->slc.firstplane > 10 &&
18  sr->slc.lastplane < 210;
19  });
20 
21 const Cut kDQCut([](const caf::SRProxy *sr)
22  {
23  return sr->trk.cosmic.ntracks > 0 &&
24  sr->slc.ncontplanes >= 6;
25  });
26 
27 
29  {
30  return spill->livetime;
31  });
32 
33 const Cut kInTimeLoose = SIMPLEVAR(slc.meantime) > 25e3 && SIMPLEVAR(slc.meantime) < 475e3;
34 const Cut kInTimeTight = SIMPLEVAR(slc.meantime) > 315e3 && SIMPLEVAR(slc.meantime) < 325e3;
35 
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const Cut kInTimeLoose
Definition: VarsAndCuts.h:33
const Cut kSoftContain([](const caf::SRProxy *sr){return sr->slc.ncellsfromedge > 10 &&sr->slc.firstplane > 10 &&sr->slc.lastplane< 210;})
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
caf::Proxy< unsigned int > ncontplanes
Definition: SRProxy.h:1314
const Var kSliceTime([](const caf::SRProxy *sr){return sr->slc.meantime/1000;})
Definition: NumuVars.h:34
#define SIMPLEVAR(CAFNAME)
For Vars where literally all you need is a single CAF variable.
Definition: Var.h:88
const Cut kInTimeTight
Definition: VarsAndCuts.h:34
caf::Proxy< float > livetime
Definition: SRProxy.h:1379
caf::Proxy< caf::SRTrackBranch > trk
Definition: SRProxy.h:2145
caf::Proxy< unsigned int > ncellsfromedge
Definition: SRProxy.h:1313
caf::StandardRecord * sr
caf::Proxy< unsigned int > lastplane
Definition: SRProxy.h:1309
const Cut kDQCut([](const caf::SRProxy *sr){return sr->trk.cosmic.ntracks > 0 &&sr->slc.ncontplanes >=6;})
Proxy for caf::SRSpill.
Definition: SRProxy.h:1346
caf::Proxy< caf::SRSlice > slc
Definition: SRProxy.h:2142
caf::Proxy< float > meantime
Definition: SRProxy.h:1311
caf::Proxy< caf::SRTrackBase > cosmic
Definition: SRProxy.h:1795
const Cut kCut
Definition: VarsAndCuts.h:36
caf::Proxy< unsigned int > firstplane
Definition: SRProxy.h:1305
caf::Proxy< size_t > ntracks
Definition: SRProxy.h:1730
const Var kSpillLivetime
Return the Livetime for the spill.
Definition: SpillVars.cxx:36