ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/NtupleWriter/Objects/PrimaryVertex.h
Revision: 1.3
Committed: Wed May 30 13:20:08 2012 UTC (12 years, 11 months ago) by peiffer
Content type: text/plain
Branch: MAIN
CVS Tags: v1-00, Feb-15-2013-v1, Feb-14-2013, Feb-07-2013-v1, Jan-17-2013-v2, Jan-17-2013-v1, Jan-16-2012-v1, Jan-09-2012-v2, Jan-09-2012-v1, Dec-26-2012-v1, Dec-20-2012-v1, Dec-17-2012-v1, Dec-05-2012-v1, Nov-30-2012-v3, Nov-30-2012-v2, Nov-30-2012-v1, HEAD
Changes since 1.2: +2 -0 lines
Log Message:
rho parameter and some small changes

File Contents

# Content
1 #ifndef PrimaryVertex_H
2 #define PrimaryVertex_H
3
4 class PrimaryVertex{
5
6 public:
7 PrimaryVertex(){
8 m_x=0;
9 m_y=0;
10 m_z=0;
11 m_nTracks=0;
12 //m_isValid=false;
13 m_chi2=0;
14 m_ndof=0;
15
16 };
17
18 ~PrimaryVertex(){
19 };
20
21 float x() const{return m_x;}
22 float y() const{return m_y;}
23 float z() const{return m_z;}
24 unsigned int nTracks() const{return m_nTracks;}
25 float chi2() const{return m_chi2;}
26 float ndof() const{return m_ndof;}
27
28 float rho() const{return sqrt(m_x*m_x+m_y*m_y);}
29
30 void set_x(float x){m_x=x;}
31 void set_y(float x){m_y=x;}
32 void set_z(float x){m_z=x;}
33 void set_nTracks(unsigned int x){m_nTracks=x;}
34 void set_chi2(float x){m_chi2=x;}
35 void set_ndof(float x){m_ndof=x;}
36
37 private:
38 float m_x;
39 float m_y;
40 float m_z;
41 unsigned int m_nTracks;
42 //bool m_isValid;
43 float m_chi2;
44 float m_ndof;
45
46 };
47
48 #endif