| Line |   | 
|---|
| 1 | #ifndef MARS_MCameraTH
 | 
|---|
| 2 | #define MARS_MCameraTH
 | 
|---|
| 3 | 
 | 
|---|
| 4 | #ifndef MARS_MParContainer
 | 
|---|
| 5 | #include "MParContainer.h"
 | 
|---|
| 6 | #endif
 | 
|---|
| 7 | #ifndef MARS_MCamEvent
 | 
|---|
| 8 | #include "MCamEvent.h"
 | 
|---|
| 9 | #endif
 | 
|---|
| 10 | 
 | 
|---|
| 11 | #ifndef ROOT_TArrayC
 | 
|---|
| 12 | #include <TArrayC.h>
 | 
|---|
| 13 | #endif
 | 
|---|
| 14 | 
 | 
|---|
| 15 | class MCameraTH : public MParContainer, public MCamEvent
 | 
|---|
| 16 | {
 | 
|---|
| 17 |     friend class MReportCC;
 | 
|---|
| 18 | private:
 | 
|---|
| 19 |     TArrayC fTH;      // [au] discriminator thresholds
 | 
|---|
| 20 |     Bool_t  fIsValid; // fTH contains valid information
 | 
|---|
| 21 | 
 | 
|---|
| 22 | public:
 | 
|---|
| 23 |     MCameraTH(Int_t size=577, const char *name=NULL, const char *title=NULL);
 | 
|---|
| 24 | 
 | 
|---|
| 25 |     Byte_t operator[](Int_t i) { return fTH[i]; }
 | 
|---|
| 26 | 
 | 
|---|
| 27 |     Byte_t GetMin() const;
 | 
|---|
| 28 |     Byte_t GetMax() const;
 | 
|---|
| 29 | 
 | 
|---|
| 30 |     void Print(Option_t *opt=NULL) const;
 | 
|---|
| 31 | 
 | 
|---|
| 32 |     void Invalidate() { fTH.Reset(); fIsValid=kFALSE; }
 | 
|---|
| 33 | 
 | 
|---|
| 34 |     void SetValid(Bool_t v=kTRUE) { fIsValid=v; }
 | 
|---|
| 35 |     Bool_t IsValid() const { return fIsValid; }
 | 
|---|
| 36 | 
 | 
|---|
| 37 |     Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
 | 
|---|
| 38 |     {
 | 
|---|
| 39 |         if (idx>=fTH.GetSize())
 | 
|---|
| 40 |             return kFALSE;
 | 
|---|
| 41 | 
 | 
|---|
| 42 |         val = fTH[idx];
 | 
|---|
| 43 |         return val>0;
 | 
|---|
| 44 |     }
 | 
|---|
| 45 |     void DrawPixelContent(Int_t num) const
 | 
|---|
| 46 |     {
 | 
|---|
| 47 |     }
 | 
|---|
| 48 | 
 | 
|---|
| 49 |     ClassDef(MCameraTH, 2) // Storage Container for the discriminator thresholds
 | 
|---|
| 50 | };
 | 
|---|
| 51 | 
 | 
|---|
| 52 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.