source: trunk/MagicSoft/Mars/mjobs/MJCalibration.h@ 3361

Last change on this file since 3361 was 3252, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.3 KB
Line 
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
11class TCanvas;
12class MHCamera;
13class MCamEvent;
14class MRunIter;
15class MParList;
16class MPedestalCam;
17
18class MJCalibration : public MParContainer
19{
20private:
21 TString fOutputPath;
22
23 MRunIter *fRuns;
24
25 MCalibrationChargeCam 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
34public:
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 MCalibrationChargeCam &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
Note: See TracBrowser for help on using the repository browser.