Line | |
---|
1 | #ifndef MARS_MJPedestal
|
---|
2 | #define MARS_MJPedestal
|
---|
3 |
|
---|
4 | #ifndef MARS_MPedestalCam
|
---|
5 | #include "MPedestalCam.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MBadPixelsCam
|
---|
8 | #include "MBadPixelsCam.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 |
|
---|
12 | class TCanvas;
|
---|
13 | class MParList;
|
---|
14 | class MRunIter;
|
---|
15 | class MHCamera;
|
---|
16 |
|
---|
17 | class MJPedestal : public MParContainer
|
---|
18 | {
|
---|
19 | private:
|
---|
20 | TString fOutputPath;
|
---|
21 |
|
---|
22 | MRunIter *fRuns;
|
---|
23 |
|
---|
24 | MPedestalCam fPedestalCam;
|
---|
25 | MBadPixelsCam fBadPixels;
|
---|
26 |
|
---|
27 | Bool_t fDataCheck; // Flag if the data check is run on raw data
|
---|
28 |
|
---|
29 | Bool_t ReadPedestalCam();
|
---|
30 | Bool_t WriteResult();
|
---|
31 |
|
---|
32 | void DrawProjection(MHCamera *obj1, Int_t fit) const;
|
---|
33 | void CamDraw(TCanvas &c, Int_t x, Int_t y, MHCamera &cam1, Int_t fit);
|
---|
34 | void DisplayResult(MParList &plist);
|
---|
35 |
|
---|
36 | public:
|
---|
37 | MJPedestal(const char *name=NULL, const char *title=NULL);
|
---|
38 |
|
---|
39 | void SetOutputPath(const char *path=".");
|
---|
40 | void SetInput(MRunIter *iter) { fRuns=iter; }
|
---|
41 |
|
---|
42 | // Data Check
|
---|
43 | void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; }
|
---|
44 |
|
---|
45 | TString GetOutputFile() const;
|
---|
46 |
|
---|
47 | MPedestalCam &GetPedestalCam() { return fPedestalCam; }
|
---|
48 | const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
|
---|
49 |
|
---|
50 | void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
|
---|
51 |
|
---|
52 | Bool_t ProcessFile();
|
---|
53 | Bool_t Process();
|
---|
54 |
|
---|
55 | ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
|
---|
56 | };
|
---|
57 |
|
---|
58 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.