ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/Vertex.hh
Revision: 1.2
Committed: Thu Feb 18 17:27:34 2010 UTC (15 years, 2 months ago) by amagnan
Content type: text/plain
Branch: MAIN
CVS Tags: v00-05-01, v00-05-00, HbbAnaFor35X, v00-04-02, v00-04-01, v00-04-00
Changes since 1.1: +22 -0 lines
Log Message:
bug in vertices loop

File Contents

# User Rev Content
1 amagnan 1.1 #ifndef HbbAnalysis_Vertex_hh
2     #define HbbAnalysis_Vertex_hh
3    
4     #include <vector>
5     #include <string>
6    
7     #include "UserCode/HbbAnalysis/interface/Objects.hh"
8    
9     namespace HbbAnalysis {
10    
11     class Vertex {
12    
13     public:
14    
15    
16     /** Constructors */
17    
18     Vertex(){
19     //Clear();
20     };
21    
22     ~Vertex(){};
23    
24     Vertex(const HbbAnalysis::VertexVars & aVtx){
25     Clear();
26     vtxVars(aVtx);
27     };
28    
29     inline const HbbAnalysis::VertexVars & vtxVars() const {
30     return vtx_;
31     };
32    
33     inline void vtxVars(const HbbAnalysis::VertexVars & aVtx) {
34     vtx_ = aVtx;
35     };
36    
37     inline void Clear(){
38     vtx_.trackWeights.clear();
39     vtx_.chi2 = 0;
40     vtx_.ndof = 0;
41     vtx_.x = 0;
42     vtx_.y = 0;
43     vtx_.z = 0;
44     vtx_.xError = 0;
45     vtx_.yError = 0;
46     vtx_.zError = 0;
47     vtx_.cov01 = 0;
48     vtx_.cov02 = 0;
49     vtx_.cov12 = 0;
50     };
51    
52 amagnan 1.2 inline void print(std::ostream & aOs){
53    
54     aOs << "=======================================================" << std::endl
55     << "================== Print Vertex ==================" << std::endl
56     << "=======================================================" << std::endl
57     << "====== size of trackWeights = " << vtx_.trackWeights.size() << std::endl
58     << "====== chi2 = " << vtx_.chi2 << std::endl
59     << "====== ndof = " << vtx_.ndof << std::endl
60     << "====== x = " << vtx_.x << std::endl
61     << "====== y = " << vtx_.y << std::endl
62     << "====== z = " << vtx_.z << std::endl
63     << "====== xError = " << vtx_.xError << std::endl
64     << "====== yError = " << vtx_.yError << std::endl
65     << "====== zError = " << vtx_.zError << std::endl
66     << "====== cov01 = " << vtx_.cov01 << std::endl
67     << "====== cov02 = " << vtx_.cov02 << std::endl
68     << "====== cov12 = " << vtx_.cov12 << std::endl
69     << "=======================================================" << std::endl;
70    
71    
72     };
73    
74 amagnan 1.1 private:
75    
76     HbbAnalysis::VertexVars vtx_;
77    
78     };
79    
80     }//namespace
81     #endif