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

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: Vertex.h,v 1.2 2008/06/30 16:54:40 loizides Exp $
3 //
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 Vertex() : fPoint(0,0,0) {}
22 Vertex(Double_t x, Double_t y, Double_t z) : fPoint(x,y,z) {}
23 ~Vertex() {}
24
25 Double_t Phi() const { return fPoint.Phi(); }
26 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