source: trunk/MagicSoft/Mars/mcamera/MCameraDC.h@ 2937

Last change on this file since 2937 was 2632, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1018 bytes
Line 
1#ifndef MARS_MCameraDC
2#define MARS_MCameraDC
3
4#ifndef MARS_MCamEvent
5#include "MCamEvent.h"
6#endif
7
8#ifndef ROOT_TArrayF
9#include <TArrayF.h>
10#endif
11
12class MCameraDC : public MCamEvent
13{
14private:
15 TArrayF fArray; // [nA] Unsigned Int!
16
17public:
18 MCameraDC(Int_t size=577, const char *name=NULL, const char *title=NULL);
19
20 void SetCurrent(Int_t i, Float_t val) { fArray[i] = (Int_t)val; }
21 Float_t GetCurrent(Int_t i) const { return (*this)[i]; }
22 Float_t &operator[](Int_t i) { return (Float_t&)fArray[i]; }
23 const Float_t &operator[](Int_t i) const { return (*const_cast<MCameraDC*>(this))[i]; }
24
25 Float_t GetMin() const;
26 Float_t GetMax() const;
27
28 void Print(Option_t *opt=NULL) const;
29
30 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
31 {
32 val = (*this)[idx];
33 return val>0;
34 }
35 void DrawPixelContent(Int_t num) const
36 {
37 }
38
39 ClassDef(MCameraDC, 1) // Storage Container for the Currents (PRELIMINARY)
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.