HighLAND
highland2
highlandCorrections
v2r8
src
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.
10
class
UseGlobalAltMomCorrection
:
public
CorrectionBase
{
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.
20
UseGlobalAltMomCorrection
(
Hypothesis
hyp);
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
AnaSpillC
Definition:
CoreDataClasses.hxx:187
UseGlobalAltMomCorrection::UseGlobalAltMomCorrection
UseGlobalAltMomCorrection(Hypothesis hyp)
Definition:
UseGlobalAltMomCorrection.cxx:6
CorrectionBase
All corrections should be registered with the CorrectionManager.
Definition:
CorrectionBase.hxx:15
UseGlobalAltMomCorrection::Hypothesis
Hypothesis
Enumerator describing the refits that are available.
Definition:
UseGlobalAltMomCorrection.hxx:14
UseGlobalAltMomCorrection
Definition:
UseGlobalAltMomCorrection.hxx:10
UseGlobalAltMomCorrection::Apply
void Apply(AnaSpillC &spill)
Apply the variation to all tracks with TPC info.
Definition:
UseGlobalAltMomCorrection.cxx:12
Generated by
1.8.13