source: tags/Mars-V2.3/mpedestal/MPedestalSubtract.h

Last change on this file was 8907, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MPedestalSubtract
2#define MARS_MPedestalSubtract
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MRawRunHeader;
9class MRawEvtData;
10class MPedestalCam;
11class MPedestalSubtractedEvt;
12
13class MPedestalSubtract : public MTask
14{
15private:
16 static const char *fgNamePedestalCam; //! "MPedestalCam"
17 static const char *fgNamePedestalSubtractedEvt; //! "MPedestalSubtractedEvt"
18
19 MRawRunHeader *fRunHeader; //! Run Header
20 MRawEvtData *fRawEvt; //! Input Raw data
21 MPedestalCam *fPedestals; //! Pedestals of all pixels in the camera
22 MPedestalSubtractedEvt *fSignal; //! Output container
23
24 TString fNamePedestalCam; // Name of the 'MPedestalCam' container
25 TString fNamePedestalSubtractedEvt; // Name of the 'MPedestalSubtractedEvt' container
26
27 Int_t PreProcess(MParList *pList);
28 Bool_t ReInit(MParList *pList);
29 Int_t Process();
30
31 void Memcpy(void *sample, void *ptr, Int_t cnt) const;
32
33public:
34 MPedestalSubtract(const char *name=NULL, const char *title=NULL);
35
36 void SetPedestalCam(MPedestalCam *pedcam) { fPedestals = pedcam; }
37 void SetNamePedestalCam(const char *name=fgNamePedestalCam) { fNamePedestalCam = name; }
38
39 void SetNamePedestalSubtractedEvt(const char *name=fgNamePedestalSubtractedEvt) { fNamePedestalSubtractedEvt = name; }
40
41 ClassDef(MPedestalSubtract, 0) // Class to subtract pedestal including AB-noise
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.