TimingCuts.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "CAFAna/Core/Cut.h"
4 
5 namespace ana
6 {
7  /// Does the event fall inside the window we call the beam spill?
8  extern const Cut kInBeamSpill;
9 
10  /// Is the event far from the start and ends of the spill and also not in the
11  /// beam window?
12  extern const Cut kInTimingSideband;
13 
14  /// Is the event far from the start and ends of the spill ? For FD cosmic selection
15  extern const Cut kInCosmicTimingWindow;
16 
17  /// Timing cut for the (2020) FD MR* studies
18  ///
19  /// No need to do anything related to CosmicCVN as that module was not run on
20  /// the MR* files
21  extern const Cut kInCosmicTimingWindow_FD_MR;
22 }
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const Cut kInTimingSideband([](const caf::SRProxy *sr){if(sr->spill.run > util::kLastBadTimingRun) return(kInTimingSideband_before(sr)|| kInTimingSideband_after(sr));else return(kInTimingSideband_before(sr)|| kInTimingSideband_afterA(sr)|| kInTimingSideband_afterB(sr));}, [](const caf::SRSpillProxy *spill){if(spill->run > util::kLastBadTimingRun) return(kInTimingSideband_before.Livetime(spill)+ kInTimingSideband_after.Livetime(spill));else return(kInTimingSideband_before.Livetime(spill)+ kInTimingSideband_afterA.Livetime(spill)+ kInTimingSideband_afterB.Livetime(spill));}, [](const caf::SRSpillProxy *spill){return 0;})
Definition: TimingCuts.h:12
const Cut kInCosmicTimingWindow
Is the event far from the start and ends of the spill ? For FD cosmic selection.
Definition: TimingCuts.cxx:165
const Cut kInBeamSpill([](const caf::SRProxy *sr){if(sr->spill.run > util::kLastBadTimingRun) return kInBeamSpill_main(sr);else return kInBeamSpill_main(sr)||kInBeamSpill_shifted(sr);}, [](const caf::SRSpillProxy *spill){if(spill->run > util::kLastBadTimingRun) return kInBeamSpill_main.Livetime(spill);else return kInBeamSpill_main.Livetime(spill)+kInBeamSpill_shifted.Livetime(spill);}, [](const caf::SRSpillProxy *spill) -> double{return spill->spillpot;})
Does the event fall inside the window we call the beam spill?
Definition: TimingCuts.h:8
const Cut kInCosmicTimingWindow_FD_MR
Definition: TimingCuts.cxx:170