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

Last change on this file since 2203 was 2173, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.4 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_AMPLITUDE;
33 fFwhmFadc=MFADC_RESPONSE_FWHM;
34
35 for(i=0;i<MFADC_CHANNELS;i++){
36 fPedesMean[i]= 0.0 ;
37 fElecNoise[i]=-1.0 ;
38 }
39}
40
41MMcFadcHeader::~MMcFadcHeader(){
42 //
43 // default destructor
44 //
45}
46
47
48void MMcFadcHeader::Print(Option_t *Option) const {
49 //
50 // print out the data member on screen
51 //
52 cout << endl;
53 cout << "Monte Carlo Fadc output:" << endl;
54 cout << " Shape type of the signal: " << fFadcShape << endl;
55 cout << " Amplitude of the trigger in mV: " << fAmplFadc << endl;
56 cout << " Width of the signal in nsec: " << fFwhmFadc << endl;
57 cout << " Pedestals and ElecNoise in fadc counts: " << endl;
58 for (int i=0;i<MFADC_CHANNELS;i++){
59 cout << " Pixel "<<i<<": "<<fPedesMean[i]<<" "<<fElecNoise[i]<<endl;
60 }
61 cout << endl ;
62}
Note: See TracBrowser for help on using the repository browser.