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 |
|
|
/** Constructors */
|
15 |
|
|
|
16 |
|
|
Vertex(){
|
17 |
|
|
};
|
18 |
|
|
|
19 |
|
|
~Vertex(){};
|
20 |
|
|
|
21 |
|
|
Vertex(const HbbAnalysis::VertexVars & aVtx){
|
22 |
|
|
vtxVars(aVtx);
|
23 |
|
|
};
|
24 |
|
|
|
25 |
|
|
inline const HbbAnalysis::VertexVars & vtxVars() const {
|
26 |
|
|
return vtx_;
|
27 |
|
|
};
|
28 |
|
|
|
29 |
|
|
inline void vtxVars(const HbbAnalysis::VertexVars & aVtx) {
|
30 |
|
|
vtx_ = aVtx;
|
31 |
|
|
};
|
32 |
|
|
|
33 |
agilbert |
1.5 |
void Clear();
|
34 |
amagnan |
1.1 |
|
35 |
amagnan |
1.2 |
inline void print(std::ostream & aOs){
|
36 |
|
|
|
37 |
|
|
aOs << "=======================================================" << std::endl
|
38 |
|
|
<< "================== Print Vertex ==================" << std::endl
|
39 |
|
|
<< "=======================================================" << std::endl
|
40 |
agilbert |
1.5 |
<< "====== sumpPtSq = " << vtx_.sumPtSq << std::endl
|
41 |
amagnan |
1.2 |
<< "====== chi2 = " << vtx_.chi2 << std::endl
|
42 |
|
|
<< "====== ndof = " << vtx_.ndof << std::endl
|
43 |
|
|
<< "====== x = " << vtx_.x << std::endl
|
44 |
|
|
<< "====== y = " << vtx_.y << std::endl
|
45 |
|
|
<< "====== z = " << vtx_.z << std::endl
|
46 |
amagnan |
1.3 |
<< "====== rho = " << vtx_.rho << std::endl
|
47 |
amagnan |
1.2 |
<< "====== xError = " << vtx_.xError << std::endl
|
48 |
|
|
<< "====== yError = " << vtx_.yError << std::endl
|
49 |
|
|
<< "====== zError = " << vtx_.zError << std::endl
|
50 |
|
|
<< "====== cov01 = " << vtx_.cov01 << std::endl
|
51 |
|
|
<< "====== cov02 = " << vtx_.cov02 << std::endl
|
52 |
|
|
<< "====== cov12 = " << vtx_.cov12 << std::endl
|
53 |
|
|
<< "=======================================================" << std::endl;
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
};
|
57 |
|
|
|
58 |
amagnan |
1.1 |
private:
|
59 |
|
|
|
60 |
|
|
HbbAnalysis::VertexVars vtx_;
|
61 |
|
|
|
62 |
|
|
};
|
63 |
|
|
|
64 |
|
|
}//namespace
|
65 |
|
|
#endif
|