source: branches/start/MagicSoft/include-Classes/MMcEvt.h@ 17758

Last change on this file since 17758 was 306, checked in by harald, 25 years ago
This is the start point for the further developments of the Classes for the MAGIC software. Here you find the classes that are used by the Simulation and the Analysis programs. This Classes MRawPixel, MRawEvt and MMcEvt are designed by Thomas Schweizer and Harald Kornmayer. They are using the "root" package from CERN.
File size: 3.6 KB
Line 
1#ifndef __MMcEvt__
2#define __MMcEvt__
3
4#include <stdlib.h>
5#include <stdio.h>
6#include <string.h>
7#include <unistd.h>
8#include <fcntl.h>
9
10#include <iostream.h>
11#include "TObject.h"
12
13
14class MMcEvt : public TObject {
15 private:
16 UShort_t usPartId; // Type of particle
17 Float_t fEnergy; // Energy in GeV
18
19 Float_t fTheta; // Theta angle of event
20 Float_t fPhi; // Phi angle of event
21
22 Float_t fCoreD; // Core d pos
23 Float_t fCoreX; // Core x pos
24 Float_t fCoreY; // Core y pos
25 Float_t fImpact; // impact parameter
26
27 UShort_t usPhotIni; // Initial number of photons
28 UShort_t usPassPhotAtm; // Passed atmosphere
29 UShort_t usPassPhotRef; // Passed reflector
30 UShort_t usPassPhotCone; // Passed glas
31 UShort_t usPhotEl ; // Passed qe
32
33
34 public:
35 MMcEvt() ;
36
37 MMcEvt( UShort_t,
38 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
39 UShort_t, UShort_t, UShort_t, UShort_t, UShort_t ) ;
40
41 ~MMcEvt();
42
43 void Clear();
44
45 void Fill( UShort_t,
46 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
47 UShort_t, UShort_t, UShort_t, UShort_t, UShort_t ) ;
48
49
50 void Print(Option_t *);
51
52
53
54/* Short_t GetPartId() { return usPartId; } //Get Type of particle */
55/* Float_t GetEnergy() { return fEnergy; } //Get Energy */
56
57/* Float_t GetTheta() { return fTheta; } //Get Theta angle */
58/* Float_t GetPhi() { return fPhi ; } //Get Phi angle */
59
60/* Float_t GetCoreD() { return fCoreD; } //Get Core d pos */
61/* Float_t GetCoreX() { return fCoreX; } //Get Core x pos */
62/* Float_t GetCoreY() { return fCoreY; } //Get Core y pos */
63/* Float_t GetImpact() { return fImpact;} //Get impact parameter */
64
65/* Short_t GetPhotIni() { return usPhotIni; } //Get Initial photons */
66/* Short_t GetPassPhotAtm() { return usPassPhotAtm;} //Get Passed atmosphere */
67/* Short_t GetPassPhotRef() { return usPassPhotRef; } //Get Passed reflector */
68/* Short_t GetPassPhotCone() { return usPassPhotCone; } //Get Passed glas */
69/* Short_t GetPhotEl() { return usPhotEl; } //Get Passed qe */
70
71
72
73 /* void SetPartId(Short_t PartId) */
74/* { usPartId=PartId; } //Set Type of particle */
75/* void SetEnergy(Float_t Energy) */
76/* { fEnergy=Energy; } //Set Energy */
77
78/* void SetTheta(Float_t Theta) */
79/* { fTheta=Theta; } //Set Theta angle */
80/* void SetPhi(Float_t Phi) */
81/* { fPhi=Phi; } //Set Phi angle */
82
83/* void SetCoreD(Float_t CoreD) */
84/* { fCoreD=CoreD; } //Set Core d pos */
85/* void SetCoreX(Float_t CoreX) */
86/* { fCoreX=CoreX; } //Set Core x pos */
87/* void SetCoreY(Float_t CoreY ) */
88/* { fCoreY=CoreY; } //Set Core y pos */
89/* void SetImpact(Float_t Impact) */
90/* { fImpact=Impact;} //Set impact parameter */
91
92/* void SetPhotIni(Short_t PhotIni) */
93/* { usPhotIni=PhotIni; } //Set Initial photons */
94/* void SetPassPhotAtm(Short_t PassPhotAtm) */
95/* { usPassPhotAtm=PassPhotAtm;} //Set Passed atmosphere */
96/* void SetPassPhotRef(Short_t PassPhotRef) */
97/* { usPassPhotRef=PassPhotRef ; } //Set Passed reflector */
98/* void SetPassPhotCone(Short_t PhotCon) */
99/* { usPassPhotCone=PhotCon; } //Set Passed glas */
100/* void SetPhotEl(Short_t PhotEl) */
101/* { usPhotEl=PhotEl; } //Set Passed qe */
102
103
104 ClassDef(MMcEvt, 1) //Stores Montecarlo Information
105
106};
107
108#endif
Note: See TracBrowser for help on using the repository browser.