| Line | |
|---|
| 1 | #ifndef __MMcFadcHeader__
|
|---|
| 2 | #define __MMcFadcHeader__
|
|---|
| 3 |
|
|---|
| 4 | #include <stdlib.h>
|
|---|
| 5 | #include <stdio.h>
|
|---|
| 6 | #include <string.h>
|
|---|
| 7 | #include <unistd.h>
|
|---|
| 8 | #include <fcntl.h>
|
|---|
| 9 |
|
|---|
| 10 | #include <iostream.h>
|
|---|
| 11 | #include "MParContainer.h"
|
|---|
| 12 |
|
|---|
| 13 | #include "MTriggerDefine.h"
|
|---|
| 14 | #include "MFadcDefine.h"
|
|---|
| 15 |
|
|---|
| 16 | class MMcFadcHeader : public MParContainer{
|
|---|
| 17 | private:
|
|---|
| 18 |
|
|---|
| 19 | Float_t fFadcShape ; // a number that indicate the shape type of
|
|---|
| 20 | // the signal
|
|---|
| 21 | // = 0 --> a gaussian
|
|---|
| 22 | Float_t fAmplFadc ; // the amplitude of the trigger in mV
|
|---|
| 23 | Float_t fFwhmFadc ; // the width of the signal in nsec
|
|---|
| 24 | Float_t fPedesMean[MFADC_CHANNELS] ; // The mean value for the pedestal
|
|---|
| 25 | // of each pixel (channel)
|
|---|
| 26 | Float_t fElecNoise[MFADC_CHANNELS] ; // The rms value in the pedestal
|
|---|
| 27 | // due to the electronics for
|
|---|
| 28 | // each pixel (channel)
|
|---|
| 29 |
|
|---|
| 30 | public:
|
|---|
| 31 | MMcFadcHeader() ;
|
|---|
| 32 |
|
|---|
| 33 | ~MMcFadcHeader();
|
|---|
| 34 |
|
|---|
| 35 | void Print(Option_t *);
|
|---|
| 36 |
|
|---|
| 37 | void SetShape(Float_t shape){
|
|---|
| 38 | fFadcShape=shape;
|
|---|
| 39 | }
|
|---|
| 40 |
|
|---|
| 41 | void SetAmplitud(Float_t amp){
|
|---|
| 42 | fAmplFadc=amp;
|
|---|
| 43 | }
|
|---|
| 44 |
|
|---|
| 45 | void SetFwhm(Float_t fwhm){
|
|---|
| 46 | fFwhmFadc=fwhm;
|
|---|
| 47 | }
|
|---|
| 48 |
|
|---|
| 49 | void SetPedestal(Float_t *mean, Int_t dim){
|
|---|
| 50 | for (Int_t i=0;i<dim;i++)
|
|---|
| 51 | fPedesMean[i]=mean[i];
|
|---|
| 52 | }
|
|---|
| 53 |
|
|---|
| 54 | void SetElecNoise(Float_t *sigma, Int_t dim){
|
|---|
| 55 | for (Int_t i=0;i<dim;i++)
|
|---|
| 56 | fElecNoise[i]=sigma[i];
|
|---|
| 57 | }
|
|---|
| 58 |
|
|---|
| 59 | Float_t GetPedestal(UInt_t i) const { return fPedesMean[i]; }
|
|---|
| 60 | Float_t GetPedestalRms(UInt_t i) const { return fElecNoise[i]; }
|
|---|
| 61 |
|
|---|
| 62 | const UInt_t GetNumPixel() const { return MFADC_CHANNELS; }
|
|---|
| 63 |
|
|---|
| 64 | ClassDef(MMcFadcHeader, 1) //Stores Montecarlo Information
|
|---|
| 65 |
|
|---|
| 66 | };
|
|---|
| 67 |
|
|---|
| 68 | #endif
|
|---|
| 69 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.