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

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