| Line | |
|---|
| 1 | #ifndef MARS_MPedCalcPedRun
|
|---|
| 2 | #define MARS_MPedCalcPedRun
|
|---|
| 3 |
|
|---|
| 4 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 5 | // //
|
|---|
| 6 | // MPedCalcPedRun //
|
|---|
| 7 | // //
|
|---|
| 8 | // Evaluate the pedestals from pedestal runs //
|
|---|
| 9 | // //
|
|---|
| 10 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 11 |
|
|---|
| 12 | #ifndef MARS_MTask
|
|---|
| 13 | #include "MTask.h"
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | #include <TArrayF.h>
|
|---|
| 17 |
|
|---|
| 18 | class MRawRunHeader;
|
|---|
| 19 | class MRawEvtData;
|
|---|
| 20 | class MPedestalCam;
|
|---|
| 21 |
|
|---|
| 22 | class MPedCalcPedRun : public MTask
|
|---|
| 23 | {
|
|---|
| 24 | Byte_t fNumHiGainSamples;
|
|---|
| 25 |
|
|---|
| 26 | MRawRunHeader *fRunheader; // raw event run header
|
|---|
| 27 | MRawEvtData *fRawEvt; // raw event data (time slices)
|
|---|
| 28 | MPedestalCam *fPedestals; // Pedestals of all pixels in the camera
|
|---|
| 29 |
|
|---|
| 30 | TArrayF fSumx; // sum of values
|
|---|
| 31 | TArrayF fSumx2; // sum of squared values
|
|---|
| 32 |
|
|---|
| 33 | Float_t CalcHiGainMean(Byte_t *ptr, const Byte_t *end) const;
|
|---|
| 34 | Float_t CalcHiGainRms(Byte_t *ptr, const Byte_t *end, Float_t higainped) const;
|
|---|
| 35 | Float_t GetSumx2(Byte_t* ptr, const Byte_t* end) const;
|
|---|
| 36 | //Float_t CalcHiGainMeanErr(Float_t higainrms) const;
|
|---|
| 37 | //Float_t CalcHiGainRmsErr(Float_t higainrms) const;
|
|---|
| 38 |
|
|---|
| 39 | Bool_t ReInit(MParList *pList);
|
|---|
| 40 |
|
|---|
| 41 | Int_t PreProcess(MParList *pList);
|
|---|
| 42 | Int_t Process();
|
|---|
| 43 | Int_t PostProcess();
|
|---|
| 44 |
|
|---|
| 45 | public:
|
|---|
| 46 |
|
|---|
| 47 | MPedCalcPedRun(const char *name=NULL, const char *title=NULL);
|
|---|
| 48 |
|
|---|
| 49 | ClassDef(MPedCalcPedRun, 0) // Task to calculate pedestals from pedestal runs raw data
|
|---|
| 50 | };
|
|---|
| 51 |
|
|---|
| 52 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.