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 | fElecNoise[i]=-1.0 ;
|
---|
40 | }
|
---|
41 | }
|
---|
42 |
|
---|
43 | MMcFadcHeader::~MMcFadcHeader(){
|
---|
44 | //
|
---|
45 | // default destructor
|
---|
46 | //
|
---|
47 | }
|
---|
48 |
|
---|
49 |
|
---|
50 | void MMcFadcHeader::Print(Option_t *Option) const {
|
---|
51 | //
|
---|
52 | // print out the data member on screen
|
---|
53 | //
|
---|
54 | cout << endl;
|
---|
55 | cout << "Monte Carlo Fadc output:" << endl;
|
---|
56 | cout << " Shape type of the signal: " << fFadcShape << endl;
|
---|
57 | cout << " FADC integral for sphe [counts*ns]: " << fAmplFadc << endl;
|
---|
58 | cout << " Width of the signal in nsec: " << fFwhmFadc << endl;
|
---|
59 | cout << " Outer FADC integral for sphe [counts*ns]: " << fAmplFadcOuter
|
---|
60 | << endl;
|
---|
61 | cout << " Width of the signal in nsec for outer: " << fFwhmFadcOuter
|
---|
62 | << endl;
|
---|
63 | cout << " Pedestals and ElecNoise in fadc counts: " << endl;
|
---|
64 | for (int i=0;i<MFADC_CHANNELS;i++){
|
---|
65 | cout << " Pixel "<<i<<": "<<fPedesMean[i]<<" "<<fElecNoise[i]<<endl;
|
---|
66 | }
|
---|
67 | cout << endl ;
|
---|
68 | }
|
---|