1 | #include "MMcFadcHeader.hxx"
|
---|
2 |
|
---|
3 | #include <iostream>
|
---|
4 |
|
---|
5 | //==========
|
---|
6 | // MMcFadcHeader
|
---|
7 | //
|
---|
8 | // This class contains the MonteCarlo information
|
---|
9 | // of the FADC simulation for the current run.
|
---|
10 | // The information is saved only once, whatever the
|
---|
11 | // number of events is
|
---|
12 |
|
---|
13 |
|
---|
14 |
|
---|
15 | ClassImp(MMcFadcHeader);
|
---|
16 |
|
---|
17 | using namespace std;
|
---|
18 |
|
---|
19 |
|
---|
20 | MMcFadcHeader::MMcFadcHeader(const char *name, const char *title) {
|
---|
21 | //
|
---|
22 | // default constructor
|
---|
23 |
|
---|
24 | fName = name ? name : "MMcFadcHeader";
|
---|
25 | fTitle = title ? title : "Fadc Header Information from Monte Carlo";
|
---|
26 |
|
---|
27 | // set all values to zero
|
---|
28 |
|
---|
29 | Int_t i;
|
---|
30 |
|
---|
31 | fFadcShape=0.0;
|
---|
32 | fAmplFadc=MFADC_RESPONSE_AMPLITUDE;
|
---|
33 | fFwhmFadc=MFADC_RESPONSE_FWHM;
|
---|
34 | fAmplFadcOuter=MFADC_RESPONSE_AMPLITUDE;
|
---|
35 | fFwhmFadcOuter=MFADC_RESPONSE_FWHM;
|
---|
36 |
|
---|
37 | for(i=0;i<MFADC_CHANNELS;i++){
|
---|
38 | fPedesMean[i]= 0.0 ;
|
---|
39 | fPedesSigmaHigh[i]=-1.0 ;
|
---|
40 | fPedesSigmaLow[i]=-1.0 ;
|
---|
41 | fElecNoise[i]=-1.0 ;
|
---|
42 | }
|
---|
43 | }
|
---|
44 |
|
---|
45 | MMcFadcHeader::~MMcFadcHeader(){
|
---|
46 | //
|
---|
47 | // default destructor
|
---|
48 | //
|
---|
49 | }
|
---|
50 |
|
---|
51 |
|
---|
52 | void MMcFadcHeader::Print(Option_t *Option) const {
|
---|
53 | //
|
---|
54 | // print out the data member on screen
|
---|
55 | //
|
---|
56 | cout << endl;
|
---|
57 | cout << "Monte Carlo Fadc output:" << endl;
|
---|
58 | cout << " Shape type of the signal: " << fFadcShape << endl;
|
---|
59 | cout << " FADC integral for sphe [counts*ns]: " << fAmplFadc << endl;
|
---|
60 | cout << " Width of the signal in nsec: " << fFwhmFadc << endl;
|
---|
61 | cout << " Outer FADC integral for sphe [counts*ns]: " << fAmplFadcOuter
|
---|
62 | << endl;
|
---|
63 | cout << " Width of the signal in nsec for outer: " << fFwhmFadcOuter
|
---|
64 | << endl;
|
---|
65 | cout << " Pedestals and ElecNoise in fadc counts: " << endl;
|
---|
66 | for (int i=0;i<MFADC_CHANNELS;i++){
|
---|
67 | cout << " Pixel "<<i<<": "<<fPedesMean[i]<<" "<<fElecNoise[i]<<endl;
|
---|
68 | }
|
---|
69 | cout << endl ;
|
---|
70 | }
|
---|