| 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 |  | 
|---|
| 11 | class TCanvas; | 
|---|
| 12 | class MHCamera; | 
|---|
| 13 | class MCamEvent; | 
|---|
| 14 | class MRunIter; | 
|---|
| 15 | class MParList; | 
|---|
| 16 | class MPedestalCam; | 
|---|
| 17 | class MCalibrationChargeCam; | 
|---|
| 18 | class MCalibrationQECam; | 
|---|
| 19 | class MExtractor; | 
|---|
| 20 | class MExtractTime; | 
|---|
| 21 |  | 
|---|
| 22 | class MJExtractSignal : public MParContainer | 
|---|
| 23 | { | 
|---|
| 24 | private: | 
|---|
| 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 |  | 
|---|
| 43 | public: | 
|---|
| 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 | 
|---|