|
HighLAND
|
#include <TPCdEdxDataCorrection.hxx>
Public Member Functions | |
| TPCdEdxDataCorrection () | |
| void | Apply (AnaSpillC &spill) |
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. | |
This class defines a correction that affects the measured dE/dx of an AnaTpcSegment. This in turn affects the computed pulls (how electron-like a track is, for example).
This correction is applied to data, and is based on the run/subrun of this spill.
The corrections are defined in the baseAnalysis/data/TPCdEdxCorrection.dat. The format of this file is
run subrun corr_tpc1 err_tpc1 corr_tpc2 err_tpc2 corr_tpc3 err_tpc3
where corr_tpcN is the CT correction to apply to TPC N, and err_tpcN is the error on that correction.
Definition at line 21 of file TPCdEdxDataCorrection.hxx.
| TPCdEdxDataCorrection::TPCdEdxDataCorrection | ( | ) |
Constructor, which reads the corrections from the text file, and fills the member variables with the details.
Definition at line 7 of file TPCdEdxDataCorrection.cxx.
|
virtual |
Apply the dE/dx correction to all the AnaTpcSegment members of all tracks in the spill. See TPCdEdxDataCorrection class documentation for details.
Reimplemented from CorrectionBase.
Definition at line 80 of file TPCdEdxDataCorrection.cxx.
1.8.13