1 #include "baseSelection.hxx" 2 #include "p0dNumuCCQESelection.hxx" 3 #include "p0dNumuCCSelection.hxx" 4 #include "CutUtils.hxx" 5 #include "EventBoxUtils.hxx" 8 p0dNumuCCQESelection::p0dNumuCCQESelection(
bool forceBreak):
SelectionBase(forceBreak,
EventBoxId::kEventBoxTracker) {
30 SetBranchAlias(0,
"Single-P0D", 0);
31 SetBranchAlias(1,
"Multiple-P0D", 1);
38 SetDetectorFV(SubDetId::kP0D);
48 if (!event.EventBoxes[EventBoxId::kEventBoxTracker])
51 boxUtils::FillTracksWithTPC(event, static_cast<SubDetId::SubDetEnum>(GetDetectorFV()));
52 boxUtils::FillTracksWithP0D(event);
53 boxUtils::FillTrajsChargedInTPC(event);
54 boxUtils::FillTrajsChargedInP0D(event);
bool Apply(AnaEventC &event, ToyBoxB &box) const
int GetAllTracksUsingP0D(const AnaEventB &event, AnaTrackB *selTracks[])
virtual const ToyBoxTracker & box(Int_t isel=-1) const
Returns the ToyBoxTracker.
void DefineSteps()
Define all steps in the selection.
Representation of a global track.
void DefineDetectorFV()
Define the detector Fiducial Volume in which this selection is applied.
virtual void InitializeEvent(AnaEventC &)
Fill the EventBox with the objects needed by this selection.
bool Apply(AnaEventC &event, ToyBoxB &box) const