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

Last change on this file since 617 was 611, checked in by magicsol, 24 years ago
It has the needed member functions for the class that is discribed in MMcFadcHeader.hxx
File size: 1015 bytes
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]=-1.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 << endl ;
53}
Note: See TracBrowser for help on using the repository browser.