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

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