14 #include "AnitaConventions.h" 15 #include "simpleStructs.h" 16 #include "oldStructs.h" 40 UInt_t tpayloadTimeUs,
41 UShort_t tglobalThreshold,
43 UShort_t tscalerGoals[BANDS_PER_ANT],
44 UShort_t tscalerGoalsNadir[BANDS_PER_ANT],
45 UShort_t tupperWords[ACTIVE_SURFS],
46 UShort_t tscaler[ACTIVE_SURFS][SCALERS_PER_SURF],
47 UShort_t tthreshold[ACTIVE_SURFS][SCALERS_PER_SURF],
48 UShort_t tsetThreshold[ACTIVE_SURFS][SCALERS_PER_SURF],
49 UShort_t trfPower[ACTIVE_SURFS][RFCHAN_PER_SURF],
50 UShort_t tsurfTrigBandMask[ACTIVE_SURFS],
62 UShort_t
scaler[ACTIVE_SURFS][SCALERS_PER_SURF_V30];
65 UShort_t
threshold[ACTIVE_SURFS][SCALERS_PER_SURF_V30];
67 UShort_t
rfPower[ACTIVE_SURFS][RFCHAN_PER_SURF];
79 Int_t getScalerFromSurfChan(
int surf,
int chan) {
return scaler[surf][chan];}
80 Int_t getThresholdFromSurfChan(
int surf,
int chan) {
return threshold[surf][chan];}
81 Int_t getSetThresholdFromSurfChan(
int surf,
int chan) {
return setThreshold[surf][chan];}
82 Int_t getL2ScalerFromSurfChan(
int surf,
int chan) {
return l2Scaler[surf][chan]; }
83 Int_t getL1ScalerFromSurfChan(
int surf,
int chan) {
return l1Scaler[surf][chan]; }
97 UInt_t getRFPowerTimeOffset(
int surf,
int chan);
98 UInt_t getRFPowerPayloadTime(UInt_t surf, UInt_t chan);
99 UInt_t getRFPowerPayloadTimeUs(UInt_t surf, UInt_t chan);
101 ClassDef(
SurfHk,VER_SURF_HK);
UShort_t scalerGoals[4]
Scaler goal for each ring, only use 3.
Int_t intFlag
Interpolation flag, should be zero for raw data.
SurfHk()
Default constructor.
UShort_t scalerGoalsNadir[4]
Deprecated.
UShort_t l2Scaler[12][2]
L2 Scaler values.
UShort_t l1Scaler[12][6]
L1 Scaler values.
UShort_t surfTrigBandMask[12]
Which bands are masked off?
Int_t getThreshold(int phi, AnitaRing::AnitaRing_t ring, AnitaTrigPol::AnitaTrigPol_t pol)
Returns readback threhsold value for given ring-phi-pol.
UInt_t realTime
Time in unixTime.
Double_t getRawRFPower(int surf, int chan)
Returns the measured adc value of the RF power while masking the top bit (the "phase" bit) ...
Int_t getL2Scaler(int phi)
Returns the L2 scaler value for given phi-pol.
Double_t getRFPowerInK(int surf, int chan)
Returns the pseudo-calibrated RF power in K.
Int_t getSetThreshold(int phi, AnitaRing::AnitaRing_t ring, AnitaTrigPol::AnitaTrigPol_t pol)
Returns set threshold value for given ring-phi-pol.
UShort_t upperWords[12]
Upper words of each SURF... for debugging.
SurfHk – The raw SURF scaler+threshold data.
UInt_t payloadTimeUs
Subsecond time of readout in us.
enum AnitaRing::EAnitaRing AnitaRing_t
Ring enumeration.
enum AnitaTrigPol::EAnitaTrigPol AnitaTrigPol_t
Polarisation enumeration.
Int_t getL1Scaler(int phi, AnitaRing::AnitaRing_t ring)
Returns the L1 scaler value for given phi-ring-pol.
Int_t getL1Scaler(int phi, AnitaPol::AnitaPol_t pol, AnitaRing::AnitaRing_t ring)
Returns the L1 scaler value for given phi-ring-pol.
UShort_t globalThreshold
Global threshold if set.
UShort_t setThreshold[12][16]
Threshold values intedned, should match threshold array exactly.
UShort_t scaler[12][16]
Scaler values, multiple by 1000 to get Hz.
UShort_t errorFlag
Error flag.
Int_t isMasked(int phi, AnitaRing::AnitaRing_t ring, AnitaTrigPol::AnitaTrigPol_t pol)
Returns 1 if given phi-ring-pol is masked.
Int_t getLogicalIndex(int phi, AnitaRing::AnitaRing_t ring, AnitaTrigPol::AnitaTrigPol_t pol)
Returns logical pol index.
Int_t getScaler(int phi, AnitaRing::AnitaRing_t ring, AnitaTrigPol::AnitaTrigPol_t pol)
Returns scaler value for given ring-phi-pol.
UShort_t rfPower[12][8]
RF power per input channel in ADC counts.
enum AnitaPol::EAnitaPol AnitaPol_t
Polarisation enumeration.
Int_t getScalerGoal(int surf, int scl)
Returns scaler goal of surf-scaler.
Int_t isBandMasked(int surf, int scl)
Returns 1 if band is masked.
Int_t run
Run number from offline.
UShort_t threshold[12][16]
Threshold values in DAC counts.
UInt_t payloadTime
Time in unixTime.