source: trunk/MagicSoft/Mars/mjobs/MJExtractSignal.h@ 3976

Last change on this file since 3976 was 3445, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MJExtractSignal
2#define MARS_MJExtractSignal
3
4#ifndef MARS_MPedPhotCam
5#include "MPedPhotCam.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;
17class MCalibrationChargeCam;
18
19class MJExtractSignal : public MParContainer
20{
21private:
22 TString fOutputPath;
23
24 MRunIter *fRuns;
25
26 MPedPhotCam fPedPhotCam;
27 MBadPixelsCam fBadPixels;
28
29 void DisplayResult(MParList &plist);
30 Bool_t WriteResult();
31
32 Bool_t ReadPedPhotCam();
33
34 Bool_t ProcessFileD(MPedestalCam &pedcam);
35 Bool_t ProcessFileP(MPedestalCam &pedcam, MCalibrationChargeCam &calcam);
36
37public:
38 MJExtractSignal(const char *name=NULL, const char *title=NULL);
39
40 void SetInput(MRunIter *iter) { fRuns = iter; }
41 void SetOutputPath(const char *path=".");
42
43 TString GetOutputFileP() const;
44 TString GetOutputFileD() const;
45
46 MPedPhotCam &GetPedPhotCam() { return fPedPhotCam; }
47 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
48
49 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
50
51 Bool_t ProcessD(MPedestalCam &pedcam);
52 Bool_t ProcessP(MPedestalCam &pedcam, MCalibrationChargeCam &calcam);
53
54 ClassDef(MJExtractSignal, 0) // Tool to create a pedestal file (MPedestalCam)
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.