source: trunk/Mars/mmc/MMcTrigHeader.cxx@ 20000

Last change on this file since 20000 was 7880, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#include "MMcTrigHeader.hxx"
2
3#include <iostream>
4
5
6//==========
7// MMcTrigHeader
8//
9// This class contains the MonteCarlo information
10// of the trigger simulation for the current run.
11// The information is saved only once, whatever the
12// number of events is
13//
14// This is the second version of this output class. Old root files, which have
15// a previous version of this class, are still compatibles and can be used.
16// But of course, you can no try to get infromatino in these old files about
17// the new data members.
18//
19// The following data member have been introduced in this second version
20// and they do not exist in the previous one:
21//
22// Float_t fElecNoiseTrig; The width of the gaussian noise is that times
23// the amplitude of the single phe response
24// for the trigger
25//
26// Version 4
27// Added data members fGainFluctuations and fNoiseGainFluctuations
28//
29//
30/////////////////////////
31
32ClassImp(MMcTrigHeader);
33
34using namespace std;
35
36
37MMcTrigHeader::MMcTrigHeader() {
38 //
39 // default constructor
40 // set all values to zero
41
42 Int_t i;
43
44 fTopology = -1 ;
45 fMultiplicity = -1 ;
46 for(i=0;i<CAMERA_PIXELS;i++){
47 fThreshold[i] = -1.0;
48 }
49
50 fTrigPattern[0]=0;
51 fTrigPattern[1]=0;
52
53 fTrigShape=0.0;
54 fAmplTrig=RESPONSE_AMPLITUDE;
55 fFwhmTrig=RESPONSE_FWHM;
56 fOverlapingTime=TRIGGER_OVERLAPING;
57 fGateLeng=TRIGGER_GATE ;
58}
59
60void MMcTrigHeader::Print(Option_t *opt) const {
61 //
62 // print out the data member on screen
63 //
64 cout << endl;
65 cout << "Monte Carlo Trigger output:" << endl;
66 cout << " XSTopology Trigger in this run: " << fTopology << endl;
67 cout << " Multiplicity Trigger in this run: " << fMultiplicity << endl;
68 cout << " Trigger Pattern in this run: ";
69 cout << fTrigPattern[0] << ", " << fTrigPattern[1] << endl;
70 cout << endl;
71}
Note: See TracBrowser for help on using the repository browser.