SlowRate.h
1 
9 #ifndef SLOWRATE_H
10 #define SLOWRATE_H
11 
12 //Includes
13 #include <TObject.h>
14 #include "simpleStructs.h"
15 
17 
21 class SlowRate: public TObject
22 {
23  public:
24  SlowRate();
25  ~SlowRate();
26 
27  SlowRate(Int_t trun, UInt_t trealTime, SlowRateFull_t *slowPtr);
28 
29  Int_t run;
30  UInt_t realTime;
31  UInt_t payloadTime;
32 
33 
34  Float_t latitude;
35  Float_t longitude;
36  Short_t altitude;
37  UInt_t eventNumber;
38  UChar_t rfPwrAvg[ACTIVE_SURFS][RFCHAN_PER_SURF];
39  UChar_t avgScalerRates[TRIGGER_SURFS][SCALERS_PER_SURF];
40  UChar_t eventRate1Min;
41  UChar_t eventRate10Min;
42 
43  UChar_t temps[4];
44  UChar_t powers[4];
45 
46  Double_t getRFPowerInK(int surf, int chan);
47  // Double_t getMeasuredRFPowerInK(int surf, int chan); ///< Returns the pseudo-calibrated RF power in K.
48  Double_t getRawRFPower(int surf, int chan);
49  Int_t getAvgScaler(int surf, int ant);
50 
51  Double_t getEventRate1Min() {return 0.5*eventRate1Min;}
52  Double_t getEventRate10Min() {return 0.5*eventRate10Min;}
53 
54  Float_t getLatitude() {return latitude;}
55  Float_t getLongitude() {return longitude;}
56  Float_t getAltitude();
57  Float_t getPower(int powerInd);
58  Float_t getTemp(int tempInd);
59 
60  const char *getPowerName(int powerInd);
61  const char *getTempName(int tempInd);
62  ClassDef(SlowRate,12);
63 };
64 
65 
66 #endif //SLOWRATE_H
Int_t run
Run number, assigned offline.
Definition: SlowRate.h:29
~SlowRate()
Destructor.
Definition: SlowRate.cxx:25
SlowRate()
Default constructor.
Definition: SlowRate.cxx:20
UChar_t eventRate1Min
Multiplied by 2.
Definition: SlowRate.h:40
Int_t getAvgScaler(int surf, int ant)
Returns the averaged scaler value.
Definition: SlowRate.cxx:84
SlowRate – The Slow Rate data.
Definition: SlowRate.h:21
UChar_t temps[4]
{SBS,SURF,TURF,RAD}
Definition: SlowRate.h:43
Float_t getLatitude()
Returns the latitude.
Definition: SlowRate.h:54
const char * getPowerName(int powerInd)
Returns the name of the power reading.
Definition: SlowRate.cxx:126
Float_t longitude
Payload longitude.
Definition: SlowRate.h:35
Float_t latitude
Payload latitude.
Definition: SlowRate.h:34
Slow Rate Block – Telemetered.
UInt_t eventNumber
Latest event number.
Definition: SlowRate.h:37
UChar_t powers[4]
{PV V, +24V, PV I, 24 I}
Definition: SlowRate.h:44
UChar_t rfPwrAvg[12][8]
The average rf power (in ADCs) //128.
Definition: SlowRate.h:38
UInt_t payloadTime
Time in unixTime.
Definition: SlowRate.h:31
UChar_t avgScalerRates[8][12]
Divided by 4.
Definition: SlowRate.h:39
Float_t getAltitude()
Returns the altitude correct for negative crazziness.
Definition: SlowRate.cxx:94
Short_t altitude
Payload altitude.
Definition: SlowRate.h:36
Float_t getLongitude()
Returns the longitude.
Definition: SlowRate.h:55
UInt_t realTime
Time in unixTime.
Definition: SlowRate.h:30
Float_t getPower(int powerInd)
Returns the actual power value.
Definition: SlowRate.cxx:103
UChar_t eventRate10Min
Multiplied by 2.
Definition: SlowRate.h:41
Double_t getRFPowerInK(int surf, int chan)
Returns the pseudo-calibrated RF power in K.
Definition: SlowRate.cxx:52
const char * getTempName(int tempInd)
Returns the name of temp sensor.
Definition: SlowRate.cxx:135
Float_t getTemp(int tempInd)
Returns the actual temp.
Definition: SlowRate.cxx:115