source: trunk/MagicSoft/Mars/msignal/MExtractedSignalPINDiode.h@ 6034

Last change on this file since 6034 was 4274, checked in by merck, 20 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MExtractedSignalPINDiode
2#define MARS_MExtractedSignalPINDiode
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MExtractedSignalPINDiode : public MParContainer
9{
10private:
11
12 Float_t fExtractedSignal; // mean value of the extracted signal
13 Float_t fExtractedSignalErr; // error of the mean value of the extracted signal
14 Float_t fExtractedTime;
15 Float_t fExtractedTimeErr;
16 Float_t fExtractedRms;
17 Float_t fExtractedRmsErr;
18
19 Byte_t fFirst;
20 Byte_t fNumFADCSamples;
21 Byte_t fNumSaturated;
22
23public:
24 MExtractedSignalPINDiode(const char* name=NULL, const char* title=NULL);
25
26 void Clear(Option_t *o="");
27 void Print(Option_t *o="") const;
28
29 // Setter
30 void SetExtractedSignal(const Float_t sig, const Float_t sigerr);
31 void SetExtractedRms( const Float_t sig, const Float_t sigerr);
32 void SetExtractedTime( const Float_t sig, const Float_t sigerr);
33 void SetSaturation( const Byte_t numsat);
34 void SetUsedFADCSlices( const Byte_t first, const Byte_t num);
35
36 // Getter
37 Float_t GetExtractedSignal() const { return fExtractedSignal; }
38 Float_t GetExtractedSignalErr() const { return fExtractedSignalErr; }
39 Float_t GetExtractedTime() const { return fExtractedTime; }
40 Float_t GetExtractedTimeErr() const { return fExtractedTimeErr; }
41 Float_t GetExtractedRms() const { return fExtractedRms; }
42 Float_t GetExtractedRmsErr() const { return fExtractedRmsErr; }
43 Byte_t GetNumFADCSamples() const { return fNumFADCSamples; }
44 Byte_t GetFirstUsedSlice() const { return fFirst; }
45 Byte_t GetLastUsedSlice() const { return fFirst+fNumFADCSamples; }
46
47 Bool_t IsValid() const;
48
49 ClassDef(MExtractedSignalPINDiode, 1) // Storage Container for Extracted Signal information of one pixel
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.