1 | #ifndef MARS_MJCalibration
|
---|
2 | #define MARS_MJCalibration
|
---|
3 |
|
---|
4 | #ifndef MARS_MCalibrationChargeCam
|
---|
5 | #include "MCalibrationChargeCam.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 | MCalibrationChargeCam fCalibrationCam;
|
---|
26 | MBadPixelsCam fBadPixels;
|
---|
27 |
|
---|
28 | void DrawProjection ( MHCamera *obj, Int_t fit) const;
|
---|
29 | void DrawRadialProfile( MHCamera *obj) const;
|
---|
30 | void CamDraw(TCanvas &c, const Int_t x, const Int_t y, const MHCamera &cam1,
|
---|
31 | const Int_t fit, const Int_t rad=0);
|
---|
32 |
|
---|
33 | void DisplayResult(MParList &plist);
|
---|
34 | Bool_t WriteResult();
|
---|
35 |
|
---|
36 | public:
|
---|
37 | MJCalibration(const char *name=NULL, const char *title=NULL);
|
---|
38 |
|
---|
39 | void SetInput(MRunIter *iter) { fRuns=iter; }
|
---|
40 | void SetOutputPath(const char *path=".");
|
---|
41 |
|
---|
42 | TString GetOutputFile() const;
|
---|
43 |
|
---|
44 | MCalibrationChargeCam &GetCalibrationCam() { return fCalibrationCam; }
|
---|
45 | const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
|
---|
46 |
|
---|
47 | void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
|
---|
48 |
|
---|
49 | Bool_t ReadCalibrationCam();
|
---|
50 | Bool_t ProcessFile(MPedestalCam &pedcam);
|
---|
51 | Bool_t Process(MPedestalCam &pedcam);
|
---|
52 |
|
---|
53 | ClassDef(MJCalibration, 0) // Tool to create a pedestal file (MPedestalCam)
|
---|
54 | };
|
---|
55 |
|
---|
56 | #endif
|
---|