source: trunk/MagicSoft/include-Classes/MMcFormat/MMcTrigHeader.cxx@ 682

Last change on this file since 682 was 613, checked in by magicsol, 24 years ago
It comes from MHeaderTrig and has the member function fro the class described in MMcTrigHeader.hxx
File size: 1.1 KB
Line 
1#include <iostream.h>
2#include "MMcTrigHeader.hxx"
3
4
5//==========
6// MMcTrigHeader
7//
8// This class contains the MonteCarlo information
9// of the trigger simulation for the current run.
10// The information is saved only once, whatever the
11// number of events is
12
13
14
15ClassImp(MMcTrigHeader)
16
17
18
19MMcTrigHeader::MMcTrigHeader() {
20 //
21 // default constructor
22 // set all values to zero
23
24 Int_t i;
25
26 fTopology = -1 ;
27 fMultiplicity = -1 ;
28 for(i=0;i<TRIGGER_PIXELS;i++){
29 fThreshold[i] = -1.0;
30 }
31
32 fTrigPattern[0]=0;
33 fTrigPattern[1]=0;
34
35 fTrigShape=0.0;
36 fAmplTrig=RESPONSE_AMPLITUDE;
37 fFwhmTrig=RESPONSE_FWHM;
38 fOverlapingTime=TRIGGER_OVERLAPING;
39 fGateLeng=TRIGGER_GATE ;
40}
41
42MMcTrigHeader::~MMcTrigHeader() {
43 //
44 // default destructor
45 //
46}
47
48
49void MMcTrigHeader::Print(Option_t *Option) {
50 //
51 // print out the data member on screen
52 //
53
54 cout <<endl << "Monte Carlo Trigger output:" <<endl;
55 cout << " XSTopology Trigger in this run : "<<fTopology<<endl;
56 cout << " Multiplicity Trigger in this run : "<<fMultiplicity<<endl;
57 cout << " Trigger Pattern in this run : "<<fTrigPattern[0]<<
58 fTrigPattern[1]<<endl;
59 cout << endl ;
60}
Note: See TracBrowser for help on using the repository browser.