HighLAND
TPCPIDPullMCCorrection.hxx
1 #ifndef TPCPIDPullMCCorrection_h
2 #define TPCPIDPullMCCorrection_h
3 
4 #include "CorrectionBase.hxx"
5 #include "TPCPIDVariation.hxx"
6 #include "ToyExperiment.hxx"
7 
8 
9 /// This class defines a correction that affects the reconstructed TPC Momentum of an
10 
12 
13 public:
14 
16 
17  virtual ~TPCPIDPullMCCorrection() {}
18 
19  /// Apply the correction to all the relevant objects: TPC constituent of an AnaTrack
20  void Apply(AnaSpillC& spill);
21 
22  /// Get the variation for a given TPC object
23  bool GetVariation(const AnaTPCParticleB& tpcTrack,
24  Float_t& mean_var, Float_t& sigma_var,
25  const AnaTrackB& track);
26 
27  /// Get the variation for a given TPC object
28  bool GetVariation(const AnaTPCParticleB& tpcTrack,
29  Float_t& mean_var, Float_t& sigma_var,
30  const AnaTrackB& track, const ToyExperiment& exp){
31  (void)exp;
32  return GetVariation(tpcTrack, mean_var, sigma_var, track);
33  }
34 
35 
36 protected:
37 
38  /// Check whether a track is relevant to apply the correction: e.g. momentum resolution was studied for tracker objects only
39  /// Probably should be moved to a base class
40  bool IsRelevantObject(const AnaRecObjectC* object) {(void)object; return true;} // all considered for the moment
41 
42 
43  /// Some default toy experiment, not used at the moment
45 
46 };
47 
48 #endif
bool IsRelevantObject(const AnaRecObjectC *object)
void Apply(AnaSpillC &spill)
Apply the correction to all the relevant objects: TPC constituent of an AnaTrack. ...
All corrections should be registered with the CorrectionManager.
bool GetVariation(const AnaTPCParticleB &tpcTrack, Float_t &mean_var, Float_t &sigma_var, const AnaTrackB &track)
Get the variation for a given TPC object.
This class defines a correction that affects the reconstructed TPC Momentum of an.
Representation of a global track.
bool GetVariation(const AnaTPCParticleB &tpcTrack, Float_t &mean_var, Float_t &sigma_var, const AnaTrackB &track, const ToyExperiment &exp)
Get the variation for a given TPC object.
Representation of a TPC segment of a global track.
ToyExperiment _exp
Some default toy experiment, not used at the moment.