HighLAND
|
#include <UseGlobalAltMomCorrection.hxx>
Public Types | |
enum | Hypothesis { kMuon, kElectron, kProton } |
Enumerator describing the refits that are available. | |
Public Member Functions | |
UseGlobalAltMomCorrection (Hypothesis hyp) | |
void | Apply (AnaSpillC &spill) |
Apply the variation to all tracks with TPC info. | |
![]() | |
CorrectionBase (const CorrectionBase &corr) | |
Copy constructor. | |
virtual | ~CorrectionBase () |
Everyone should have a destructor. | |
virtual const char * | GetName () const |
Return the name of this correction. This overrides the TObject::GetName() interface. | |
const std::string & | Name () const |
Return the name of this correction. | |
void | SetName (const std::string &name) |
Set the name of this correction. | |
void | Enable () |
Enable the correction. | |
void | Disable () |
Disable the correction. | |
bool | IsEnabled () const |
Is the correction enabled. | |
void | SetAppliedInInput (bool ap) |
Set the correction as applied in the input file. | |
bool | IsAppliedInInput () const |
Is the correction already applied in the input file ? | |
Int_t | GetIndex () const |
Return the index of this correction. | |
void | SetIndex (Int_t index) |
Set the index of this correction. | |
ClassDef (CorrectionBase, 2) | |
Additional Inherited Members | |
![]() | |
std::string | _name |
The name of this correction. | |
bool | _enabled |
Is the correction enabled? | |
bool | _appliedInInput |
Is the correction already applied in the input file ? | |
Int_t | _index |
The index of the correction. | |
This correction replaces the momentum of a global track with the momentum from a refit done assuming a particle hypothesis. This refit is only done for tracks with TPC constituents, so if the refit value isn't present we leave the existing momentum.
Definition at line 10 of file UseGlobalAltMomCorrection.hxx.
UseGlobalAltMomCorrection::UseGlobalAltMomCorrection | ( | Hypothesis | hyp | ) |
Constructor which accepts as an argument the hypothesis to use when updating the Momentum and MomentumError members of each track.
Definition at line 6 of file UseGlobalAltMomCorrection.cxx.