source: trunk/MagicSoft/Mars/manalysis/MCerPhotCalc2.h@ 1544

Last change on this file since 1544 was 1443, checked in by bigongia, 22 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MCerPhotCalc2
2#define MARS_MCerPhotCalc2
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MCerPhotCalc2 //
7// //
8// Integrates certain time slices of one pixel and substracts the pedestal //
9// (offset) value //
10// //
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef MARS_MTask
14#include "MTask.h"
15#endif
16
17#include <TArrayF.h>
18
19class MRawEvtData;
20class MPedestalCam;
21class MCerPhotEvt;
22class MRawRunHeader;
23class TArrayF;
24
25class MCerPhotCalc2 : 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
34 TArrayF fWeight; // Weights for adding up the ADC slices
35 Float_t fSumQuadWeights;
36
37 void SetDefaultWeights();
38
39public:
40 MCerPhotCalc2(const char *name=NULL, const char *title=NULL);
41
42 Bool_t PreProcess(MParList *pList);
43 Bool_t Process();
44 Bool_t ReInit(MParList *pList);
45
46 void SetWeights(TArrayF w) {fWeight.Set(w.GetSize(),w.GetArray());}
47
48 ClassDef(MCerPhotCalc2, 0) // Task to calculate cerenkov photons from raw data
49};
50
51
52#endif
Note: See TracBrowser for help on using the repository browser.