source: trunk/MagicSoft/include-Classes/MHeaderTrig.cxx@ 482

Last change on this file since 482 was 436, checked in by harald, 24 years ago
Added a lot of changes done by oscar.
File size: 1020 bytes
Line 
1#include <iostream.h>
2#include "MHeaderTrig.hxx"
3
4
5//==========
6// MHeaderTrig
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(MHeaderTrig)
16
17
18
19MHeaderTrig::MHeaderTrig() {
20 //
21 // default constructor
22 // set all values to zero
23
24 Int_t i;
25
26 topology = -1 ;
27 multiplicity = -1 ;
28 for(i=0;i<TRIGGER_PIXELS;i++){
29 threshold[i] = -1.0;
30 }
31
32 TriggerPattern[0]=0;
33 TriggerPattern[1]=0;
34
35}
36
37MHeaderTrig::~MHeaderTrig() {
38 //
39 // default destructor
40 //
41}
42
43
44void MHeaderTrig::Print(Option_t *Option) {
45 //
46 // print out the data member on screen
47 //
48
49 cout <<endl << "Monte Carlo Trigger output:" <<endl;
50 cout << " XSTopology Trigger in this run : "<<topology<<endl;
51 cout << " Multiplicity Trigger in this run : "<<multiplicity<<endl;
52 cout << " Trigger Pattern in this run : "<<TriggerPattern[0]<<
53 TriggerPattern[1]<<endl;
54 cout << endl ;
55}
Note: See TracBrowser for help on using the repository browser.