HighLAND
antiNumuCCMultiTrackSelection.hxx
1 #ifndef antiNumuCCMultiTrackSelection_h
2 #define antiNumuCCMultiTrackSelection_h
3 
4 #include "SelectionBase.hxx"
5 #include "antiNumuCCSelection.hxx"
6 
8  public:
9  antiNumuCCMultiTrackSelection(bool forceBreak=true);
11 
12  //---- These are mandatory functions
13  void DefineSteps();
14  void DefineDetectorFV();
15  ToyBoxB* MakeToyBox(){return new ToyBoxTracker();}
16  bool FillEventSummary(AnaEventC& event, Int_t allCutsPassed[]);
17  SampleId::SampleEnum GetSampleEnum(){return SampleId::kFGD1AntiNuMuCC1Track;}
18  bool IsRelevantRecObjectForSystematic(const AnaEventC& event, AnaRecObjectC* recObj, SystId_h systId, Int_t branch) const;
19  bool IsRelevantTrueObjectForSystematic(const AnaEventC& event, AnaTrueObjectC* trueObj, SystId_h systId, Int_t branch) const;
20  bool IsRelevantSystematic(const AnaEventC& event, const ToyBoxB& box, SystId_h systId, Int_t branch) const;
21  void InitializeEvent(AnaEventC& event);
22  bool CheckRedoSelection(const AnaEventC& event, const ToyBoxB& PreviousToyBox, Int_t& redoFromStep);
23 
24 protected:
25  antiNumuCCSelection _antiNumuCCSelection;
26 
27 };
28 
30 public:
31  using StepBase::Apply;
32  bool Apply(AnaEventC& event, ToyBoxB& box) const;
34 };
35 
36 class CCQEcut_antinu: public StepBase{
37  public:
38  using StepBase::Apply;
39  bool Apply(AnaEventC& event, ToyBoxB& box) const;
40  StepBase* MakeClone(){return new CCQEcut_antinu();}
41 };
42 
43 class CCnQEcut_antinu: public StepBase{
44  public:
45  using StepBase::Apply;
46  bool Apply(AnaEventC& event, ToyBoxB& box) const;
48 };
49 #endif
void DefineDetectorFV()
Define the detector Fiducial Volume in which this selection is applied.
bool CheckRedoSelection(const AnaEventC &event, const ToyBoxB &PreviousToyBox, Int_t &redoFromStep)
void DefineSteps()
Define all steps in the selection.
bool IsRelevantRecObjectForSystematic(const AnaEventC &event, AnaRecObjectC *recObj, SystId_h systId, Int_t branch) const
Is this track relevant for a given systematic (prior to selection, call when initializing the event...
virtual bool Apply(AnaEventC &event, ToyBoxB &box) const
Definition: StepBase.hxx:46
bool Apply(AnaEventC &event, bool &redo)
Apply all steps in the selection.
StepBase * MakeClone()
MANDATORY FUNCTIONS !!!
void InitializeEvent(AnaEventC &event)
Fill the EventBox with the objects needed by this selection.
bool IsRelevantTrueObjectForSystematic(const AnaEventC &event, AnaTrueObjectC *trueObj, SystId_h systId, Int_t branch) const
Is this true track relevant for a given systematic (prior to selection, call when initializing the ev...
ToyBoxB * MakeToyBox()
Create the appropriate type of box.
StepBase * MakeClone()
MANDATORY FUNCTIONS !!!
ToyBoxB ** PreviousToyBox
Array of pointers to the PreviousToyBox (for each event)
StepBase * MakeClone()
MANDATORY FUNCTIONS !!!
bool IsRelevantSystematic(const AnaEventC &event, const ToyBoxB &box, SystId_h systId, Int_t branch) const
Is this systematic relevant for this selection.