source: trunk/Mars/mjobs/MJExtractSignal.h@ 15063

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