HighLAND
UseGlobalAltMomCorrection.hxx
1 #ifndef UseGlobalAltMomCorrection_h
2 #define UseGlobalAltMomCorrection_h
3 
4 #include "CorrectionBase.hxx"
5 
6 /// This correction replaces the momentum of a global track with the momentum
7 /// from a refit done assuming a particle hypothesis. This refit is only done
8 /// for tracks with TPC constituents, so if the refit value isn't present we
9 /// leave the existing momentum.
11  public:
12 
13  /// Enumerator describing the refits that are available
14  enum Hypothesis {
15  kMuon, kElectron, kProton
16  };
17 
18  /// Constructor which accepts as an argument the hypothesis to use when
19  /// updating the Momentum and MomentumError members of each track.
21 
22  virtual ~UseGlobalAltMomCorrection() {}
23 
24  /// Apply the variation to all tracks with TPC info.
25  void Apply(AnaSpillC& spill);
26 
27  private:
28 
29  /// The hypothesis to use.
30  Hypothesis _hyp;
31 
32 };
33 
34 #endif
All corrections should be registered with the CorrectionManager.
Hypothesis
Enumerator describing the refits that are available.
void Apply(AnaSpillC &spill)
Apply the variation to all tracks with TPC info.