1 #ifndef CorrectionManager_h 2 #define CorrectionManager_h 4 #include "CorrectionBase.hxx" 5 #include "HLClonesArray.hxx" 8 const UInt_t NMAXCORRECTIONS = 20;
90 bool _forceApplyCorrections;
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 DisableCorrection(Int_t index)
std::vector< CorrectionBase * > _corrections
The registered corrections, and the names they were registered with.
void AddCorrection(const std::string &name, CorrectionBase *corr)
This is for bwd compatibility and will be removed when approved.
void Reset()
Reset the corrections data.
All corrections should be registered with the CorrectionManager.
CorrectionBase * GetCorrection(Int_t index)
Get the input correction registered with the given index.
void EnableCorrection(Int_t index)
void ApplyCorrections(AnaSpillC &spill)
Apply all corrections.
void SetForceApplyCorrections(bool force)
If set to true corrections applied in the input file are applied again.
bool IsEnabled(Int_t index)
Check if a particular correction is enabled in a given configuration.
void DumpCorrections()
Dump all corrections.
void ReadCorrections(const std::string &file, bool input=false)
Readthe corrections from a file.