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

Last change on this file since 943 was 693, checked in by magicsol, 24 years ago
The pedestal member array has been changed from UChar_t to Float_t.
File size: 1.2 KB
Line 
1#include <iostream.h>
2#include "MMcFadcHeader.hxx"
3
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) {
44 //
45 // print out the data member on screen
46 //
47
48 cout <<endl << "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.