source: trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.h@ 2306

Last change on this file since 2306 was 2251, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MARS_MCerPhotCalc
2#define MARS_MCerPhotCalc
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MCerPhotCalc //
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
20class MRawEvtData;
21class MPedestalCam;
22class MCerPhotEvt;
23class MRawRunHeader;
24
25class MCerPhotCalc : 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 fSumQuadWeights;
37
38 void SetDefaultWeights();
39
40 Int_t PreProcess(MParList *pList);
41 Int_t Process();
42
43 Bool_t ReInit(MParList *pList);
44 void ScalePedestals();
45
46public:
47 MCerPhotCalc(const char *name=NULL, const char *title=NULL);
48
49 // FIXME: The array size should be checked!
50 void SetWeights(const TArrayF &w) { fWeight = w; }
51
52 ClassDef(MCerPhotCalc, 0) // Task to calculate cerenkov photons from raw data
53};
54
55
56#endif
Note: See TracBrowser for help on using the repository browser.