HighLAND
TPCPIDSystematics.hxx
1 #ifndef TPCPIDSystematics_h
2 #define TPCPIDSystematics_h
3 
4 #include "EventVariationBase.hxx"
5 #include "TPCPIDVariation.hxx"
6 
7 /// This systematic smears the CT of each TPC track segment
9 public:
10 
11  /// Instantiate the PID systematic. nbins is the number of
12  /// bins in the PDF
14 
15  virtual ~TPCPIDSystematics(){}
16 
17  /// Apply the systematic
18  virtual void Apply(const ToyExperiment& toy, AnaEventC& event);
19 
20  /// Undo the systematic variations done by ApplyVariation. This is faster tha reseting the full Spill
21  bool UndoSystematic(AnaEventC& event);
22 
23  /// Get the variation for a given TPC object
24  bool GetVariation(const AnaTPCParticleB& tpcTrack,
25  Float_t& mean_var, Float_t& sigma_var,
26  const AnaTrackB& track, const ToyExperiment& toy);
27 
28 protected:
29 
30  /// Is this track relevant for this systematic ?
31  bool IsRelevantRecObject(const AnaEventC& event, const AnaRecObjectC& track) const;
32 
33  /// Get the TrackGroup IDs array for this systematic
34  Int_t GetRelevantRecObjectGroups(const SelectionBase& sel, Int_t* IDs) const;
35 
36  Int_t _offset;
37 
38  /// value of psycheSystematics.Tracker.FullCorrelations parameter
40 
41 };
42 
43 #endif
bool GetVariation(const AnaTPCParticleB &tpcTrack, Float_t &mean_var, Float_t &sigma_var, const AnaTrackB &track, const ToyExperiment &toy)
Get the variation for a given TPC object.
bool IsRelevantRecObject(const AnaEventC &event, const AnaRecObjectC &track) const
Is this track relevant for this systematic ?
Int_t GetRelevantRecObjectGroups(const SelectionBase &sel, Int_t *IDs) const
Get the TrackGroup IDs array for this systematic.
bool UndoSystematic(AnaEventC &event)
Undo the systematic variations done by ApplyVariation. This is faster tha reseting the full Spill...
Representation of a global track.
Representation of a TPC segment of a global track.
virtual void Apply(const ToyExperiment &toy, AnaEventC &event)
Apply the systematic.
bool _full_correlations
value of psycheSystematics.Tracker.FullCorrelations parameter
This systematic smears the CT of each TPC track segment.