source: tags/Mars-V0.8.7pre/mpedestal/MPedCalcFromData.h

Last change on this file was 4362, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MPedCalcFromData
2#define MARS_MPedCalcFromData
3
4/////////////////////////////////////////////////////////////////////////////
5//
6// MPedCalcFromData
7//
8// Evaluate the pedestal from real data. Uses pixels which have no switched to Low Gain
9// to take pedestals from Low Gain samples.
10//
11// Author: J. Flix (jflix@ifae.es)
12// Date: 25-06-2004
13//
14/////////////////////////////////////////////////////////////////////////////
15
16#ifndef ROOT_TArrayD
17#include <TArrayD.h>
18#endif
19
20#ifndef ROOT_TArrayI
21#include <TArrayI.h>
22#endif
23
24#ifndef MARS_MExtractor
25#include "MExtractor.h"
26#endif
27
28class MPedCalcFromData : public MExtractor
29{
30
31 UInt_t fDump; // Number for dumping.
32 Byte_t fLoGainFirst; // First FADC slice Lo-Gain (currently set to: 3)
33 Byte_t fLoGainLast; // Last FADC slice Lo-Gain (currently set to: 14)
34 Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window
35 Byte_t fHiGainThreshold;
36
37 TArrayD fSumx; // sum of values
38 TArrayD fSumx2; // sum of squared values
39
40 TArrayI fEvtCounter; // Counter for dumping values to Pedestal Container
41 TArrayI fTotalCounter; // Counter for dumping values to Pedestal Container
42
43 Int_t PreProcess ( MParList *pList );
44 Bool_t ReInit ( MParList *pList );
45 Int_t Process ();
46
47public:
48
49 MPedCalcFromData(const char *name=NULL, const char *title=NULL);
50
51 void Clear(const Option_t *o="");
52 void SetDumpEvents(UInt_t dumpevents = 0){fDump = dumpevents;}
53 void SetfHiGainThreshold(Byte_t Threshold = 0){fHiGainThreshold = Threshold;}
54 void SetLoRange(Byte_t lofirst=0, Byte_t lolast=0);
55
56 ClassDef(MPedCalcFromData, 0) // Task to calculate pedestals from data runs
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.