AraEventCalibrator Class Reference
Part of AraEvent library. The calibrator takes Raw ATRI / ICRR events and applies Voltage, timing and bandpass filter calibrations to produce Useful ATRI / ICRR events. More...
#include <AraEventCalibrator.h>
Public Member Functions | |
| AraEventCalibrator () | |
| Default constructor. | |
| void | calcClockAlignVals (UsefulIcrrStationEvent *theEvent, AraCalType::AraCalType_t calType) |
| Calculate the clock alignment calibration values. | |
| void | calibrateEvent (UsefulAtriStationEvent *theEvent, AraCalType::AraCalType_t calType=AraCalType::kVoltageTime) |
| Apply the calibration to a UsefulAtriStationEvent, called from UsefulAtriStationEvent constructor. | |
| void | calibrateEvent (UsefulIcrrStationEvent *theEvent, AraCalType::AraCalType_t calType=AraCalType::kJustUnwrap) |
| Apply the calibration to a UsefulIcrrStationEvent, called from UsefulIcrrStationEvent constructor. | |
| int | doBinCalibration (UsefulIcrrStationEvent *theEvent, int chanIndex, int overrideRCO=-1) |
| This sorts out the bin calibration for the channel, overrideRCO is used in the RCO guess part. | |
| Double_t | estimateClockLag (TGraph *grClock) |
| Worker function used in the clock alignment. | |
| Double_t | estimateClockPeriod (Int_t numPoints, Double_t &rms) |
| void | fillRCOGuessArray (UsefulIcrrStationEvent *theEvent, int rcoGuess[LAB3_PER_ICRR]) |
| Utility function called by UsefulIcrrStationEvent. | |
| void | loadAtriCalib (AraStationId_t stationId) |
| Internally used fuction that loads the calibration values into memory. | |
| void | loadAtriPedestals (AraStationId_t stationId) |
| Internally used function that loads the pedestals into memory. | |
| void | loadIcrrCalib (AraStationId_t stationId) |
| Loads the various calibration constants according to stationId -- only does it once. | |
| void | loadIcrrPedestals (AraStationId_t stationId) |
| Loads the pedestals from a file. | |
| void | setAtriPedFile (char *filename, AraStationId_t stationId) |
| Allows the user to force a specific pedestal file into the calibrator instead of the default. The pedestals may vary as a function of time so using a pedestal file from a time close the the event / run is a good idea. | |
| void | setPedFile (char fileName[], AraStationId_t stationId) |
| Manually sets the pedestal file. | |
| ~AraEventCalibrator () | |
| Destructor. | |
Static Public Member Functions | |
| static AraEventCalibrator * | Instance () |
| Generates an instance of AraEventCalibrator to use. | |
Public Attributes | |
| double | binWidths [ICRR_NO_STATIONS][LAB3_PER_ICRR][2][MAX_NUMBER_SAMPLES_LAB3] |
| Array to hold the bin width calibration constants. | |
| double | calTimeNums [MAX_NUMBER_SAMPLES_LAB3] |
| temporary array | |
| double | calVoltNums [MAX_NUMBER_SAMPLES_LAB3] |
| calibrated time numbers | |
| double | calwv [MAX_NUMBER_SAMPLES_LAB3] |
| double | clockAlignVals [ICRR_NO_STATIONS][LAB3_PER_ICRR] |
| double | epsilonVals [ICRR_NO_STATIONS][LAB3_PER_ICRR][2] |
| Array to hold the wrap-around calibration constants. | |
| Double_t | fAtriEpsilonTimes [DDA_PER_ATRI][RFCHAN_PER_DDA][2] |
| The timing between blocks the capArray number is the number of the second block. | |
| Int_t | fAtriNumSamples [DDA_PER_ATRI][RFCHAN_PER_DDA][2] |
| The number of samples per block in a particular dda, chan, capArray. | |
| char | fAtriPedFile [ATRI_NO_STATIONS][FILENAME_MAX] |
| Filename of the ATRI pedestal file. | |
| UShort_t * | fAtriPeds |
| for time sorting Storage array to hold the ATRI pedestal data | |
| Int_t | fAtriSampleIndex [DDA_PER_ATRI][RFCHAN_PER_DDA][2][SAMPLES_PER_BLOCK] |
| The sample order. | |
| Double_t | fAtriSampleTimes [DDA_PER_ATRI][RFCHAN_PER_DDA][2][SAMPLES_PER_BLOCK] |
| The sample timings. | |
| Int_t | fGotAtriCalibFile [ATRI_NO_STATIONS] |
| Flag to indicate whether the ATRI calib have been loaded and for which station. | |
| Int_t | fGotAtriPedFile [ATRI_NO_STATIONS] |
| Flag to indicate whether the ATRI pedestals have been loaded and for which station. | |
| int | gotIcrrCalibFile [ICRR_NO_STATIONS] |
| Flag to indicate whether a station's calib file has been loaded. | |
| int | gotIcrrPedFile [ICRR_NO_STATIONS] |
| Flag to indicate whether a station's pedestal file has been loaded. | |
| char | IcrrPedFile [ICRR_NO_STATIONS][FILENAME_MAX] |
| Filename of the pedestal file. | |
| int | indexNums [MAX_NUMBER_SAMPLES_LAB3] |
| calibrated volt numbers | |
| double | interleaveVals [ICRR_NO_STATIONS][8] |
| There are only 8 interleaved channels. | |
| float | pedestalData [ICRR_NO_STATIONS][LAB3_PER_ICRR][CHANNELS_PER_LAB3][MAX_NUMBER_SAMPLES_LAB3] |
| Array to hold the pedestal data. | |
| double | pedsubadc [MAX_NUMBER_SAMPLES_LAB3] |
| double | rawadc [MAX_NUMBER_SAMPLES_LAB3] |
| double | sampNums [MAX_NUMBER_SAMPLES_LAB3] |
| double | tempTimeNums [MAX_NUMBER_SAMPLES_LAB3] |
| time numbers | |
| double | timeNums [MAX_NUMBER_SAMPLES_LAB3] |
| double | v [MAX_NUMBER_SAMPLES_LAB3] |
| These are just utility arrays that are used in the calibration. | |
Protected Member Functions | |
| ClassDef (AraEventCalibrator, 1) | |
Static Protected Attributes | |
| static AraEventCalibrator * | fgInstance = 0 |
| protect against multiple instances | |
Detailed Description
Part of AraEvent library. The calibrator takes Raw ATRI / ICRR events and applies Voltage, timing and bandpass filter calibrations to produce Useful ATRI / ICRR events.The Ara Event Calibrator
Definition at line 64 of file AraEventCalibrator.h.
Member Function Documentation
| void AraEventCalibrator::calibrateEvent | ( | UsefulAtriStationEvent * | theEvent, | |
| AraCalType::AraCalType_t | calType = AraCalType::kVoltageTime | |||
| ) |
Apply the calibration to a UsefulAtriStationEvent, called from UsefulAtriStationEvent constructor.
<Filling with ADC
<Filling with ADC-Pedestal
<Filling with time
Definition at line 841 of file AraEventCalibrator.cxx.
The documentation for this class was generated from the following files:
- AraEvent/AraEventCalibrator.h
- AraEvent/AraEventCalibrator.cxx
Generated on Mon Jun 3 14:59:51 2013 for ARA ROOT v3.8 Software by
1.4.7