ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/Vertex.h
Revision: 1.3
Committed: Mon Jul 7 15:32:28 2008 UTC (16 years, 10 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: MITHEP_2_0_x
Changes since 1.2: +2 -1 lines
Log Message:
added phi accessor

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.3 // $Id: Vertex.h,v 1.2 2008/06/30 16:54:40 loizides Exp $
3 loizides 1.1 //
4     // Vertex
5     //
6     // Vertex class implemented as holding a 3d vector as a point in space.
7     //
8     // Authors: J.Bendavid
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef DATATREE_VERTEX_H
12     #define DATATREE_VERTEX_H
13    
14     #include "MitAna/DataTree/interface/DataObject.h"
15    
16     namespace mithep
17     {
18     class Vertex : public DataObject
19     {
20     public:
21 loizides 1.2 Vertex() : fPoint(0,0,0) {}
22 loizides 1.1 Vertex(Double_t x, Double_t y, Double_t z) : fPoint(x,y,z) {}
23     ~Vertex() {}
24    
25 bendavid 1.3 Double_t Phi() const { return fPoint.Phi(); }
26 loizides 1.1 Double_t Rho() const { return fPoint.Rho(); }
27     void SetXYZ(Double_t x, Double_t y, Double_t z) { fPoint.SetXYZ(x,y,z); }
28     Double_t X() const { return fPoint.X(); }
29     Double_t Y() const { return fPoint.Y(); }
30     Double_t Z() const { return fPoint.Z(); }
31    
32     protected:
33     ThreeVector fPoint; //point in space
34    
35     ClassDef(Vertex, 1) // Vertex class
36     };
37     }
38     #endif