HighLAND
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MomResolMCCorrection Class Reference

#include <MomResolMCCorrection.hxx>

Inheritance diagram for MomResolMCCorrection:
MomentumResolVariation CorrectionBase

Public Member Functions

void Apply (AnaSpillC &spill)
 Apply the momentum correction to all the relevant objects: AnaTrack and corresponding.
 
bool GetVariation (AnaTrackB *track, Float_t &variation)
 Get the variation given a track.
 
bool GetVariationTPC (AnaTPCParticleB *track, Float_t &variation)
 Get the variation given a track.
 
bool GetVariation (AnaTrackB *track, Float_t &variation, const ToyExperiment &exp)
 Get the variation given a track.
 
bool GetVariationTPC (AnaTPCParticleB *track, Float_t &variation, const ToyExperiment &exp)
 Get the variation given a track.
 
- Public Member Functions inherited from MomentumResolVariation
virtual void ApplyVariation (AnaTrackB *track, const ToyExperiment &exp)
 
virtual void ApplyVariationTPCBased (AnaTrackB *track, const ToyExperiment &exp)
 
virtual void ApplyVariationTPC (AnaTPCParticleB *track, const ToyExperiment &exp)
 Smear TPC track based on the corresponding true track.
 
- 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)
 

Protected Member Functions

bool IsRelevantObject (const AnaRecObjectC *object)
 
- Protected Member Functions inherited from MomentumResolVariation
bool GetXBinnedValues (AnaTrackB *track, Float_t &value1, Float_t &value2, Int_t &index1, Int_t &index2, ModeEnum mode)
 Get parameters for this global track assumed one uses X bins.
 
bool GetXBinnedValues (AnaTPCParticleB *tpcTrack, Float_t &value1, Float_t &value2, Int_t &index1, Int_t &index2, ModeEnum mode)
 Get parameters for this tpc track assumed one uses X bins.
 
bool GetXBinnedValues (Float_t xmin, Float_t xmax, Float_t &value1, Float_t &value2, Int_t &index1, Int_t &index2, ModeEnum mode)
 

Protected Attributes

ToyExperiment _exp
 Some default toy experiment, not used at the moment.
 
- Protected Attributes inherited from MomentumResolVariation
BinnedParams_params
 Binned data to read the parameters.
 
- 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.
 

Additional Inherited Members

- Public Types inherited from MomentumResolVariation
enum  ModeEnum { kCorr, kSyst }
 
- Static Public Member Functions inherited from MomentumResolVariation
static AnaParticleBGetClosestTPCSegmentWithGoodDQ (const AnaTrackB &track, const Float_t *pos)
 Get TPC segment that satisfies DQ and is closest.
 

Detailed Description

This class defines a correction that affects the reconstructed TPC Momentum of an AnaTpcSegment as well as the global (AnaTrack) track Momentum. It basically applies an additional smearing. This correction is applied to MC only

Definition at line 14 of file MomResolMCCorrection.hxx.

Member Function Documentation

§ IsRelevantObject()

bool MomResolMCCorrection::IsRelevantObject ( const AnaRecObjectC object)
protected

Check whether a track is relevant to apply the correction: e.g. momentum resolution was studied for tracker objects only Probably should be moved to a base class

Definition at line 123 of file MomResolMCCorrection.cxx.

123  {
124  //********************************************************************
125 
126  if (!object) return false;
127 
128 
129  // Assuming the particles ToF reversing is already done can just run for the tracks that start in the FGDs
130  // ToDo
131  //
132  return true;
133 
134 }

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