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

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