Last change
on this file since 674 was 610, checked in by magicsol, 24 years ago |
Output class, which has information about the FADC properties (shape response,
pedestals, electronic noise, ...) that has been used in the MC simulation.
|
File size:
1.5 KB
|
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 SetMean(Float_t *mean, Int_t dim){
|
---|
50 | for (Int_t i=0;i<dim;i++)
|
---|
51 | fPedesMean[i]=mean[i];
|
---|
52 | }
|
---|
53 |
|
---|
54 | void SetSigma(Float_t *sigma, Int_t dim){
|
---|
55 | for (Int_t i=0;i<dim;i++)
|
---|
56 | fElecNoise[i]=sigma[i];
|
---|
57 | }
|
---|
58 |
|
---|
59 | ClassDef(MMcFadcHeader, 1) //Stores Montecarlo Information
|
---|
60 |
|
---|
61 | };
|
---|
62 |
|
---|
63 | #endif
|
---|
64 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.