| 1 | #ifndef __MMcFadcHeader__
|
|---|
| 2 | #define __MMcFadcHeader__
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MParContainer
|
|---|
| 5 | #include "MParContainer.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | #include "MFadcDefine.h"
|
|---|
| 9 |
|
|---|
| 10 | class 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 amplitude of the trigger in mV
|
|---|
| 17 | Float_t fFwhmFadc ; // the width of the signal in nsec
|
|---|
| 18 | Float_t fPedesMean[MFADC_CHANNELS] ; // The mean value for the pedestal
|
|---|
| 19 | // of each pixel (channel)
|
|---|
| 20 | Float_t fElecNoise[MFADC_CHANNELS] ; // The rms value in the pedestal
|
|---|
| 21 | // due to the electronics for
|
|---|
| 22 | // each pixel (channel)
|
|---|
| 23 |
|
|---|
| 24 | public:
|
|---|
| 25 | MMcFadcHeader(const char *name=NULL, const char *title=NULL);
|
|---|
| 26 |
|
|---|
| 27 | ~MMcFadcHeader();
|
|---|
| 28 |
|
|---|
| 29 | void Print(Option_t *opt=NULL) const;
|
|---|
| 30 |
|
|---|
| 31 | void SetShape(Float_t shape){
|
|---|
| 32 | fFadcShape=shape;
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
| 35 | void SetAmplitud(Float_t amp){
|
|---|
| 36 | fAmplFadc=amp;
|
|---|
| 37 | }
|
|---|
| 38 |
|
|---|
| 39 | void SetFwhm(Float_t fwhm){
|
|---|
| 40 | fFwhmFadc=fwhm;
|
|---|
| 41 | }
|
|---|
| 42 |
|
|---|
| 43 | void SetPedestal(Float_t *mean, Int_t dim){
|
|---|
| 44 | for (Int_t i=0;i<dim;i++)
|
|---|
| 45 | fPedesMean[i]=mean[i];
|
|---|
| 46 | }
|
|---|
| 47 |
|
|---|
| 48 | void SetElecNoise(Float_t *sigma, Int_t dim){
|
|---|
| 49 | for (Int_t i=0;i<dim;i++)
|
|---|
| 50 | fElecNoise[i]=sigma[i];
|
|---|
| 51 | }
|
|---|
| 52 |
|
|---|
| 53 | Float_t GetPedestal(UInt_t i) const { return fPedesMean[i]; }
|
|---|
| 54 | Float_t GetPedestalRms(UInt_t i) const { return fElecNoise[i]; }
|
|---|
| 55 | Float_t GetAmplitud() const { return fAmplFadc; }
|
|---|
| 56 |
|
|---|
| 57 | UInt_t GetNumPixel() const { return MFADC_CHANNELS; }
|
|---|
| 58 |
|
|---|
| 59 | ClassDef(MMcFadcHeader, 1) //Stores Montecarlo Information describing the FADC behaviour
|
|---|
| 60 |
|
|---|
| 61 | };
|
|---|
| 62 |
|
|---|
| 63 | #endif
|
|---|
| 64 |
|
|---|