source: trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.hxx@ 2365

Last change on this file since 2365 was 2283, checked in by blanch, 22 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef __MMcFadcHeader__
2#define __MMcFadcHeader__
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#include "MFadcDefine.h"
9
10class MMcFadcHeader : public MParContainer{
11 private:
12
13 Float_t fFadcShape ; // a number that indicate the shape type of
14 // the signal
15 // = 0 --> a gaussian
16 Float_t fAmplFadc ; // the integral of sph response [counts*ns]
17 Float_t fFwhmFadc ; // the width of the signal in nsec
18 Float_t fAmplFadcOuter; // the integral of sph response [counts*ns], outer
19 Float_t fFwhmFadcOuter; // the width of the signal in nsec, outer
20 Float_t fPedesMean[MFADC_CHANNELS] ; // The mean value for the pedestal
21 // of each pixel (channel)
22 Float_t fElecNoise[MFADC_CHANNELS] ; // The rms value in the pedestal
23 // due to the electronics for
24 // each pixel (channel)
25 Float_t fLow2HighGain; // low gain factor
26
27 public:
28 MMcFadcHeader(const char *name=NULL, const char *title=NULL);
29
30 ~MMcFadcHeader();
31
32 void Print(Option_t *opt=NULL) const;
33
34 void SetShape(Float_t shape){
35 fFadcShape=shape;
36 }
37
38 void SetLow2High(Float_t l2h){
39 fLow2HighGain=l2h;
40 }
41
42 void SetAmplitud(Float_t amp, Float_t ampout=0.0){
43 fAmplFadc=amp;
44 fAmplFadcOuter=ampout;
45 }
46
47 void SetFwhm(Float_t fwhm, Float_t fwhmout=0.0){
48 fFwhmFadc=fwhm;
49 fFwhmFadcOuter=fwhmout;
50 }
51
52 void SetPedestal(Float_t *mean, Int_t dim){
53 for (Int_t i=0;i<dim;i++)
54 fPedesMean[i]=mean[i];
55 }
56
57 void SetElecNoise(Float_t *sigma, Int_t dim){
58 for (Int_t i=0;i<dim;i++)
59 fElecNoise[i]=sigma[i];
60 }
61
62 Float_t GetPedestal(UInt_t i) const { return fPedesMean[i]; }
63 Float_t GetPedestalRms(UInt_t i) const { return fElecNoise[i]; }
64 Float_t GetAmplitud() const { return fAmplFadc; }
65
66 UInt_t GetNumPixel() const { return MFADC_CHANNELS; }
67
68 ClassDef(MMcFadcHeader, 2) //Stores Montecarlo Information describing the FADC behaviour
69
70};
71
72#endif
73
Note: See TracBrowser for help on using the repository browser.