source: trunk/MagicSoft/Mars/mjobs/MJPedestal.h@ 3149

Last change on this file since 3149 was 3149, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.2 KB
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
12class MParList;
13class MRunIter;
14class MHCamera;
15class TCanvas;
16class MJPedestal : public MParContainer
17{
18private:
19 TString fOutputPath;
20
21 MRunIter *fRuns;
22
23 MPedestalCam fPedestalCam;
24 MBadPixelsCam fBadPixels;
25
26 Bool_t ReadPedestalCam();
27 Bool_t WriteResult();
28
29 void DrawProjection(MHCamera *obj1, Int_t fit) const;
30 void CamDraw(TCanvas &c, Int_t x, Int_t y, MHCamera &cam1, Int_t fit);
31 void DisplayResult(MParList &plist);
32
33public:
34 MJPedestal(const char *name=NULL, const char *title=NULL);
35
36 void SetOutputPath(const char *path=".");
37 void SetInput(MRunIter *iter) { fRuns=iter; }
38
39 TString GetOutputFile() const;
40
41 const MPedestalCam &GetPedestalCam() const { return fPedestalCam; }
42 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
43
44 void SetBadPixels(MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
45
46 Bool_t ProcessFile();
47 Bool_t Process();
48
49 ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.