List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | Private Member Functions | Private Attributes
FdCalibratorOG::FdCalibrator Class Reference

#include <FdCalibrator.h>

Inheritance diagram for FdCalibratorOG::FdCalibrator:
Inheritance graph
[legend]

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::StopwatchGetStopwatch ()
 
const utl::StopwatchGetStopwatch () 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
 

Detailed Description

Definition at line 40 of file FdCalibrator.h.

Member Enumeration Documentation

enum fwk::VModule::InfoLevel
protectedinherited
Enumerator
eInfoNone 
eInfoFinal 
eInfoIntermediate 
eInfoDebug 

Definition at line 125 of file VModule.h.

enum fwk::VModule::ResultFlag
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.

Definition at line 60 of file VModule.h.

Different types of version info that can be retrieved from GetVersionInfo.

Enumerator
eFilename 
eRevisionNumber 
eDate 
eTime 
eLastEditor 

Definition at line 110 of file VModule.h.

Member Function Documentation

void FdCalibrator::AdjustMirrorTimes ( TEyeEventHeader *  eyeheader,
fevt::FEvent theFEvent,
fevt::Eye theEye 
)
private
bool FdCalibrator::ApplyCalibration ( const utl::TraceI rawtrace,
fevt::Pixel pixel 
) const
private
bool FdCalibrator::ApplyTimeCorrections ( evt::Event event,
TEyeEvent &  eyeEvent 
)
private
void FdCalibrator::CorrectFDTime ( TEyeEventHeader *  eyeheader)
private
void FdCalibrator::FillCalibratedPixels ( evt::Event event,
TEyeEvent &  eyeEvent 
)
private
void FdCalibrator::FillChannelRecData ( evt::Event event,
TEyeEvent &  eyeEvent 
)
private
void FdCalibrator::FillDAQInformation ( evt::Event event,
TEyeEvent &  eyeEvent 
)
private
void FdCalibrator::FillTriggerData ( evt::Event event,
TEyeEvent &  eyeEvent 
)
private
VModule::ResultFlag FdCalibrator::Finish ( )
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.

double FdCalibrator::GetHeatCalibrationCorrection ( const unsigned int  gpsSecond) const
private

Definition at line 1042 of file FdCalibrator.cc.

References G4StationSimulatorOG::p, and std::pow().

std::string fwk::VModule::GetResultFlagByName ( const ResultFlag  flag)
staticinherited
utl::Stopwatch& fwk::VModule::GetStopwatch ( )
inlineinherited

Definition at line 106 of file VModule.h.

References fwk::VModule::fStopwatch.

const utl::Stopwatch& fwk::VModule::GetStopwatch ( ) const
inlineinherited

Definition at line 107 of file VModule.h.

References fwk::VModule::fStopwatch.

std::string fwk::VModule::GetVersionInfo ( const VersionInfoType  v) const
inherited
VModule::ResultFlag FdCalibrator::Init ( )
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.

void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().

void FdCalibrator::RecoverSaturatedTrace ( utl::TraceI rawFADCTrace,
fevt::Pixel pixel,
fevt::Telescope telEvent 
)
private
FdCalibratorOG::FdCalibrator::REGISTER_MODULE ( "FdCalibratorOG"  ,
FdCalibrator   
)
private
VModule::ResultFlag FdCalibrator::Run ( evt::Event event)
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.

ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited

Member Data Documentation

std::vector<double> FdCalibratorOG::FdCalibrator::fCalibrationCorrection
private

Correction to the calibration of FD eyes.

Definition at line 97 of file FdCalibrator.h.

bool FdCalibratorOG::FdCalibrator::fCorrectTimes
private

Flag for corrction un-corrected FD times.

Definition at line 87 of file FdCalibrator.h.

int FdCalibratorOG::FdCalibrator::fFirstMeanSlot
private

First time slot used in evaluation of signal baseline.

Definition at line 89 of file FdCalibrator.h.

std::vector<double> FdCalibratorOG::FdCalibrator::fHeatCalibration
private

Corrections to the HEAT calibration for the different Epohcs parameters for a quadratic function

Definition at line 103 of file FdCalibrator.h.

std::vector<unsigned int> FdCalibratorOG::FdCalibrator::fHeatCaliEpochs
private

Epocs (GPSSeconds) for the Correction to the HEAT calibration.

Definition at line 100 of file FdCalibrator.h.

int fwk::VModule::fInfoLevel = 0
protectedinherited
int FdCalibratorOG::FdCalibrator::fLastMeanSlot
private

Last time slot used in evaluation of signal baseline.

Definition at line 91 of file FdCalibrator.h.

bool FdCalibratorOG::FdCalibrator::fRecoverSaturatedTraces
private

wavelength to be used for calibration

use virtual channels to recover saturation

Definition at line 95 of file FdCalibrator.h.

int FdCalibratorOG::FdCalibrator::fVerbosity
private

Definition at line 84 of file FdCalibrator.h.


The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.