source: trunk/MagicSoft/Mars/mcamera/MCameraTH.h@ 7430

Last change on this file since 7430 was 7430, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.1 KB
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_TArrayS
12#include <TArrayS.h>
13#endif
14
15class MCameraTH : public MParContainer, public MCamEvent
16{
17 friend class MReportCC;
18private:
19 TArrayS fTH; // [au] discriminator thresholds
20
21public:
22 MCameraTH(Int_t size=577, const char *name=NULL, const char *title=NULL);
23
24 void SetThreshold(Int_t i, Float_t val) { fTH[i] = (Int_t)val; }
25 Float_t GetThreshold(Int_t i) const { return (*this)[i]; }
26 Float_t &operator[](Int_t i) { return (Float_t&)fTH[i]; }
27 const Float_t &operator[](Int_t i) const { return (*const_cast<MCameraTH*>(this))[i]; }
28
29 Float_t GetMin() const;
30 Float_t GetMax() const;
31
32 void Print(Option_t *opt=NULL) const;
33
34 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
35 {
36 val = fTH[idx];
37 return val>0;
38 }
39 void DrawPixelContent(Int_t num) const
40 {
41 }
42
43 ClassDef(MCameraTH, 1) // Storage Container for the discriminator thresholds
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.