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

Last change on this file since 3642 was 3564, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.4 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 *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
36public:
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
Note: See TracBrowser for help on using the repository browser.