HighLAND
antiNueCCFGD2Selection.hxx
1 #ifndef antiNueCCFGD2Selection_h
2 #define antiNueCCFGD2Selection_h
3 
4 #include "SelectionBase.hxx"
5 #include "Parameters.hxx"
6 #include "ToyBoxTracker.hxx"
7 #include "SystId.hxx"
8 #include "SubDetId.hxx"
9 
10 #include "nueCCSelection.hxx"
11 
13  public:
14  antiNueCCFGD2Selection(bool forceBreak=true);
15  virtual ~antiNueCCFGD2Selection(){}
16 
17  //---- These are mandatory functions
18  void DefineSteps();
19  void DefineDetectorFV();
20  ToyBoxB* MakeToyBox(){return new ToyBoxNueCC();}
21 
22  void InitializeEvent(AnaEventC& event);
23  bool FillEventSummary(AnaEventC& event, Int_t allCutsPassed[]);
24  SampleId::SampleEnum GetSampleEnum(){return SampleId::kFGD2AntiNuECC;}
25 
26  bool CheckRedoSelection(const AnaEventC& eventC, const ToyBoxB& PreviousToyBox, Int_t& redoFromStep);
27  bool IsRelevantRecObjectForSystematic(const AnaEventC& event, AnaRecObjectC* track, SystId_h systId, Int_t branch) const;
28  bool IsRelevantTrueObjectForSystematic(const AnaEventC& event, AnaTrueObjectC* trueTrack, SystId_h systId, Int_t branch) const;
29  bool IsRelevantRecObjectForSystematicInToy(const AnaEventC&, const ToyBoxB&, AnaRecObjectC*, SystId_h systId, Int_t branch=0) const;
30  bool IsRelevantTrueObjectForSystematicInToy(const AnaEventC&, const ToyBoxB&, AnaTrueObjectC*, SystId_h systId, Int_t branch=0) const;
31  bool IsRelevantSystematic(const AnaEventC& event, const ToyBoxB& box,SystId_h systId , Int_t branch) const;
32 
33 protected:
34  nueCCSelection _nueCCSelection;
35 
36  Int_t _FindLeadingTracksStepIndex;
37  Int_t _TotalMultiplicityCutIndex;
38  Int_t _ElecPIDCutIndex;
39  Int_t _ElecPIDStepIndex;
40 
41  // Variables needed from datacard
42  Float_t _protonregion_low;
43 };
44 
46 public:
47  using StepBase::Apply;
48  bool Apply(AnaEventC& event, ToyBoxB& box) const;
50 };
51 
52 class EOverPCutFGD2_antiNueCC: public StepBase{ // Currently disabled
53 public:
54  using StepBase::Apply;
55  bool Apply(AnaEventC& event, ToyBoxB& boxB) const;
57 protected:
58 };
59 
60 #endif
ToyBoxB * MakeToyBox()
Create the appropriate type of box.
bool CheckRedoSelection(const AnaEventC &eventC, const ToyBoxB &PreviousToyBox, Int_t &redoFromStep)
StepBase * MakeClone()
MANDATORY FUNCTIONS !!!
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 IsRelevantTrueObjectForSystematic(const AnaEventC &event, AnaTrueObjectC *trueTrack, SystId_h systId, Int_t branch) const
Is this true track relevant for a given systematic (prior to selection, call when initializing the ev...
bool IsRelevantRecObjectForSystematic(const AnaEventC &event, AnaRecObjectC *track, SystId_h systId, Int_t branch) const
Is this track relevant for a given systematic (prior to selection, call when initializing the event...
void DefineSteps()
Define all steps in the selection.
void InitializeEvent(AnaEventC &event)
Fill the EventBox with the objects needed by this selection.
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) ...
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 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 !!!
void DefineDetectorFV()
Define the detector Fiducial Volume in which this selection is applied.
ToyBoxB ** PreviousToyBox
Array of pointers to the PreviousToyBox (for each event)