#include <FdCalibrator.h>
Public Types | |
enum | ResultFlag { eSuccess, eFailure, eBreakLoop, eContinueLoop } |
Flag returned by module methods to the RunController. More... | |
enum | VersionInfoType { eFilename = 1, eRevisionNumber = 2, eDate = 3, eTime = 4, eLastEditor = 5 } |
Different types of version info that can be retrieved from GetVersionInfo. More... | |
Public Member Functions | |
fwk::VModule::ResultFlag | Finish () |
Finish: invoked at end of the run (NOT end of the event) More... | |
utl::Stopwatch & | GetStopwatch () |
const utl::Stopwatch & | GetStopwatch () const |
std::string | GetVersionInfo (const VersionInfoType v) const |
Retrieve different sorts of module version info. More... | |
fwk::VModule::ResultFlag | Init () |
Initialize: invoked at beginning of run (NOT beginning of event) More... | |
void | InitTiming () |
fwk::VModule::ResultFlag | Run (evt::Event &event) |
Run: invoked once per event. More... | |
ResultFlag | RunWithTiming (evt::Event &event) |
Static Public Member Functions | |
static std::string | GetResultFlagByName (const ResultFlag flag) |
Protected Types | |
enum | InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 } |
Protected Attributes | |
int | fInfoLevel = 0 |
Private Member Functions | |
void | AdjustMirrorTimes (TEyeEventHeader *eyeheader, fevt::FEvent &theFEvent, fevt::Eye &theEye) |
bool | ApplyCalibration (const utl::TraceI &rawtrace, fevt::Pixel &pixel) const |
bool | ApplyTimeCorrections (evt::Event &event, TEyeEvent &eyeEvent) |
void | CorrectFDTime (TEyeEventHeader *eyeheader) |
void | FillCalibratedPixels (evt::Event &event, TEyeEvent &eyeEvent) |
void | FillChannelRecData (evt::Event &event, TEyeEvent &eyeEvent) |
void | FillDAQInformation (evt::Event &event, TEyeEvent &eyeEvent) |
void | FillTriggerData (evt::Event &event, TEyeEvent &eyeEvent) |
double | GetHeatCalibrationCorrection (const unsigned int gpsSecond) const |
void | RecoverSaturatedTrace (utl::TraceI &rawFADCTrace, fevt::Pixel &pixel, fevt::Telescope &telEvent) |
REGISTER_MODULE ("FdCalibratorOG", FdCalibrator) | |
Private Attributes | |
std::vector< double > | fCalibrationCorrection |
Correction to the calibration of FD eyes. More... | |
bool | fCorrectTimes |
Flag for corrction un-corrected FD times. More... | |
int | fFirstMeanSlot |
First time slot used in evaluation of signal baseline. More... | |
std::vector< double > | fHeatCalibration |
std::vector< unsigned int > | fHeatCaliEpochs |
Epocs (GPSSeconds) for the Correction to the HEAT calibration. More... | |
int | fLastMeanSlot |
Last time slot used in evaluation of signal baseline. More... | |
bool | fRecoverSaturatedTraces |
wavelength to be used for calibration More... | |
int | fVerbosity |
Definition at line 40 of file FdCalibrator.h.
|
protectedinherited |
|
inherited |
Flag returned by module methods to the RunController.
Enumerator | |
---|---|
eSuccess |
Report success to RunController. |
eFailure |
Report failure to RunController, causing RunController to terminate execution. |
eBreakLoop |
Break current loop. It works for nested loops too! |
eContinueLoop |
Skip remaining modules in the current loop and continue with next iteration of the loop. |
|
inherited |
|
private |
Definition at line 854 of file FdCalibrator.cc.
References fevt::FEvent::GetHeader(), fevt::Eye::GetHeader(), fevt::Eye::GetTelescope(), fevt::EyeHeader::SetOfflineTimeCorrected(), fevt::Header::SetTime(), fevt::Telescope::SetTimeOffset(), and fevt::EyeHeader::SetTimeStamp().
|
private |
Definition at line 710 of file FdCalibrator.cc.
References fdet::Pixel::eBadCalibration, fdet::Pixel::eGood, ERROR, fdet::Pixel::GetChannelId(), fdet::Pixel::GetEndToEndCalibrationAtReferenceWavelength(), fdet::Pixel::GetEndToEndCalibrationConstant(), fdet::FDetector::GetEye(), fdet::Pixel::GetEyeId(), fdet::Pixel::GetId(), utl::AugerException::GetMessage(), utl::TabulatedFunction::GetNPoints(), fevt::PixelRecData::GetPhotonTrace(), fdet::FDetector::GetPixel(), fdet::Telescope::GetPixel(), fevt::Pixel::GetRecData(), fdet::Pixel::GetStatus(), fdet::Eye::GetTelescope(), fdet::Pixel::GetTelescopeId(), fevt::PixelRecData::HasPhotonTrace(), fevt::Pixel::HasRecData(), fevt::PixelRecData::MakePhotonTrace(), fevt::Pixel::MakeRecData(), un2::Mean(), fevt::PixelRecData::SetBaseline(), fevt::PixelRecData::SetRMS(), un2::StandardDeviation(), and WARNING.
|
private |
Definition at line 615 of file FdCalibrator.cc.
References fevt::FEvent::GetEye(), fdet::FDetector::GetEye(), fevt::FEvent::GetHeader(), fevt::Eye::GetHeader(), utl::TimeInterval::GetInterval(), fdet::Eye::GetSDTimeOffset(), fevt::FEvent::HasEye(), evt::Event::HasFEvent(), fevt::FEvent::MakeEye(), evt::Event::MakeFEvent(), fevt::EyeHeader::SetBadTimeCorrection(), fevt::EyeHeader::SetOfflineTimeCorrected(), fevt::Header::SetTime(), fevt::EyeHeader::SetTimeStamp(), and WARNING.
|
private |
Definition at line 796 of file FdCalibrator.cc.
References utl::day, fdet::FDetector::GetEye(), det::Detector::GetFDetector(), utl::TabulatedFunction::GetNPoints(), det::Detector::GetTime(), fdet::Eye::GetTimeCorrectionFactors(), utl::TabulatedFunction::GetX(), INFO, utl::ns, det::Detector::Update(), utl::TabulatedFunction::Y(), and galactic::year.
|
private |
Definition at line 423 of file FdCalibrator.cc.
References ERROR, fdet::Camera::GetADCDynamicRange(), fdet::Telescope::GetCamera(), fdet::Telescope::GetChannel(), fevt::FEvent::GetEye(), fdet::FDetector::GetEye(), fdet::Camera::GetFADCBinSize(), fdet::Camera::GetFADCTraceLength(), fevt::Telescope::GetPixel(), fdet::Channel::GetPixelId(), fevt::Pixel::GetRecData(), fevt::Eye::GetTelescope(), fdet::Eye::GetTelescope(), fevt::Pixel::GetTriggerData(), fevt::Telescope::HasPixel(), fevt::Pixel::HasRecData(), fevt::Eye::HasTelescope(), fevt::Pixel::HasTriggerData(), INFO, fdet::Channel::IsVirtual(), fevt::PixelTriggerData::MakeFLTTrace(), fevt::Telescope::MakePixel(), fevt::Eye::MakeTelescope(), fevt::Pixel::MakeTriggerData(), fevt::PixelRecData::SetFirstTriggeredTimeBin(), fevt::Pixel::SetHighGainSaturation(), fevt::PixelTriggerData::SetMean(), fevt::Pixel::SetNoSaturation(), fevt::PixelTriggerData::SetPreviousThreshold(), fevt::PixelTriggerData::SetRate(), utl::Trace< T >::SetStart(), fevt::Pixel::SetStatus(), utl::Trace< T >::SetStop(), fevt::PixelTriggerData::SetThreshold(), fevt::PixelTriggerData::SetThresholdChanged(), and fevt::PixelTriggerData::SetVariance().
|
private |
Definition at line 300 of file FdCalibrator.cc.
References ERROR, cevt::StationConstants::eTotal, fdet::Camera::GetADCDynamicRange(), fdet::Telescope::GetCamera(), fevt::Telescope::GetChannel(), fevt::FEvent::GetEye(), fdet::FDetector::GetEye(), fdet::Camera::GetFADCBinSize(), fdet::Camera::GetFADCTraceLength(), utl::AugerException::GetMessage(), fevt::Channel::GetRecData(), fevt::Eye::GetTelescope(), fdet::Eye::GetTelescope(), fevt::Telescope::HasChannel(), fevt::ChannelRecData::HasFADCTrace(), fevt::Channel::HasRecData(), fevt::Eye::HasTelescope(), INFO, fevt::Telescope::MakeChannel(), fevt::ChannelRecData::MakeFADCTrace(), fevt::Channel::MakeRecData(), fevt::Eye::MakeTelescope(), un2::Mean(), fevt::ChannelRecData::SetBaseLine(), fevt::ChannelRecData::SetChannelSaturated(), fevt::ChannelRecData::SetFirstSatBin(), fevt::ChannelRecData::SetLastSatBin(), utl::Trace< T >::SetStart(), utl::Trace< T >::SetStop(), and WARNING.
|
private |
Definition at line 587 of file FdCalibrator.cc.
References fevt::ComponentSelector::eInDAQ, fevt::FEvent::GetEye(), fdet::FDetector::GetEye(), fdet::Eye::GetId(), fevt::FEvent::HasEye(), fevt::Eye::HasTelescope(), fevt::FEvent::MakeEye(), fevt::Eye::MakeTelescope(), fdet::Eye::TelescopesBegin(), and fdet::Eye::TelescopesEnd().
|
private |
Definition at line 176 of file FdCalibrator.cc.
References fevt::FEvent::GetEye(), fdet::FDetector::GetEye(), utl::TimeStamp::GetGPSSecond(), fevt::FEvent::GetHeader(), fdet::Eye::GetId(), utl::AugerException::GetMessage(), fevt::TelescopeTriggerData::GetMultiplicity(), fdet::Camera::GetSLTTraceLength(), fevt::Eye::GetTelescope(), fevt::Header::GetTime(), fevt::Eye::GetTriggerData(), fevt::Telescope::GetTriggerData(), fevt::Eye::HasTelescope(), fevt::Eye::HasTriggerData(), fevt::Telescope::HasTriggerData(), INFO, fevt::TelescopeTriggerData::MakeMultiplicity(), fevt::Eye::MakeTelescope(), fevt::Eye::MakeTriggerData(), fevt::Telescope::MakeTriggerData(), ns, fevt::TelescopeTriggerData::SetSLTData(), fevt::SLTData::SetSLTDataWord(), fevt::EyeTriggerData::SetT3Accepted(), fevt::EyeTriggerData::SetT3Class(), fevt::EyeTriggerData::SetT3NPixels(), fevt::EyeTriggerData::SetT3SDP(), fevt::EyeTriggerData::SetT3Time(), fevt::TelescopeTriggerData::SetTLTAccepted(), fdet::Eye::TelescopesBegin(), fdet::Eye::TelescopesEnd(), and WARNING.
|
virtual |
Finish: invoked at end of the run (NOT end of the event)
This method is for things that should be done at the end of the run (for example, closing files or writing out histograms) {You must override this method in your concrete module}
Implements fwk::VModule.
Definition at line 169 of file FdCalibrator.cc.
References io::eSuccess.
|
private |
Definition at line 1042 of file FdCalibrator.cc.
References G4StationSimulatorOG::p, and std::pow().
|
staticinherited |
Definition at line 8 of file VModule.cc.
References fwk::VModule::eBreakLoop, fwk::VModule::eContinueLoop, fwk::VModule::eFailure, and fwk::VModule::eSuccess.
Referenced by fwk::RunController::DoNextInSequence(), fwk::RunController::FinishBranch(), and fwk::RunController::InitBranch().
|
inlineinherited |
Definition at line 106 of file VModule.h.
References fwk::VModule::fStopwatch.
|
inlineinherited |
Definition at line 107 of file VModule.h.
References fwk::VModule::fStopwatch.
|
inherited |
Retrieve different sorts of module version info.
Definition at line 26 of file VModule.cc.
Referenced by fwk::CentralConfig::GetConfig(), ThresholdCalculatorKG::ThresholdCalculator::Init(), fdDoubleBumpFinder::FdDoubleBumpFinder::Init(), LaserGeneratorNA::LaserGenerator::Init(), LaserLightSimulatorNA::LaserLightSimulator::Init(), FdElectronicsSimulatorOG::FdElectronicsSimulator::Init(), TelescopeSimulatorKG::TelescopeSimulator::Init(), TelescopeSimulatorKG2::TelescopeSimulator::Init(), SdSimpleSimKG::SdSimpleSim::Init(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::Init(), and testRunController::testModuleVersionInfo().
|
virtual |
Initialize: invoked at beginning of run (NOT beginning of event)
This method is for things that should be done once at the beginning of a run (for example, booking histograms, performing calculations that need to be done only once, initializing parameters) {You must override this method in your concrete module}
Implements fwk::VModule.
Definition at line 68 of file FdCalibrator.cc.
References ERROR, io::eSuccess, utl::Branch::GetChild(), utl::Branch::GetData(), utl::Branch::GetTopBranch(), INFO, and WARNING.
|
inlineinherited |
Definition at line 95 of file VModule.h.
References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().
|
private |
Definition at line 933 of file FdCalibrator.cc.
References fevt::ChannelRecData::AddDeSaturatedBin(), fevt::ChannelRecData::ChannelIsSaturated(), fevt::Telescope::ChannelsBegin(), fevt::Telescope::ChannelsEnd(), ERROR, cevt::StationConstants::eTotal, fdet::Camera::GetADCDynamicRange(), fevt::ChannelRecData::GetBaseLine(), fdet::Telescope::GetCamera(), fevt::Telescope::GetChannel(), fdet::Telescope::GetChannel(), fdet::Channel::GetElectronicsGain(), fdet::FDetector::GetEye(), fevt::Telescope::GetEyeId(), fevt::ChannelRecData::GetFADCTrace(), fevt::ChannelRecData::GetFirstSatBin(), fdet::Channel::GetId(), fevt::Telescope::GetId(), fevt::ChannelRecData::GetLastSatBin(), fevt::Channel::GetRecData(), fdet::Eye::GetTelescope(), fdet::Channel::GetVirtualChannelId(), fdet::Channel::IsVirtual(), fevt::Pixel::SetLowGainSaturation(), fevt::Pixel::SetSaturationRecovered(), and WARNING.
|
private |
|
virtual |
Run: invoked once per event.
This method is for things that should be done once per event {You must override this method in your concrete module}
Implements fwk::VModule.
Definition at line 123 of file FdCalibrator.cc.
References io::eSuccess, evt::Event::HasRawEvent(), and WARNING.
|
inlineinherited |
Definition at line 98 of file VModule.h.
References fwk::VModule::fStopwatch, fwk::VModule::Run(), utl::Stopwatch::Start(), and utl::Stopwatch::Stop().
Referenced by fwk::RunController::DoNextInSequence().
|
private |
Correction to the calibration of FD eyes.
Definition at line 97 of file FdCalibrator.h.
|
private |
Flag for corrction un-corrected FD times.
Definition at line 87 of file FdCalibrator.h.
|
private |
First time slot used in evaluation of signal baseline.
Definition at line 89 of file FdCalibrator.h.
|
private |
Corrections to the HEAT calibration for the different Epohcs parameters for a quadratic function
Definition at line 103 of file FdCalibrator.h.
|
private |
Epocs (GPSSeconds) for the Correction to the HEAT calibration.
Definition at line 100 of file FdCalibrator.h.
|
protectedinherited |
Definition at line 123 of file VModule.h.
Referenced by RdChannelASCIINoiseImporterRD::RdChannelASCIINoiseImporterRD::Init(), Rd2dLDFFitter::Rd2dLDFFitter::Init(), RdChannelNoiseImporter_AERA::RdChannelNoiseImporter_AERA::Init(), and Rd2dLDFFitter::Rd2dLDFFitter::Run().
|
private |
Last time slot used in evaluation of signal baseline.
Definition at line 91 of file FdCalibrator.h.
|
private |
wavelength to be used for calibration
use virtual channels to recover saturation
Definition at line 95 of file FdCalibrator.h.
|
private |
Definition at line 84 of file FdCalibrator.h.