1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: Muon.h,v 1.4 2008/06/11 13:48:37 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() {}
|
22 |
|
|
Vertex(Double_t x, Double_t y, Double_t z) : fPoint(x,y,z) {}
|
23 |
|
|
~Vertex() {}
|
24 |
|
|
|
25 |
|
|
Double_t Rho() const { return fPoint.Rho(); }
|
26 |
|
|
void SetXYZ(Double_t x, Double_t y, Double_t z) { fPoint.SetXYZ(x,y,z); }
|
27 |
|
|
Double_t X() const { return fPoint.X(); }
|
28 |
|
|
Double_t Y() const { return fPoint.Y(); }
|
29 |
|
|
Double_t Z() const { return fPoint.Z(); }
|
30 |
|
|
|
31 |
|
|
protected:
|
32 |
|
|
ThreeVector fPoint; //point in space
|
33 |
|
|
|
34 |
|
|
ClassDef(Vertex, 1) // Vertex class
|
35 |
|
|
};
|
36 |
|
|
}
|
37 |
|
|
#endif
|