Last change
on this file since 9331 was 452, checked in by harald, 24 years ago |
Further improvements in the layout of some guiclasses.
Know the fundament for calculating the pedestals is created with
the first implementation of the classes MPixPedest and MPedest.
A first task for calculating the pedestals is set up (MCalcPed1).
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifndef MPIXPEDEST_H
|
---|
2 | #define MPIXPEDEST_H
|
---|
3 |
|
---|
4 | #include "Magic.h"
|
---|
5 |
|
---|
6 | #include "TObject.h"
|
---|
7 |
|
---|
8 | class MPixPedest : public TObject
|
---|
9 | {
|
---|
10 | private:
|
---|
11 |
|
---|
12 | Float_t fMean ; // the mean value of the pedestal
|
---|
13 | Float_t fErrMean ; // the error of the mean value
|
---|
14 |
|
---|
15 | Float_t fSig ; // the sigma (Width) of the pedestal
|
---|
16 | Float_t fErrSig ; // the error of sigma value
|
---|
17 |
|
---|
18 | public:
|
---|
19 | MPixPedest() ;
|
---|
20 |
|
---|
21 | ~MPixPedest() ;
|
---|
22 |
|
---|
23 | void Print() ;
|
---|
24 |
|
---|
25 | //
|
---|
26 | // Setter and Getter
|
---|
27 | //
|
---|
28 |
|
---|
29 | void SetMean( Float_t x )
|
---|
30 | {
|
---|
31 | fMean = x ;
|
---|
32 | }
|
---|
33 |
|
---|
34 | void SetErrMean( Float_t x )
|
---|
35 | {
|
---|
36 | fErrMean = x ;
|
---|
37 | }
|
---|
38 |
|
---|
39 | void SetSigma( Float_t x )
|
---|
40 | {
|
---|
41 | fSig = x ;
|
---|
42 | }
|
---|
43 |
|
---|
44 | void SetErrSigma( Float_t x )
|
---|
45 | {
|
---|
46 | fErrSig = x ;
|
---|
47 | }
|
---|
48 |
|
---|
49 |
|
---|
50 | Float_t GetMean ()
|
---|
51 | {
|
---|
52 | return ( fMean ) ;
|
---|
53 | }
|
---|
54 |
|
---|
55 | Float_t GetErrMean ()
|
---|
56 | {
|
---|
57 | return ( fErrMean ) ;
|
---|
58 | }
|
---|
59 |
|
---|
60 | Float_t GetSigma ()
|
---|
61 | {
|
---|
62 | return !( fSig ) ;
|
---|
63 | }
|
---|
64 |
|
---|
65 | Float_t GetErrSigma()
|
---|
66 | {
|
---|
67 | return ( fErrSig ) ;
|
---|
68 | }
|
---|
69 |
|
---|
70 | ClassDef(MPixPedest, 1)
|
---|
71 | }; // end of class definition of MRawPixel
|
---|
72 |
|
---|
73 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.