Functions
reduce_prod5_numu.C File Reference
#include "StandardRecord/StandardRecord.h"
#include "StandardRecord/Proxy/SRProxy.h"
#include "3FlavorAna/Decomp/BENDecomp.h"
#include "CAFAna/Core/FileReducer.h"
#include "CAFAna/Cuts/Cuts.h"
#include "3FlavorAna/Cuts/NueCuts2017.h"
#include "3FlavorAna/Cuts/NueCuts2018.h"
#include "3FlavorAna/Cuts/NueCuts2020.h"
#include "3FlavorAna/Cuts/NumuCuts2017.h"
#include "3FlavorAna/Cuts/NumuCuts2018.h"
#include "3FlavorAna/Cuts/NumuCuts2020.h"
#include "3FlavorAna/Cuts/NumuCuts.h"
#include "3FlavorAna/Cuts/BeamNueCuts.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 17 of file reduce_prod5_numu.C.

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

18 {
19  FileReducer reduce(fname, outname);
20  reduce.SetMetadata("nova.decaf_skim", "numu2020");
21 
22  const Cut kIsND(
23  [](const caf::SRProxy* sr)
24  {
25  return sr->hdr.det==caf::kNEARDET;
26  });
27 
28  const Cut kIsFD(
29  [](const caf::SRProxy* sr)
30  {
31  return sr->hdr.det==caf::kFARDET;
32  });
33 
34  const Cut fdCut = (kIsFD && kNumu2020FDDecafCut);
35  const Cut ndCut = (kIsND && kNumu2020NDDecafCut);
36 
37  reduce.AddEventCut(fdCut || ndCut);
38  reduce.AddReductionStep(ClearMultiNuInfo);
39  reduce.AddReductionStep(ClearSecondaryTrackInfo);
40  reduce.Go();
41 }
Near Detector underground.
Definition: SREnums.h:10
Far Detector at Ash River.
Definition: SREnums.h:11
void ClearSecondaryTrackInfo(caf::StandardRecord *sr)
caf::Proxy< caf::SRHeader > hdr
Definition: SRProxy.h:2137
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
caf::StandardRecord * sr
Create smaller CAFs.
Definition: FileReducer.h:56
const Cut kNumu2020FDDecafCut
Definition: NumuCuts2020.h:64
const Cut kNumu2020NDDecafCut
Definition: NumuCuts2020.h:63
void ClearMultiNuInfo(caf::StandardRecord *sr)
Definition: FileReducer.cxx:25
caf::Proxy< caf::Det_t > det
Definition: SRProxy.h:232