| 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 |
|
|---|
| 19 | class MTime;
|
|---|
| 20 | class MRawEvtData;
|
|---|
| 21 | class MPedestalCam;
|
|---|
| 22 |
|
|---|
| 23 | class MPedestalCalc : public MTask
|
|---|
| 24 | {
|
|---|
| 25 | private:
|
|---|
| 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 |
|
|---|
| 47 | public:
|
|---|
| 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.