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

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