ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/Vertex.hh
Revision: 1.4
Committed: Thu May 5 15:09:04 2011 UTC (14 years ago) by agilbert
Content type: text/plain
Branch: MAIN
CVS Tags: beforeMETHacks, v00-05-03
Changes since 1.3: +2 -0 lines
Log Message:
Write track pt vector for each vertex

File Contents

# Content
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_.trackpT.clear();
40 vtx_.chi2 = 0;
41 vtx_.ndof = 0;
42 vtx_.x = 0;
43 vtx_.y = 0;
44 vtx_.z = 0;
45 vtx_.rho = 0;
46 vtx_.xError = 0;
47 vtx_.yError = 0;
48 vtx_.zError = 0;
49 vtx_.cov01 = 0;
50 vtx_.cov02 = 0;
51 vtx_.cov12 = 0;
52 };
53
54 inline void print(std::ostream & aOs){
55
56 aOs << "=======================================================" << std::endl
57 << "================== Print Vertex ==================" << std::endl
58 << "=======================================================" << std::endl
59 << "====== size of trackWeights = " << vtx_.trackWeights.size() << std::endl
60 << "====== size of trackpT = " << vtx_.trackpT.size() << std::endl
61 << "====== chi2 = " << vtx_.chi2 << std::endl
62 << "====== ndof = " << vtx_.ndof << std::endl
63 << "====== x = " << vtx_.x << std::endl
64 << "====== y = " << vtx_.y << std::endl
65 << "====== z = " << vtx_.z << std::endl
66 << "====== rho = " << vtx_.rho << std::endl
67 << "====== xError = " << vtx_.xError << std::endl
68 << "====== yError = " << vtx_.yError << std::endl
69 << "====== zError = " << vtx_.zError << std::endl
70 << "====== cov01 = " << vtx_.cov01 << std::endl
71 << "====== cov02 = " << vtx_.cov02 << std::endl
72 << "====== cov12 = " << vtx_.cov12 << std::endl
73 << "=======================================================" << std::endl;
74
75
76 };
77
78 private:
79
80 HbbAnalysis::VertexVars vtx_;
81
82 };
83
84 }//namespace
85 #endif