Line | |
---|
1 | #ifndef MARS_MPedestalSum
|
---|
2 | #define MARS_MPedestalSum
|
---|
3 |
|
---|
4 | /////////////////////////////////////////////////////////////////////////////
|
---|
5 | // //
|
---|
6 | // MPedestalSum //
|
---|
7 | // //
|
---|
8 | // Integrates the desired ADC time slices of one pixel and substracts the //
|
---|
9 | // pedestal (offset) value //
|
---|
10 | // //
|
---|
11 | /////////////////////////////////////////////////////////////////////////////
|
---|
12 | #ifndef ROOT_TArrayF
|
---|
13 | #include <TArrayF.h>
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | #ifndef MARS_MTask
|
---|
17 | #include "MTask.h"
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | class MRawEvtData;
|
---|
21 | class MPedestalCam;
|
---|
22 | class MCerPhotEvt;
|
---|
23 | class MRawRunHeader;
|
---|
24 |
|
---|
25 | class MPedestalSum : public MTask
|
---|
26 | {
|
---|
27 | MPedestalCam *fPedestals; // Pedestals of all pixels in the camera
|
---|
28 | MRawEvtData *fRawEvt; // raw event data (time slices)
|
---|
29 | MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
|
---|
30 | MRawRunHeader *fRunHeader; // RunHeader information
|
---|
31 |
|
---|
32 | Bool_t fEnableFix; // fix for a bug in files from older camera versions (<=40)
|
---|
33 | Bool_t fIsMcFile;
|
---|
34 |
|
---|
35 | TArrayF fWeight; // Weights for adding up the ADC slices
|
---|
36 | Float_t fSumWeights;
|
---|
37 | Float_t fSumQuadWeights;
|
---|
38 |
|
---|
39 | void SetDefaultWeights();
|
---|
40 |
|
---|
41 | Int_t PreProcess(MParList *pList);
|
---|
42 | Int_t Process();
|
---|
43 |
|
---|
44 | Bool_t ReInit(MParList *pList);
|
---|
45 | void ScalePedestals();
|
---|
46 |
|
---|
47 | public:
|
---|
48 | MPedestalSum(const char *name=NULL, const char *title=NULL);
|
---|
49 |
|
---|
50 | // FIXME: The array size should be checked!
|
---|
51 | void SetWeights(const TArrayF &w) { fWeight = w; }
|
---|
52 |
|
---|
53 | ClassDef(MPedestalSum, 0) // Task to calculate cerenkov photons from raw data
|
---|
54 | };
|
---|
55 |
|
---|
56 |
|
---|
57 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.