1 | #ifndef MARS_MJCalibration
|
---|
2 | #define MARS_MJCalibration
|
---|
3 |
|
---|
4 | #ifndef MARS_MCalibrationCam
|
---|
5 | #include "MCalibrationCam.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MBadPixelsCam
|
---|
8 | #include "MBadPixelsCam.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class TCanvas;
|
---|
12 | class MHCamera;
|
---|
13 | class MCamEvent;
|
---|
14 | class MRunIter;
|
---|
15 | class MParList;
|
---|
16 | class MPedestalCam;
|
---|
17 |
|
---|
18 | class MJCalibration : public MParContainer
|
---|
19 | {
|
---|
20 | private:
|
---|
21 | TString fOutputPath;
|
---|
22 |
|
---|
23 | MRunIter *fRuns;
|
---|
24 |
|
---|
25 | MCalibrationCam fCalibrationCam;
|
---|
26 | MBadPixelsCam fBadPixels;
|
---|
27 |
|
---|
28 | void DrawProjection(MHCamera *obj1, Int_t fit) const;
|
---|
29 | void CamDraw(TCanvas &c, const Int_t x, const Int_t y, const MHCamera &cam1, const Int_t fit);
|
---|
30 |
|
---|
31 | void DisplayResult(MParList &plist);
|
---|
32 | Bool_t WriteResult();
|
---|
33 |
|
---|
34 | public:
|
---|
35 | MJCalibration(const char *name=NULL, const char *title=NULL);
|
---|
36 |
|
---|
37 | void SetInput(MRunIter *iter) { fRuns=iter; }
|
---|
38 | void SetOutputPath(const char *path=".");
|
---|
39 |
|
---|
40 | TString GetOutputFile() const;
|
---|
41 |
|
---|
42 | const MCalibrationCam &GetCalibrationCam() const { return fCalibrationCam; }
|
---|
43 | const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
|
---|
44 |
|
---|
45 | void SetBadPixels(MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
|
---|
46 |
|
---|
47 | Bool_t ReadCalibrationCam();
|
---|
48 | Bool_t ProcessFile(MPedestalCam &pedcam);
|
---|
49 | Bool_t Process(MPedestalCam &pedcam);
|
---|
50 |
|
---|
51 | ClassDef(MJCalibration, 0) // Tool to create a pedestal file (MPedestalCam)
|
---|
52 | };
|
---|
53 |
|
---|
54 | #endif
|
---|