HighLAND
numuCCFGD2Selection.hxx
1 #ifndef numuCCFGD2Selection_h
2 #define numuCCFGD2Selection_h
3 
4 #include "SelectionBase.hxx"
5 #include "Parameters.hxx"
6 #include "numuCCSelection.hxx"
7 
8 
10  public:
11  numuCCFGD2Selection(bool forceBreak=true);
12  virtual ~numuCCFGD2Selection(){}
13 
14  //---- These are mandatory functions
15  void DefineSteps();
16  void DefineDetectorFV();
17  ToyBoxB* MakeToyBox(){return new ToyBoxTracker();}
18  bool FillEventSummary(AnaEventC& event, Int_t allCutsPassed[]);
19  SampleId::SampleEnum GetSampleEnum(){return SampleId::kFGD1NuMuCC;}
20  bool IsRelevantRecObjectForSystematic(const AnaEventC& event, AnaRecObjectC* recObj, SystId_h systId, Int_t branch) const;
21  bool IsRelevantRecObjectForSystematicInToy(const AnaEventC&, const ToyBoxB&, AnaRecObjectC*, SystId_h systId, Int_t branch=0) const;
22  bool IsRelevantTrueObjectForSystematic(const AnaEventC& event, AnaTrueObjectC* trueObj, SystId_h systId, Int_t branch) const;
23  bool IsRelevantTrueObjectForSystematicInToy(const AnaEventC&, const ToyBoxB&, AnaTrueObjectC*, SystId_h systId, Int_t branch=0) const;
24  bool IsRelevantSystematic(const AnaEventC& event, const ToyBoxB& box, SystId_h systId, Int_t branch) const;
25 
26  void InitializeEvent(AnaEventC& event);
27  bool CheckRedoSelection(const AnaEventC& event, const ToyBoxB& PreviousToyBox, Int_t& redoFromStep);
28 
29 protected:
30 
31  numuCCSelection _numuCCSelection;
32 
33 };
34 
36 public:
37  using StepBase::Apply;
38  bool Apply(AnaEventC& event, ToyBoxB& box) const;
40 };
41 
42 
44  public:
45  using StepBase::Apply;
46  bool Apply(AnaEventC& event, ToyBoxB& box) const;
48 };
49 
51  public:
52  using StepBase::Apply;
53  bool Apply(AnaEventC& event, ToyBoxB& box) const;
55 };
56 
57 
58 #endif
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...
ToyBoxB * MakeToyBox()
Create the appropriate type of box.
StepBase * MakeClone()
MANDATORY FUNCTIONS !!!
StepBase * MakeClone()
MANDATORY FUNCTIONS !!!
void InitializeEvent(AnaEventC &event)
Fill the EventBox with the objects needed by this selection.
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 !!!
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...
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 IsRelevantTrueObjectForSystematicInToy(const AnaEventC &, const ToyBoxB &, AnaTrueObjectC *, SystId_h systId, Int_t branch=0) const
Is this true track relevant for a given systematic (after selection, called for each toy) ...
bool IsRelevantRecObjectForSystematicInToy(const AnaEventC &, const ToyBoxB &, AnaRecObjectC *, SystId_h systId, Int_t branch=0) const
Is this track relevant for a given systematic (after selection, called for each toy) ...
void DefineDetectorFV()
Define the detector Fiducial Volume in which this selection is applied.
ToyBoxB ** PreviousToyBox
Array of pointers to the PreviousToyBox (for each event)