HighLAND
|
#include <CorrectionManager.hxx>
Public Member Functions | |
void | ApplyCorrections (AnaSpillC &spill) |
Apply all corrections. | |
CorrectionBase * | GetCorrection (Int_t index) |
Get the input correction registered with the given index. | |
void | EnableCorrection (Int_t index) |
void | DisableCorrection (Int_t index) |
bool | IsEnabled (Int_t index) |
Check if a particular correction is enabled in a given configuration. | |
CorrectionBase * | GetCorrection (const std::string &name) |
Get the input correction registered with the given name. | |
void | EnableCorrection (const std::string &corr) |
void | DisableCorrection (const std::string &corr) |
bool | IsEnabled (const std::string &corr) |
Check if a particular correction is enabled in a given configuration. | |
void | DisableAllCorrections () |
Disable all corrections in a given configuration (if conf=="" for all confs) | |
void | AddCorrection (Int_t index, const std::string &name, CorrectionBase *corr) |
void | AddCorrection (const std::string &name, CorrectionBase *corr) |
This is for bwd compatibility and will be removed when approved. | |
void | SetForceApplyCorrections (bool force) |
If set to true corrections applied in the input file are applied again. | |
void | ReadCorrections (const std::string &file, bool input=false) |
Readthe corrections from a file. | |
void | DumpCorrections () |
Dump all corrections. | |
![]() | |
HLClonesArray (const std::string &tree_name, const std::string &tcarray_name, const std::string &class_name, const UInt_t size) | |
void | ReadClonesArray (const std::string &file) |
void | WriteClonesArray (TTree &tree) |
Int_t & | GetNObjects () |
Return the number of steps that have been added. | |
TClonesArray * | GetClonesArray () |
const std::string & | GetClonesArrayName () const |
Return the name of the TClonesArray. | |
const std::string & | GetTreeName () const |
Return the name of the tree. | |
Protected Member Functions | |
void | Reset () |
Reset the corrections data. | |
Protected Attributes | |
std::vector< CorrectionBase * > | _corrections |
The registered corrections, and the names they were registered with. | |
bool | _forceApplyCorrections |
![]() | |
TChain * | _chain |
TChain used to read the "config" tree from the output file. | |
Int_t | _NObjects |
The number of steps that were added. | |
TClonesArray * | _objects |
std::string | _tcArrayName |
Name of the TClonesArray in the tree. | |
std::string | _treeName |
Name of the Tree. | |
std::string | _fileName |
Name of the last file read. | |
Manager for Corrections. An Correction modifies a particular aspect of the Input data. This is used for calculating systematics and applying corrections.
This manager handles the registration, enabling and disabling of the corrections.
Definition at line 17 of file CorrectionManager.hxx.
void CorrectionManager::AddCorrection | ( | Int_t | index, |
const std::string & | name, | ||
CorrectionBase * | corr | ||
) |
Register an Correction as a correction. These will only be applied once per spill.
Definition at line 53 of file CorrectionManager.cxx.
void CorrectionManager::DisableCorrection | ( | Int_t | index | ) |
Disable the correction registered with the given index for the specified configuration.
Definition at line 155 of file CorrectionManager.cxx.
void CorrectionManager::DisableCorrection | ( | const std::string & | corr | ) |
Disable the correction registered with the given name for the specified configuration.
Definition at line 120 of file CorrectionManager.cxx.
void CorrectionManager::EnableCorrection | ( | Int_t | index | ) |
Enable the correction registered with the given index for the specified configuration. (if conf=="" for all configs)
Definition at line 147 of file CorrectionManager.cxx.
void CorrectionManager::EnableCorrection | ( | const std::string & | corr | ) |
Enable the correction registered with the given name for the specified configuration. (if conf=="" for all configs)
Definition at line 112 of file CorrectionManager.cxx.