source: trunk/MagicSoft/include-Classes/MMcTrig.cxx@ 394

Last change on this file since 394 was 394, checked in by blanch, 25 years ago
It contains threshold, multiplicity and topology of the analysed trigger configuration and pixel and time of FirstLevel trigger
File size: 1.4 KB
Line 
1#include <iostream.h>
2#include "MMcTrig.hxx"
3
4
5//==========
6// MMcTrig
7//
8// This class handles and contains the MonteCarlo information
9// with which the events have been generated
10// This information exists for each event.
11
12
13
14ClassImp(MMcTrig)
15
16
17
18MMcTrig::MMcTrig() {
19 //
20 // default constructor
21 // set all values to zero
22
23 Int_t i;
24
25 topology = -1 ;
26 multiplicity = -1 ;
27 for(i=0;i<TRIGGER_PIXELS;i++){
28 threshold[i] = -1.0;
29 }
30
31 nFirstLevel = 0 ;
32 timeFirst = -99.9;
33 pixelFirst = -9;
34
35 nSecondLevel = 0 ;
36
37}
38
39MMcTrig::~MMcTrig() {
40 //
41 // default destructor
42 //
43}
44
45void MMcTrig::Clear() {
46 //
47 //
48 // reset all values to zero
49 Int_t i;
50
51 nFirstLevel = 0 ;
52 timeFirst = -99.9;
53 pixelFirst = -9;
54
55 nSecondLevel = 0 ;
56
57 // cout << "MMcTrig::Clear() " << endl ;
58}
59
60void MMcTrig::Print(Option_t *Option) {
61 //
62 // print out the data member on screen
63 //
64 Int_t i;
65
66 cout <<endl << "Monte Carlo Trigger output:" <<endl;
67 cout << " Topology Trigger in this event : "<<topology<<endl;
68 cout << " Multiplicity Trigger in this event : "<<multiplicity<<endl;
69 cout << " First Level Trigger in this Event : "<<nFirstLevel<<endl;
70 cout << " Time of first Level Trigger in this Event : "<< timeFirst<<endl;
71 cout << " Pixels of first Level Trigger in this Event : "<<pixelFirst<<endl;
72 cout << " Second Level Trigger in this Event : " << nSecondLevel << endl ;
73 cout << endl ;
74}
Note: See TracBrowser for help on using the repository browser.