Functions
reduce_numu_ana2018.C File Reference
#include "CAFAna/Cuts/Cuts.h"
#include "3FlavorAna/Cuts/NumuCuts.h"
#include "3FlavorAna/Cuts/NumuCuts2018.h"
#include "CAFAna/Core/FileReducer.h"
#include "CAFAna/Vars/Vars.h"
#include "StandardRecord/Proxy/SRProxy.h"

Go to the source code of this file.

Functions

void reduce_numu_ana2018 (std::string fname, std::string outname)
 

Function Documentation

void reduce_numu_ana2018 ( std::string  fname,
std::string  outname 
)

Definition at line 10 of file reduce_numu_ana2018.C.

References ana::FileReducer::AddEventCut(), ana::FileReducer::AddReductionStep(), ana::ClearMultiNuInfo(), caf::Proxy< caf::SRHeader >::det, ana::FileReducer::Go(), caf::Proxy< caf::StandardRecord >::hdr, caf::kFARDET, PandAna.cut.analysis_cuts::kIsFD, caf::kNEARDET, ana::kNumuDecafCutFD2018, ana::kNumuDecafCutND2018, ana::FileReducer::SetMetadata(), and sr.

11 {
12  FileReducer reduce(fname, outname);
13 
14  reduce.SetMetadata("nova.decaf_skim","numu_contain");
15 
16  const Cut kIsND([](const caf::SRProxy* sr)
17  {
18  return sr->hdr.det==caf::kNEARDET;
19  });
20 
21  const Cut kIsFD([](const caf::SRProxy* sr)
22  {
23  return sr->hdr.det==caf::kFARDET;
24  });
25 
26  const Cut kNumuDecafCut = (kIsND && kNumuDecafCutND2018) || (kIsFD && kNumuDecafCutFD2018);
27 
28  reduce.AddEventCut(kNumuDecafCut);
29 
30  reduce.AddReductionStep(ClearMultiNuInfo);
31 
32  reduce.Go();
33 }
Near Detector underground.
Definition: SREnums.h:10
Far Detector at Ash River.
Definition: SREnums.h:11
caf::Proxy< caf::SRHeader > hdr
Definition: SRProxy.h:2137
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
const Cut kNumuDecafCutND2018
Definition: NumuCuts2018.h:35
const Cut kNumuDecafCutFD2018
Definition: NumuCuts2018.h:33
caf::StandardRecord * sr
Create smaller CAFs.
Definition: FileReducer.h:56
void ClearMultiNuInfo(caf::StandardRecord *sr)
Definition: FileReducer.cxx:25
caf::Proxy< caf::Det_t > det
Definition: SRProxy.h:232