| Line |  | 
|---|
| 1 | #ifndef MARS_MCurrents | 
|---|
| 2 | #define MARS_MCurrents | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef MARS_MCamEvent | 
|---|
| 5 | #include "MCamEvent.h" | 
|---|
| 6 | #endif | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef ROOT_TArrayI | 
|---|
| 9 | #include <TArrayI.h> | 
|---|
| 10 | #endif | 
|---|
| 11 |  | 
|---|
| 12 | class MCurrents : public MCamEvent | 
|---|
| 13 | { | 
|---|
| 14 | private: | 
|---|
| 15 | /* | 
|---|
| 16 | "DC %s %s %02d %02d %02d %03d 577*%05d \n", | 
|---|
| 17 | status1, status2, hour, minute, second, ms, | 
|---|
| 18 | 577 * pixel_DC_readout_in_nAmp | 
|---|
| 19 | */ | 
|---|
| 20 | TString fStatus[2]; | 
|---|
| 21 | TArrayI fArray; // [nA] Unsigned Int! | 
|---|
| 22 |  | 
|---|
| 23 | public: | 
|---|
| 24 | MCurrents(Int_t size=577, const char *name=NULL, const char *title=NULL); | 
|---|
| 25 |  | 
|---|
| 26 | void SetCurrent(Int_t i, UInt_t val) { fArray[i] = (Int_t)val; } | 
|---|
| 27 | UInt_t GetCurrent(Int_t i) const { return (*this)[i]; } | 
|---|
| 28 | UInt_t &operator[](Int_t i) { return (UInt_t&)fArray[i]; } | 
|---|
| 29 | const UInt_t &operator[](Int_t i) const { return (*const_cast<MCurrents*>(this))[i]; } | 
|---|
| 30 |  | 
|---|
| 31 | UInt_t GetMin() const; | 
|---|
| 32 | UInt_t GetMax() const; | 
|---|
| 33 |  | 
|---|
| 34 | void SetStatus1(const TString &str) { fStatus[0] = str; } | 
|---|
| 35 | void SetStatus2(const TString &str) { fStatus[1] = str; } | 
|---|
| 36 |  | 
|---|
| 37 | void Print(Option_t *opt=NULL) const; | 
|---|
| 38 |  | 
|---|
| 39 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const | 
|---|
| 40 | { | 
|---|
| 41 | val = (*this)[idx]; | 
|---|
| 42 | return val>0; | 
|---|
| 43 | } | 
|---|
| 44 | void DrawPixelContent(Int_t num) const | 
|---|
| 45 | { | 
|---|
| 46 | } | 
|---|
| 47 |  | 
|---|
| 48 | ClassDef(MCurrents, 1) // Storage Container for the Currents (PRELIMINARY) | 
|---|
| 49 | }; | 
|---|
| 50 |  | 
|---|
| 51 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.