| 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 ReadPedestalCam();
|
|---|
| 28 | Bool_t WriteResult();
|
|---|
| 29 |
|
|---|
| 30 | void DrawProjection(MHCamera *obj1, Int_t fit) const;
|
|---|
| 31 | void CamDraw(TCanvas &c, Int_t x, Int_t y, MHCamera &cam1, Int_t fit);
|
|---|
| 32 | void DisplayResult(MParList &plist);
|
|---|
| 33 |
|
|---|
| 34 | public:
|
|---|
| 35 | MJPedestal(const char *name=NULL, const char *title=NULL);
|
|---|
| 36 |
|
|---|
| 37 | void SetOutputPath(const char *path=".");
|
|---|
| 38 | void SetInput(MRunIter *iter) { fRuns=iter; }
|
|---|
| 39 |
|
|---|
| 40 | TString GetOutputFile() const;
|
|---|
| 41 |
|
|---|
| 42 | MPedestalCam &GetPedestalCam() { return fPedestalCam; }
|
|---|
| 43 | const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
|
|---|
| 44 |
|
|---|
| 45 | void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
|
|---|
| 46 |
|
|---|
| 47 | Bool_t ProcessFile();
|
|---|
| 48 | Bool_t Process();
|
|---|
| 49 |
|
|---|
| 50 | ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
|
|---|
| 51 | };
|
|---|
| 52 |
|
|---|
| 53 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.