source: trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.cxx@ 4625

Last change on this file since 4625 was 3041, checked in by blanch, 21 years ago
MFADC_RESPONSE_AMPLITUDE variable cahnged to MFADC_RESPONSE_AMPLITUDE
File size: 1.7 KB
Line 
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
15ClassImp(MMcFadcHeader);
16
17using namespace std;
18
19
20MMcFadcHeader::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_INTEGRAL;
33 fFwhmFadc=MFADC_RESPONSE_FWHM;
34 fAmplFadcOuter=MFADC_RESPONSE_INTEGRAL;
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 fDigitalNoise[i]=-1.0 ;
43 }
44}
45
46MMcFadcHeader::~MMcFadcHeader(){
47 //
48 // default destructor
49 //
50}
51
52
53void MMcFadcHeader::Print(Option_t *Option) const {
54 //
55 // print out the data member on screen
56 //
57 cout << endl;
58 cout << "Monte Carlo Fadc output:" << endl;
59 cout << " Shape type of the signal: " << fFadcShape << endl;
60 cout << " FADC integral for sphe [counts*ns]: " << fAmplFadc << endl;
61 cout << " Width of the signal in nsec: " << fFwhmFadc << endl;
62 cout << " Outer FADC integral for sphe [counts*ns]: " << fAmplFadcOuter
63 << endl;
64 cout << " Width of the signal in nsec for outer: " << fFwhmFadcOuter
65 << endl;
66 cout << " Pedestals and ElecNoise in fadc counts: " << endl;
67 for (int i=0;i<MFADC_CHANNELS;i++){
68 cout << " Pixel "<<i<<": "<<fPedesMean[i]<<" "<<fElecNoise[i]<<endl;
69 }
70 cout << endl ;
71}
Note: See TracBrowser for help on using the repository browser.