HighLAND
MomRangeResolSystematics.hxx
1 #ifndef MomRangeResolSystematics_h
2 #define MomRangeResolSystematics_h
3 
4 #include "EventVariationBase.hxx"
5 #include "BinnedParams.hxx"
6 
7 /// This systematic smears the momentum-by-range by a
8 /// random amount from a Gaussian distribution.
9 ///
11 public:
12 
13  /// Instantiate the momentum resolution systematic
15 
16  virtual ~MomRangeResolSystematics() {}
17 
18  /// Apply the systematic
19  virtual void Apply(const ToyExperiment& toy, AnaEventC& event);
20 
21  /// Undo the systematic variations done by ApplyVariation. This is faster tha reseting the full Spill
22  virtual bool UndoSystematic(AnaEventC& event);
23 
24 protected:
25 
26  /// Check whether a RecObject is relevant for this systematic or not
27  virtual bool IsRelevantRecObject(const AnaEventC&, const AnaRecObjectC&) const;
28 
29  /// Get the TrackGroup IDs array for this systematic
30  Int_t GetRelevantRecObjectGroups(const SelectionBase& sel, Int_t* IDs) const;
31 
32  /// Get SMRD detector assuming only one can be present
33  SubDetId::SubDetEnum GetSMRDDet(unsigned long Detector);
34 
35  /// Get TECal detector assuming only one can be present
36  SubDetId::SubDetEnum GetTECalDet(unsigned long Detector);
37 
38  /// Get FGD detector assuming only one can be present
39  SubDetId::SubDetEnum GetFGDDet(unsigned long Detector);
40 
41 };
42 
43 #endif
virtual bool IsRelevantRecObject(const AnaEventC &, const AnaRecObjectC &) const
Check whether a RecObject is relevant for this systematic or not.
SubDetId::SubDetEnum GetSMRDDet(unsigned long Detector)
Get SMRD detector assuming only one can be present.
SubDetId::SubDetEnum GetTECalDet(unsigned long Detector)
Get TECal detector assuming only one can be present.
virtual void Apply(const ToyExperiment &toy, AnaEventC &event)
Apply the systematic.
virtual bool UndoSystematic(AnaEventC &event)
Undo the systematic variations done by ApplyVariation. This is faster tha reseting the full Spill...
SubDetEnum
Enumeration of all detector systems and subdetectors.
Definition: SubDetId.hxx:25
SubDetId::SubDetEnum GetFGDDet(unsigned long Detector)
Get FGD detector assuming only one can be present.
Int_t GetRelevantRecObjectGroups(const SelectionBase &sel, Int_t *IDs) const
Get the TrackGroup IDs array for this systematic.
MomRangeResolSystematics()
Instantiate the momentum resolution systematic.