HighLAND
TPCdEdxMCCorrection.hxx
1 #ifndef TPCdEdxMCCorrection_h
2 #define TPCdEdxMCCorrection_h
3 
4 #include "CorrectionBase.hxx"
5 #include "DataClasses.hxx"
6 
7 /// This class defines a correction that affects the measured dE/dx of an
8 /// AnaTpcSegment. This in turn affects the computed pulls (how electron-like a
9 /// track is, for example).
10 ///
11 /// This correction is applied to MC, and currently has NO EFFECT.
13  public:
14 
16 
17  virtual ~TPCdEdxMCCorrection() {}
18 
19  /// Apply the dE/dx correction to all the AnaTpcSegment members of all
20  /// tracks in the spill. See TPCdEdxMCCorrection class documentation for
21  /// details.
22  void Apply(AnaSpillC& spill);
23 
24  private:
25 
26  /// Get the correction factor for the given true particle type.
27  double GetCorrection(int pdg);
28 
29 };
30 
31 #endif
All corrections should be registered with the CorrectionManager.
void Apply(AnaSpillC &spill)