ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/NtupleWriter/Objects/PrimaryVertex.h
Revision: 1.2
Committed: Wed May 23 09:10:59 2012 UTC (12 years, 11 months ago) by peiffer
Content type: text/plain
Branch: MAIN
Changes since 1.1: +6 -6 lines
Log Message:
getters const

File Contents

# User Rev Content
1 peiffer 1.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 peiffer 1.2 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 peiffer 1.1
28     void set_x(float x){m_x=x;}
29     void set_y(float x){m_y=x;}
30     void set_z(float x){m_z=x;}
31     void set_nTracks(unsigned int x){m_nTracks=x;}
32     void set_chi2(float x){m_chi2=x;}
33     void set_ndof(float x){m_ndof=x;}
34    
35     private:
36     float m_x;
37     float m_y;
38     float m_z;
39     unsigned int m_nTracks;
40     //bool m_isValid;
41     float m_chi2;
42     float m_ndof;
43    
44     };
45    
46     #endif