ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/Vertex.hh
Revision: 1.3
Committed: Mon Oct 25 11:03:44 2010 UTC (14 years, 6 months ago) by amagnan
Content type: text/plain
Branch: MAIN
CVS Tags: v00-05-02
Changes since 1.2: +2 -0 lines
Log Message:
add vertex rho and ak7 jet collection to tree

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