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

Last change on this file since 4234 was 4189, checked in by gaug, 20 years ago
*** empty log message ***
File size: 1.4 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 TCanvas;
12class MParList;
13class MRunIter;
14class MHCamera;
15class MExtractor;
16class MJPedestal : public MParContainer
17{
18private:
19
20 TString fOutputPath;
21
22 MRunIter *fRuns;
23 MExtractor *fExtractor; // Signal extractor, used to find the nr. of used FADC slices
24
25 MPedestalCam fPedestalCam;
26 MBadPixelsCam fBadPixels;
27
28 Bool_t fDataCheck; // Flag if the data check is run on raw data
29
30 Bool_t ReadPedestalCam();
31 Bool_t WriteResult();
32
33 void DisplayResult(MParList &plist);
34
35public:
36
37 MJPedestal(const char *name=NULL, const char *title=NULL);
38
39 MPedestalCam &GetPedestalCam() { return fPedestalCam; }
40 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
41
42 const char* GetOutputFile() const;
43
44 Bool_t Process();
45 Bool_t ProcessFile();
46
47 void SetBadPixels ( const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
48 void SetDataCheck ( const Bool_t b=kTRUE ) { fDataCheck = b; }
49 void SetExtractor ( MExtractor* ext ) { fExtractor = ext; }
50 void SetInput ( MRunIter *iter ) { fRuns = iter; }
51 void SetOutputPath( const char *path="." );
52
53 ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.