CalibratedSSHk.h
1 
9 #ifndef CALIBRATEDSSHK_H
10 #define CALIBRATEDSSHK_H
11 
12 //Includes
13 #include <TObject.h>
14 #include "AnitaConventions.h"
15 #include "simpleStructs.h"
16 
17 
18 class RawSSHk;
19 
20 
22 
26 class CalibratedSSHk: public TObject
27 {
28  public:
29  CalibratedSSHk();
30  ~CalibratedSSHk();
31 
32  CalibratedSSHk(RawSSHk *hkPtr, RawSSHk *avzPtr, RawSSHk *calPtr);
33 
34  Int_t run;
35  UInt_t realTime;
36  UInt_t payloadTime;
37  UInt_t payloadTimeUs;
38 
39  Float_t voltage[CHANS_PER_IP320];
40  Float_t useful[CHANS_PER_IP320];
41 
42  //Sunsensor Stuff
43  void getSSMagnitude(int ssInd, Float_t *magnitude,Float_t *magX, Float_t *magY);
44  Float_t getSSTemp(int ssInd);
45  Int_t getSSXRatio(int ssInd, Float_t *xRatio);
46  Int_t getSSYRatio(int ssInd, Float_t *yRatio);
47  Int_t getFancySS(int ssInd, Float_t pos[3], Float_t *azimuth,
48  Float_t *elevation, Float_t *relAzimuth);
49  Float_t getSSAzimuth(int ssInd);
50  Float_t getSSAzimuthAdu5(int ssInd);
51  Float_t getSSElevation(int ssInd);
52 
53  Float_t getRawSunsensor(int ssInd, int type);
54  const char *getName(int ssInd);
55 
56  ClassDef(CalibratedSSHk,10);
57 };
58 
59 
60 #endif //CALIBRATEDSSHK_H
Int_t getSSYRatio(int ssInd, Float_t *yRatio)
Get sunsensor y-ratio.
UInt_t payloadTimeUs
Sub second time in us.
UInt_t realTime
Time in unixTime.
Float_t useful[40]
Array of calibrated temperatures, currents, etc.
Float_t getSSTemp(int ssInd)
Get sunsensor temperature.
RawSSHk – The Raw ANITA Housekeeping.
Definition: RawSSHk.h:23
CalibratedSSHk – The calibrated housekeeping data.
Int_t getFancySS(int ssInd, Float_t pos[3], Float_t *azimuth, Float_t *elevation, Float_t *relAzimuth)
Convert sunsensor data to elevation and azimuth.
Int_t getSSXRatio(int ssInd, Float_t *xRatio)
Get sunsensor x-ratio.
void getSSMagnitude(int ssInd, Float_t *magnitude, Float_t *magX, Float_t *magY)
Get sunsensor magnitude.
CalibratedSSHk()
Default constructor.
Float_t getRawSunsensor(int ssInd, int type)
Returns raw sunsensor stuff, here type goes x1,x2,y1,y2,T.
Int_t run
Assigned offline.
Float_t voltage[40]
Array of voltages.
UInt_t payloadTime
Time in unixTime.
~CalibratedSSHk()
Default destructor.