source: trunk/Mars/mcamera/MCameraTD.h@ 13408

Last change on this file since 13408 was 8955, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MCameraTD
2#define MARS_MCameraTD
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
15class MCameraTD : public MParContainer, public MCamEvent
16{
17 friend class MReportCC;
18 friend class MReportRec;
19private:
20 TArrayC fTD; // [au] discriminator delays
21 Bool_t fIsValid; // fTD contains valid information
22
23 Bool_t InterpreteTD(TString &str, Int_t ver);
24
25public:
26 MCameraTD(Int_t size=577, const char *name=NULL, const char *title=NULL);
27
28 Byte_t operator[](Int_t i) { return fTD[i]; }
29
30 Byte_t GetMin() const;
31 Byte_t GetMax() const;
32
33 void Print(Option_t *opt=NULL) const;
34
35 void Invalidate() { fTD.Reset(); fIsValid=kFALSE; }
36
37 void SetValid(Bool_t v=kTRUE) { fIsValid=v; }
38 Bool_t IsValid() const { return fIsValid; }
39
40 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const
41 {
42 if (idx>=fTD.GetSize())
43 return kFALSE;
44
45 val = fTD[idx];
46 return val>0;
47 }
48 void DrawPixelContent(Int_t num) const
49 {
50 }
51
52 ClassDef(MCameraTD, 2) // Storage Container for Discriminator Delays
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.