HighLAND
Public Types | Public Member Functions | List of all members
UseGlobalAltMomCorrection Class Reference

#include <UseGlobalAltMomCorrection.hxx>

Inheritance diagram for UseGlobalAltMomCorrection:
CorrectionBase

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.
 
- Public Member Functions inherited from CorrectionBase
 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

- Protected Attributes inherited from CorrectionBase
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.
 

Detailed Description

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.

Constructor & Destructor Documentation

§ UseGlobalAltMomCorrection()

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.

6  : CorrectionBase() {
7 //********************************************************************
8  _hyp = hypothesis;
9 }
All corrections should be registered with the CorrectionManager.

The documentation for this class was generated from the following files: