CMS 3D CMS Logo

GflashObjects.h

Go to the documentation of this file.
00001 #ifndef GflashObjects_H
00002 #define GflashObjects_H
00003 
00004 #include <TObject.h>
00005 #include <TVector3.h>
00006 #include <TLorentzVector.h>
00007 #include <vector>
00008 
00009 class GflashHit : public TObject {
00010 
00011  public:
00012   GflashHit() { Init(); }
00013   ~GflashHit() { Init(); }
00014 
00015   double energy;
00016   TVector3 position;
00017 
00018   void Init() {
00019     energy = 0.0;
00020     position.SetXYZ(0,0,0);
00021   }
00022 
00023   ClassDef(GflashHit,1)
00024 };
00025 
00026 class GflashObject : public TObject {
00027 
00028  public:
00029   GflashObject() { Init(); }
00030   ~GflashObject() { Init(); }
00031   double   energy;
00032   TVector3 direction;
00033   TVector3 position;
00034   std::vector<GflashHit> hits;
00035 
00036   void Init() {
00037     energy = 0.0;
00038     direction.SetXYZ(0,0,0);
00039     position.SetXYZ(0,0,0);
00040     hits.clear();
00041   }
00042   ClassDef(GflashObject,1)
00043 };
00044 
00045 #endif

Generated on Tue Jun 9 17:47:04 2009 for CMSSW by  doxygen 1.5.4