source: trunk/MagicSoft/Mars/mpedestal/MPedestalSubtract.h@ 8785

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