GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Events.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004 by Olivier Stezowski *
3  * stezow(AT)ipnl.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
23 #ifndef GW_GWEVENTS_H
24 #define GW_GWEVENTS_H
25 
26 #ifndef ROOT_Rtypes
27 #include "Rtypes.h"
28 #endif
29 
30 #ifndef ROOT_TObject
31 #include "TObject.h"
32 #endif
33 
34 
35 namespace GwD {
36 
43 class EPoint : public TObject
44 {
45 private:
46  Float_t E; // Energy
47 
48  Float_t X; // X position
49  Float_t Y; // Y position
50  Float_t Z; // Z position
51 
52 public:
53  EPoint();
54  virtual ~EPoint() {;}
55 
56  virtual void Clear(Option_t *);
57 
58  virtual void Set(Float_t e, Float_t x, Float_t y, Float_t z) { E=e; X=x; Y=y; Z=z; }
59 
61  ClassDef(EPoint,1); // A 3D point associated with an energy
62 };
63 
64 class TrackedGamma : public TObject
65 {
66 private:
67  Float_t E; // Energy
68 
69  Float_t Theta1; // Theta first impact
70  Float_t Phi1; // Phi first impact
71  Float_t Theta2; // Theta second impact
72  Float_t Phi2; // Phi second impact
73 
74 public:
75  TrackedGamma() : E(0.0) , Theta1(0.0), Phi1(0.0), Theta2(0.0), Phi2(0.0) {;}
76  virtual ~TrackedGamma() {;}
77 
78  virtual void Set(Float_t e, Float_t t1, Float_t p1, Float_t t2, Float_t p2) {E=e; Theta1=t1; Phi1=p1; Theta2=t2; Phi2=p2;}
79 
81  ClassDef(TrackedGamma,1); // Base for single tracked gamma
82 };
83 
84 } // namespace GammaWare
85 
86 #endif
virtual void Set(Float_t e, Float_t x, Float_t y, Float_t z)
Definition: Events.h:58
ClassDef(TrackedGamma, 1)
Root dictionary related.
virtual ~TrackedGamma()
Definition: Events.h:76
virtual void Clear(Option_t *)
Definition: Events.cpp:40
virtual ~EPoint()
Definition: Events.h:54
ClassDef(EPoint, 1)
Root dictionary related.
virtual void Set(Float_t e, Float_t t1, Float_t p1, Float_t t2, Float_t p2)
Definition: Events.h:78