1 #ifndef _DLECorrectionWG_DLECorrection_h_
2 #define _DLECorrectionWG_DLECorrection_h_
4 #include <fwk/VModule.h>
6 #include <utl/Trace-fwd.h>
7 #include <utl/TabulatedFunction.h>
14 #include <sevt/Station.h>
15 #include <sevt/StationConstants.h>
16 #include <sevt/PMTRecData.h>
36 namespace DLECorrectionWG {
66 const double theta,
const double phi)
const;
69 const bool ishgsat,
const int pos)
const;
71 const double theta,
const double phi)
const;
75 const int saturationValue)
const;
77 const unsigned int saturationValue)
const;
80 const unsigned int startIntegration,
81 const unsigned int endIntegration,
82 const double traceIntegral)
const;
bool FlagNegBins(const sevt::PMT &pmt) const
bool SelectPMT(const sevt::PMT &pmt, const bool lgsat, const bool hgsat, const unsigned int saturationValue) const
void CorrectDLE(evt::Event &event) const
class to hold data at PMT level
sevt::StationConstants::SignalComponent fComponent
total (shower and background)
TFormula * fFormulaDLEParA
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
void ComputeCleanedRiseFall(sevt::PMTRecData &pmtRec, const unsigned int startIntegration, const unsigned int endIntegration, const double traceIntegral) const
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
REGISTER_MODULE("DLECorrectionWG", DLECorrection)
void CorrectIndividualDLE(sevt::Station &station) const
double GetFCorr(const int pmtId, const double theta, const double phi) const
class to hold data at Station level
class to hold reconstructed data at PMT level
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
double EstimateSignalFluct(const sevt::PMT &pmt, const bool ishgsat, const int pos) const
std::vector< int > fExcludeStations
bool fExcludeBadTracesCalc
std::pair< double, double > fFallTimeFractions
bool fDoCorrectionIndividual
void CorrectAverageDLE(sevt::Station &station, const double theta, const double phi) const
Module to correct Direct Light Effects in the FADC traces.
TFormula * fFormulaDLEParB
bool fDoCorrectionAverage
std::pair< double, double > fRiseTimeFractions
bool FlagOscBaselines(const sevt::PMT &pmt, const bool hgsat, const int saturationValue) const
ResultFlag
Flag returned by module methods to the RunController.
virtual ~DLECorrection()=default
sevt::StationConstants::SignalComponent fCleaned
double fDLEFilterThreshold
bool fCalcCorrSignalRiseFall
double fDLESignalThreshold