source: trunk/MagicSoft/Mars/mhft/MHexagonFreqSpace.h@ 5973

Last change on this file since 5973 was 5691, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1018 bytes
Line 
1#ifndef MARS_MHexagonFreqSpace
2#define MARS_MHexagonFreqSpace
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7#ifndef MARS_MCamEvent
8#include "MCamEvent.h"
9#endif
10#ifndef ROOT_MArrayD
11#include "MArrayD.h"
12#endif
13
14class MGeomCam;
15
16class MHexagonFreqSpace : public MParContainer, public MCamEvent
17{
18private:
19 MArrayD fDataRe; //
20 MArrayD fDataIm; //
21
22public:
23 MHexagonFreqSpace(const char *name=NULL, const char *title=NULL);
24 ~MHexagonFreqSpace() { }
25
26 void Set(const MArrayD &re, const MArrayD &im);
27
28 Double_t GetAbs(UInt_t idx) const { return TMath::Hypot(fDataRe[idx], fDataIm[idx]); }
29
30 static MGeomCam *NewGeomCam(UShort_t num);
31 MGeomCam *NewGeomCam() const { return NewGeomCam(fDataRe.GetSize()); }
32
33 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
34 void DrawPixelContent(Int_t num) const;
35
36 ClassDef(MHexagonFreqSpace, 1) // Generalized storage class for camera data in hexagonal frequency space (triangle)
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.