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

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