#ifndef TSdMonitoring_H #define TSdMonitoring_H #include //#include #include #include "TROOT.h" #include "TObject.h" //______________________________________________________________________________ // // EMonitor contains a list of enum related to the monitoring // enum EMonitor { // // EMonitor contains a list of enum related to the monitoring ESecond, ESummary, E3V, E_3V, E5V, E12V, E24V, EPMV1, EPMV2, EPMV3, EPMI1, EPMI2, EPMI3, EPMT1, EPMT2, EPMT3, EElectT, EBatteryT1, EBatteryT2, EBatteryV1, EBatteryV2, ESolarPanelV, ESolarPanelI, EWaterLevel, EWaterT, ECurrentLoad, EADCBaseLine, EDAC4Voltage, E3VAnalogPower, E12VMultiplexer, E12VRadio, EDACPM1, EDACPM2, EDACPM3, EDACLedVoltage, EMonitorLast }; /* enum EWorkingMonitor { EWPMT1 = EPMT1, EWPMT2 = EPMT2, EWPMT3 = EPMT3, EWTElect = ETElect, EWBoard3V = EBoard3V, EWBoard5V = EBoard5V, EWBoard12V = EBoard12V, EWVSolarPanel1 = EVSolarPanel1, EWVSolarPanel2 = EVSolarPanel2, EWIBattery1 = EIBattery1, EWIBattery2 = EIBattery2, EWorkingMonitorLast }; */ class TSDMonitoring { // // This class contains the physical monitoring data. // public: TSDMonitoring() {}; virtual ~TSDMonitoring() {}; void ResetMonitoring(); void Dump(); void DumpHeader(); void DumpMembers(); Bool_t fIsMonitoring; // kTRUE if monitoring block has been filled // Power Supply Float_t f3V; // 3.3V Power supply (V) Float_t f_3V; // -3.3V Power supply (V) Float_t f5V; // 5V Power supply (V) Float_t f12V; // 12V Power supply (V) Float_t f24V; // 24V Power supply (V) // Photomultiplier Float_t fPMV[3]; // PM voltage (V) Float_t fPMI[3]; // PM current (uA) Float_t fPMT[3]; // PM temperature (C) // Electronic box Float_t fElectT; // Electronic box temperature (C) // Batteries Float_t fBatteryT[2]; // Battery temperatures (C) Float_t fBatteryV[2]; // Battery voltage ([0] for battery center and [1] for total, so [1]-[0] for the other battery voltage) (V) // Solar Panel Float_t fSolarPanelV; // Solar panel voltage (V) Float_t fSolarPanelI; // Solar panel current (A) // Water Float_t fWaterLevel; // Level of the water (V) Float_t fWaterT; // Water temperature (C) // Others Float_t fCurrentLoad; // current consumed by the LS (mA) Float_t fADCBaseline; // Baseline of all of the ADC measurements (ch) Float_t fDAC4Voltage; // Voltage of the Led Flasher (V) Float_t f3VAnalogPower; // 3.3V analog power (V) Float_t f12VMultiplexer; // 12V before the multiplexer (V) Float_t f12VRadio; // 12V going to radio (V) ClassDef(TSDMonitoring,5) }; #endif