Last change
on this file since 368 was 354, checked in by harald, 25 years ago |
This is the status of this directory as it was at the time of the general
MAGIC meeting in Barcelona.
A new class MMcTrig is introduced in which the output of the Trigger is stored.
This is the very first attempt of this class.
|
File size:
1.0 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 |
|
---|
14 | ClassImp(MMcTrig)
|
---|
15 |
|
---|
16 |
|
---|
17 |
|
---|
18 | MMcTrig::MMcTrig() {
|
---|
19 | //
|
---|
20 | // default constructor
|
---|
21 | // set all values to zero
|
---|
22 |
|
---|
23 | nZeroLevel = 0 ;
|
---|
24 | nFirstLevel = 0 ;
|
---|
25 | nSecondLevel = 0 ;
|
---|
26 | }
|
---|
27 |
|
---|
28 | MMcTrig::~MMcTrig() {
|
---|
29 | //
|
---|
30 | // default destructor
|
---|
31 | //
|
---|
32 | }
|
---|
33 |
|
---|
34 | void MMcTrig::Clear() {
|
---|
35 | //
|
---|
36 | //
|
---|
37 | // reset all values to zero
|
---|
38 |
|
---|
39 | nZeroLevel = 0 ;
|
---|
40 | nFirstLevel = 0 ;
|
---|
41 | nSecondLevel = 0 ;
|
---|
42 |
|
---|
43 | // cout << "MMcTrig::Clear() " << endl ;
|
---|
44 | }
|
---|
45 |
|
---|
46 | void MMcTrig::Print(Option_t *Option) {
|
---|
47 | //
|
---|
48 | // print out the data member on screen
|
---|
49 | //
|
---|
50 | cout <<endl << "Monte Carlo Trigger output:" <<endl;
|
---|
51 | cout << " Zero Level Trigger in this Event : " << nZeroLevel << endl ;
|
---|
52 | cout << " First Level Trigger in this Event : " << nFirstLevel << endl ;
|
---|
53 | cout << " Second Level Trigger in this Event : " << nSecondLevel << endl ;
|
---|
54 | cout << endl ;
|
---|
55 | }
|
---|
56 |
|
---|
57 |
|
---|
58 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.