HighLAND
numuCCMultiPiFGD2Selection.hxx
1 #ifndef numuCCMultiPiFGD2Selection_h
2 #define numuCCMultiPiFGD2Selection_h
3 
4 #include "SelectionBase.hxx"
5 #include "Parameters.hxx"
6 #include "numuCCMultiPiSelection.hxx"
7 #include "numuCCFGD2Selection.hxx"
8 
10 
11  public:
12  numuCCMultiPiFGD2Selection(bool forceBreak=true);
13  virtual ~numuCCMultiPiFGD2Selection(){}
14 
15  void DefineSteps();
16  void DefineDetectorFV();
18  bool FillEventSummary(AnaEventC& event, Int_t allCutsPassed[]);
19  SampleId::SampleEnum GetSampleEnum(){return SampleId::kFGD2NuMuCC0Pi;}
20  bool IsRelevantRecObjectForSystematic(const AnaEventC& event, AnaRecObjectC* recObj, SystId_h systId, Int_t branch) const;
21  bool IsRelevantTrueObjectForSystematic(const AnaEventC& event, AnaTrueObjectC* trueObj, SystId_h systId, Int_t branch) const;
22  bool IsRelevantSystematic(const AnaEventC& event, const ToyBoxB& box, SystId_h systId, Int_t branch) const;
23  void InitializeEvent(AnaEventC& event);
24  bool CheckRedoSelection(const AnaEventC& event, const ToyBoxB& PreviousToyBox, Int_t& redoFromStep);
25 
26  protected:
27  numuCCMultiPiSelection _numuCCMultiPiSelection;
28  numuCCFGD2Selection _numuCCFGD2Selection;
29 
30 };
31 
33  public:
34  using StepBase::Apply;
35  bool Apply(AnaEventC& event, ToyBoxB& box) const;
37 };
38 
39 #endif
ToyBoxB * MakeToyBox()
Create the appropriate type of box.
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...
void DefineDetectorFV()
Define the detector Fiducial Volume in which this selection is applied.
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...
void DefineSteps()
Define all steps in the selection.
virtual bool Apply(AnaEventC &event, ToyBoxB &box) const
Definition: StepBase.hxx:46
bool Apply(AnaEventC &event, bool &redo)
Apply all steps in the selection.
bool CheckRedoSelection(const AnaEventC &event, const ToyBoxB &PreviousToyBox, Int_t &redoFromStep)
void InitializeEvent(AnaEventC &event)
Fill the EventBox with the objects needed by this selection.
ToyBoxB ** PreviousToyBox
Array of pointers to the PreviousToyBox (for each event)
bool IsRelevantSystematic(const AnaEventC &event, const ToyBoxB &box, SystId_h systId, Int_t branch) const
Is this systematic relevant for this selection.
StepBase * MakeClone()
MANDATORY FUNCTIONS !!!