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

Last change on this file since 991 was 991, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#include "MMcFadcHeader.hxx"
2
3#include <iostream.h>
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
17
18
19MMcFadcHeader::MMcFadcHeader() {
20 //
21 // default constructor
22 // set all values to zero
23
24 Int_t i;
25
26 fFadcShape=0.0;
27 fAmplFadc=MFADC_RESPONSE_AMPLITUDE;
28 fFwhmFadc=MFADC_RESPONSE_FWHM;
29
30 for(i=0;i<MFADC_CHANNELS;i++){
31 fPedesMean[i]= 0.0 ;
32 fElecNoise[i]=-1.0 ;
33 }
34}
35
36MMcFadcHeader::~MMcFadcHeader(){
37 //
38 // default destructor
39 //
40}
41
42
43void MMcFadcHeader::Print(Option_t *Option) const {
44 //
45 // print out the data member on screen
46 //
47 cout << endl;
48 cout << "Monte Carlo Fadc output:" << endl;
49 cout << " Shape type of the signal: " << fFadcShape << endl;
50 cout << " Amplitude of the trigger in mV: " << fAmplFadc << endl;
51 cout << " Width of the signal in nsec: " << fFwhmFadc << endl;
52 cout << " Pedestals and ElecNoise in fadc counts: " << endl;
53 for (int i=0;i<MFADC_CHANNELS;i++){
54 cout << " Pixel "<<i<<": "<<fPedesMean[i]<<" "<<fElecNoise[i]<<endl;
55 }
56 cout << endl ;
57}
Note: See TracBrowser for help on using the repository browser.