source: branches/MarsGapdTimeJitter/msignal/MExtractedSignalPINDiode.h@ 18234

Last change on this file since 18234 was 7043, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.1 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; // Extracted signal amplitude
13 Float_t fExtractedSignalErr; // Error extracted signal amplitude
14 Float_t fExtractedTime; // Position of signal amplitude
15 Float_t fExtractedTimeErr; // Error position of signal amplitude
16 Float_t fExtractedSigma; // Width Gauss fit
17 Float_t fExtractedSigmaErr; // Error of width
18 Float_t fExtractedChi2; // Chi2 Gauss fit
19
20 Byte_t fNumFADCSamples; // Number of used FADC slices
21 Byte_t fFirst; // First FADC slice to start extraction
22
23 Bool_t fSaturated; // FADC saturation occurrance flag
24
25public:
26
27 MExtractedSignalPINDiode(const char* name=NULL, const char* title=NULL);
28
29 void Clear(Option_t *o="");
30
31 // Getter
32 Float_t GetExtractedSignal() const { return fExtractedSignal; }
33 Float_t GetExtractedSignalErr() const { return fExtractedSignalErr; }
34 Float_t GetExtractedTime() const { return fExtractedTime; }
35 Float_t GetExtractedTimeErr() const { return fExtractedTimeErr; }
36 Float_t GetExtractedSigma() const { return fExtractedSigma; }
37 Float_t GetExtractedSigmaErr() const { return fExtractedSigmaErr; }
38 Float_t GetExtractedChi2() const { return fExtractedChi2; }
39 Byte_t GetNumFADCSamples() const { return fNumFADCSamples; }
40
41 Bool_t IsValid() const;
42
43 // Print
44 void Print(Option_t *o="") const;
45
46 // Setter
47 void SetExtractedSignal(const Float_t sig, const Float_t sigerr);
48 void SetExtractedSigma( const Float_t sig, const Float_t sigerr);
49 void SetExtractedTime( const Float_t sig, const Float_t sigerr);
50 void SetExtractedChi2( const Float_t chi ) { fExtractedChi2 = chi; }
51 void SetSaturation ( const Bool_t b=kTRUE) { fSaturated = b; }
52 void SetUsedFADCSlices( const Byte_t first, const Byte_t num);
53
54 ClassDef(MExtractedSignalPINDiode, 2) // Storage Container for Extracted Signal information of one pixel
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.