Last change
on this file since 13961 was 324, checked in by harald, 25 years ago |
This is the start point for the development of this
Statisic Information about MONte carlo Events
S I MON E
|
File size:
1.3 KB
|
Line | |
---|
1 | #include <iostream.h>
|
---|
2 | #include "MSimone.hxx"
|
---|
3 | //==========
|
---|
4 | // MSimone
|
---|
5 | //
|
---|
6 | // This class handles and contains the MonteCarlo information
|
---|
7 | // with which the events have been generated
|
---|
8 | // This information exists for each event.
|
---|
9 |
|
---|
10 | //ClassImp(MSimone)
|
---|
11 |
|
---|
12 |
|
---|
13 |
|
---|
14 | MSimone::MSimone() {
|
---|
15 | //
|
---|
16 | // default constructor
|
---|
17 | // set all values to zero
|
---|
18 |
|
---|
19 | PartId = 0 ;
|
---|
20 | Energy = 0. ;
|
---|
21 |
|
---|
22 | Theta = 0. ;
|
---|
23 | Phi = 0. ;
|
---|
24 |
|
---|
25 | CoreD = 0. ;
|
---|
26 | CoreX = 0. ;
|
---|
27 | CoreY = 0. ;
|
---|
28 |
|
---|
29 | FirstInt = 0. ;
|
---|
30 | }
|
---|
31 |
|
---|
32 | MSimone::~MSimone() {
|
---|
33 | //
|
---|
34 | // default destructor
|
---|
35 | //
|
---|
36 | }
|
---|
37 |
|
---|
38 |
|
---|
39 |
|
---|
40 |
|
---|
41 | void MSimone::Clear() {
|
---|
42 | //
|
---|
43 | //
|
---|
44 | // reset all values to zero
|
---|
45 |
|
---|
46 | PartId = 0. ;
|
---|
47 | Energy = 0. ;
|
---|
48 |
|
---|
49 | Theta = 0. ;
|
---|
50 | Phi = 0. ;
|
---|
51 |
|
---|
52 | CoreD = 0. ;
|
---|
53 | CoreX = 0. ;
|
---|
54 | CoreY = 0. ;
|
---|
55 |
|
---|
56 | FirstInt= 0. ;
|
---|
57 | }
|
---|
58 |
|
---|
59 |
|
---|
60 | void MSimone::Print(void) {
|
---|
61 | //
|
---|
62 | // print out the data member on screen
|
---|
63 | //
|
---|
64 | cout <<endl << "Monte Carlo output:" <<endl;
|
---|
65 | cout << " Particle Id : " << PartId ;
|
---|
66 | cout << " Energy (GeV) : " << Energy ;
|
---|
67 | cout << endl ;
|
---|
68 | }
|
---|
69 |
|
---|
70 |
|
---|
71 | void MSimone::Transfer( COREventHeader *e )
|
---|
72 | {
|
---|
73 | PartId = e->PrimaryID;
|
---|
74 | Energy = e->Etotal;
|
---|
75 |
|
---|
76 | Theta = e->Theta;
|
---|
77 | Phi = e->Phi;
|
---|
78 |
|
---|
79 | FirstInt = e->zFirstInt;
|
---|
80 | }
|
---|
81 |
|
---|
82 |
|
---|
83 | void MSimone::NtupFill( TNtuple *n )
|
---|
84 | {
|
---|
85 | n->Fill(PartId,Energy,Theta,Phi) ;
|
---|
86 | }
|
---|
87 |
|
---|
88 |
|
---|
89 |
|
---|
90 |
|
---|
91 |
|
---|
92 |
|
---|
93 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.