source: trunk/MagicSoft/Mars/mcamera/MCameraHV.h@ 3570

Last change on this file since 3570 was 3216, checked in by reyes, 21 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MARS_MCameraHV
2#define MARS_MCameraHV
3
4#ifndef MARS_MCamEvent
5#include "MCamEvent.h"
6#endif
7#ifndef MARS_MParContainer
8#include "MParContainer.h"
9#endif
10
11#ifndef ROOT_TArrayS
12#include <TArrayS.h>
13#endif
14
15class MCameraHV : public MParContainer, public MCamEvent
16{
17 friend class MReportCamera;
18private:
19 Byte_t fStatus; // CaCo monitored status of the High Voltage [0-9], Cam.HV.PS_state
20 Bool_t fStatusRamping; // CaCo monitored status of ramping the HV, Cam.HV_state
21
22 Short_t fVoltageA; // [V] Measured voltage of power supply A, hvps1
23 Short_t fVoltageB; // [V] Measured voltage of power supply B, hvps2
24
25 Byte_t fCurrentA; // [mA] Measured current of power supply A, curr1
26 Byte_t fCurrentB; // [mA] Measured current of power supply B, curr2
27
28 TArrayS fHV; // [V] Measured high Voltages for all PMTs
29
30 Float_t fMean; // [V] Mean high voltage of the camera
31
32public:
33 MCameraHV() : fHV(577)
34 {
35 fName = "MCameraHV";
36 fTitle = "Container storing information about the Camera HV";
37 }
38
39 Byte_t GetStatus() const { return fStatus; }
40 Bool_t GetStatusRamping() const { return fStatusRamping; }
41 Short_t GetVoltageA() const { return fVoltageA; }
42 Short_t GetVoltageB() const { return fVoltageB; }
43 Byte_t GetCurrentA() const { return fCurrentA; }
44 Byte_t GetCurrentB() const { return fCurrentB; }
45
46 Float_t GetMean() { fMean = fHV.GetSum()/fHV.GetSize(); return fMean; }
47
48 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
49 {
50 val = fHV[idx];
51 return val>0;
52 }
53 void DrawPixelContent(Int_t num) const
54 {
55 }
56
57 ClassDef(MCameraHV, 1) // Container storing information about the Camera HV
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.