source: branches/MarsISDCBranchBasedOn17887/mmovie/MMovieData.h@ 19372

Last change on this file since 19372 was 8406, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MMovieData
2#define MARS_MMovieData
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef MARS_MCamEvent
9#include "MCamEvent.h"
10#endif
11
12#ifndef ROOT_TObjArray
13#include <TObjArray.h>
14#endif
15
16class TGraph;
17class MSpline3;
18
19class MMovieData : public MParContainer, public MCamEvent
20{
21private:
22 TObjArray fSplines;
23
24 Float_t fMax;
25 Float_t fMedianPedestalRms;
26 UInt_t fNumSlices;
27
28 //TSpline *operator[](int i) { return (TSpline*)fSplines[i]; }
29 MSpline3 &operator[](int i) const { return *(MSpline3*)fSplines[i]; }
30
31 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const { return kFALSE; }
32 void DrawPixelContent(Int_t num) const { }
33
34public:
35 MMovieData(const char *name=NULL, const char *title=NULL);
36 ~MMovieData() { }
37
38 void Reset();
39 void Add(const TGraph &g);
40
41 void SetMax(Float_t mx) { fMax = mx; }
42 Float_t GetMax() const { return fMax; }
43
44 void SetMedianPedestalRms(Float_t m) { fMedianPedestalRms = m; }
45 Float_t GetMedianPedestalRms() const { return fMedianPedestalRms; }
46
47 void SetNumSlices(UInt_t n) { fNumSlices=n; }
48 UInt_t GetNumSlices() const { return fNumSlices; }
49
50 Bool_t CheckRange(Int_t idx, Double_t tm) const;
51 Double_t Eval(Int_t idx, Double_t tm) const;
52 Double_t CheckedEval(Int_t idx, Double_t tm) const { return CheckRange(idx, tm) ? Eval(idx, tm) : 0; }
53
54 ClassDef(MMovieData, 1) // Storage container for movie data
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.