1 #ifndef _SdCalibratorOG_SdCalibrator_h_
2 #define _SdCalibratorOG_SdCalibrator_h_
4 #include <fwk/VModule.h>
5 #include <sevt/Station.h>
13 namespace SdCalibratorOG {
96 const double binTiming,
97 const unsigned int startBin,
98 const unsigned int startIntegration,
99 const unsigned int endIntegration,
100 const double traceIntegral)
const;
107 typedef std::pair<double, double>
PairD;
bool fIncludeWaterCherenkovDetectorInScintillatorStartStopDetermination
double fPeakHistogramToVEMFactor
double fPeakOnlineToVEMFactor
class to hold data at PMT level
IsProxy< T > Is(const T &x)
Report success to RunController.
Time interval defined by two TimeStamps.
void TreatSaturated(sevt::Station &station) const
bool SelectSignal(sevt::Station &station) const
bool MergeSignals(sevt::Station &station) const
int BuildSignals(sevt::Station &station) const
Performs calibration and signal analysis of the SD event.
bool fTreatHGLGEqualInSignalSearch
bool MakeComponentVEMTraces(sevt::PMT &pmt) const
double fChargeFitShoulderHeadRatio
A TimeStamp holds GPS second and nanosecond for some event.
void CalculatePeakAndCharge(sevt::Station &station)
class to hold data at Station level
class to hold reconstructed data at PMT level
double fChargeFitChi2Accept
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
PairD fShapeFitRangeBefore12
REGISTER_MODULE("SdCalibratorOG", SdCalibrator)
double fChargeOnlineToVEMFactor
double fPeakFitChi2Accept
double fChargeHistogramToMIPFactor
std::set< int > fTestStations
int fBinsBeforeStartForSPMT
std::pair< double, double > PairD
bool IsTestStation(const int id) const
void MakeFlatBaseline(sevt::PMT &pmt, const sdet::PMTConstants::PMTGain gain) const
void ApplyTimeCorrection(sevt::Station &station)
Calculate corrected nanosecond from raw GPS parameter.
double fFindSignalThreshold
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
const utl::TimeRange kCommsCrisis
ResultFlag
Flag returned by module methods to the RunController.
bool fApplyBackwardFlatPieceCheck
bool ComputeBaselines(sevt::Station &station) const
double fPeakOnlineToMIPFactor
void ComputeShapeRiseFallPeak(sevt::PMTRecData &pmtRecData, const double binTiming, const unsigned int startBin, const unsigned int startIntegration, const unsigned int endIntegration, const double traceIntegral) const
bool ComputeBaseline(const sevt::Station &station, sevt::PMT &pmt, const sdet::PMTConstants::PMTGain gain) const
bool CopySmallPMTCalibData(sevt::Station &station)
double fPMTSummationCutoff
double fPeakHistogramToMIPFactor
double fChargeHistogramToVEMFactor
double fChargeOnlineToMIPFactor
int fFindSignalBinsAboveThreshold
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
bool fDecreaseLGFlatPieceTolerance
void SumPMTComponents(sevt::Station &station) const
PairD fShapeFitRangeSince12