HighLAND
FGDECalMatchEffSystematics.hxx
1 #ifndef FGDECalMatchEffSystematics_h
2 #define FGDECalMatchEffSystematics_h
3 
4 #include "EventWeightBase.hxx"
5 #include "BinnedParams.hxx"
6 
8 public:
9 
10  FGDECalMatchEffSystematics(bool computecounters=false);
11  FGDECalMatchEffSystematics(bool computecounters, const std::string& name, BinnedParams::TypeEnum type);
12 
13 
14  virtual ~FGDECalMatchEffSystematics() {}
15 
16  /// Apply the systematic
17  Weight_h ComputeWeight(const ToyExperiment&, const AnaEventC&, const ToyBoxB&){return 1;}
18 
19  Weight_h ComputeWeight(const ToyExperiment& toy, const AnaEventC& event, const ToyBoxB& box, const SelectionBase& sel);
20 
21 
22 protected:
23 
24  /// Is this track relevant for this systematic ?
25  bool IsRelevantRecObject(const AnaEventC& event, const AnaRecObjectC& track) const;
26 
27  /// Is this track relevant for this systematic ?
28  bool IsRelevantTrueObject(const AnaEventC& event, const AnaTrueObjectC& track) const;
29 
30  /// Get the TrackGroup IDs array for this systematic
31  Int_t GetRelevantRecObjectGroups(const SelectionBase& sel, Int_t ibranch, Int_t* IDs) const;
32 
33  /// Get the TrueTrackGroup IDs array for this systematic
34  Int_t GetRelevantTrueObjectGroups(const SelectionBase& sel, Int_t ibranch, Int_t* IDs) const;
35 
36  bool _computecounters;
37 };
38 
39 #endif
Int_t GetRelevantTrueObjectGroups(const SelectionBase &sel, Int_t ibranch, Int_t *IDs) const
Get the TrueTrackGroup IDs array for this systematic.
Weight_h ComputeWeight(const ToyExperiment &, const AnaEventC &, const ToyBoxB &)
Apply the systematic.
bool IsRelevantTrueObject(const AnaEventC &event, const AnaTrueObjectC &track) const
Is this track relevant for this systematic ?
TypeEnum
Enumerator describing the values that _type member can take.
Int_t GetRelevantRecObjectGroups(const SelectionBase &sel, Int_t ibranch, Int_t *IDs) const
Get the TrackGroup IDs array for this systematic.
bool IsRelevantRecObject(const AnaEventC &event, const AnaRecObjectC &track) const
Is this track relevant for this systematic ?