source: trunk/MagicSoft/Mars/mpedestal/MPedestalCalc.h@ 9077

Last change on this file since 9077 was 3803, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MPedestalCalc
2#define MARS_MPedestalCalc
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MPedestalCalc //
7// //
8// Implementation of ped. Eval. defined in Jan 02 //
9// //
10/////////////////////////////////////////////////////////////////////////////
11#ifndef MARS_MTask
12#include "MTask.h"
13#endif
14
15#ifndef MARS_MHFadCam
16#include "MHFadcCam.h"
17#endif
18
19class MTime;
20class MRawEvtData;
21class MPedestalCam;
22
23class MPedestalCalc : public MTask
24{
25private:
26 Int_t fNumBranches;
27 Float_t fTimeSlot;
28
29 MRawEvtData *fRawEvt;
30 MPedestalCam *fPedestals; //
31
32 MHFadcCam *fHists; //[fNumBranches]
33
34 MTime *fPedTime; // time of the pedestal event
35 MTime *fEvtTime; // time of the current event
36 MTime *fStart; //[fNumBranches] starting time of the current pedestal
37
38
39 void Calc(Int_t i) const;
40 void Fill(Int_t i);
41 void Check(Int_t i);
42
43 Int_t PreProcess(MParList *pList);
44 Int_t Process();
45 Int_t PostProcess();
46
47public:
48 MPedestalCalc(const char *name=NULL, const char *title=NULL);
49
50 void SetTimeSlot(Float_t newslot) { fTimeSlot = newslot; }
51 void SetNumBranches(Int_t num) { fNumBranches = num; }
52
53 ClassDef(MPedestalCalc, 0) // Task to calculate the pestels from pedestal events
54};
55
56#endif
57
58
59
Note: See TracBrowser for help on using the repository browser.