DataFormats
Scouting
interface
Run3ScoutingVertex.h
Go to the documentation of this file.
1
#ifndef DataFormats_Run3ScoutingVertex_h
2
#define DataFormats_Run3ScoutingVertex_h
3
4
#include <vector>
5
6
//class for holding vertex information, for use in data scouting
7
//IMPORTANT: the content of this class should be changed only in backwards compatible ways!
8
class
Run3ScoutingVertex
{
9
public
:
10
//constructor with values for all data fields
11
Run3ScoutingVertex
(
float
x
,
12
float
y
,
13
float
z
,
14
float
zError
,
15
float
xError
,
16
float
yError
,
17
int
tracksSize
,
18
float
chi2
,
19
int
ndof
,
20
bool
isValidVtx
)
21
:
x_
(
x
),
22
y_
(
y
),
23
z_
(
z
),
24
zError_
(
zError
),
25
xError_
(
xError
),
26
yError_
(
yError
),
27
tracksSize_
(
tracksSize
),
28
chi2_
(
chi2
),
29
ndof_
(
ndof
),
30
isValidVtx_
(
isValidVtx
) {}
31
//default constructor
32
Run3ScoutingVertex
()
33
:
x_
(0),
34
y_
(0),
35
z_
(0),
36
zError_
(0),
37
xError_
(0),
38
yError_
(0),
39
tracksSize_
(0),
40
chi2_
(0),
41
ndof_
(0),
42
isValidVtx_
(
false
) {}
43
44
//accessor functions
45
float
x
()
const
{
return
x_
; }
46
float
y
()
const
{
return
y_
; }
47
float
z
()
const
{
return
z_
; }
48
float
zError
()
const
{
return
zError_
; }
49
float
xError
()
const
{
return
xError_
; }
50
float
yError
()
const
{
return
yError_
; }
51
int
tracksSize
()
const
{
return
tracksSize_
; }
52
float
chi2
()
const
{
return
chi2_
; }
53
int
ndof
()
const
{
return
ndof_
; }
54
bool
isValidVtx
()
const
{
return
isValidVtx_
; }
55
56
private
:
57
float
x_
;
58
float
y_
;
59
float
z_
;
60
float
zError_
;
61
float
xError_
;
62
float
yError_
;
63
int
tracksSize_
;
64
float
chi2_
;
65
int
ndof_
;
66
bool
isValidVtx_
;
67
};
68
69
typedef
std::vector<Run3ScoutingVertex>
Run3ScoutingVertexCollection
;
70
71
#endif
Run3ScoutingVertexCollection
std::vector< Run3ScoutingVertex > Run3ScoutingVertexCollection
Definition:
Run3ScoutingVertex.h:69
Run3ScoutingVertex::y_
float y_
Definition:
Run3ScoutingVertex.h:58
funct::false
false
Definition:
Factorize.h:29
Run3ScoutingVertex::yError_
float yError_
Definition:
Run3ScoutingVertex.h:62
Run3ScoutingVertex::ndof
int ndof() const
Definition:
Run3ScoutingVertex.h:53
Run3ScoutingVertex::yError
float yError() const
Definition:
Run3ScoutingVertex.h:50
Run3ScoutingVertex::zError_
float zError_
Definition:
Run3ScoutingVertex.h:60
Run3ScoutingVertex::xError
float xError() const
Definition:
Run3ScoutingVertex.h:49
Run3ScoutingVertex::x
float x() const
Definition:
Run3ScoutingVertex.h:45
Run3ScoutingVertex::xError_
float xError_
Definition:
Run3ScoutingVertex.h:61
Run3ScoutingVertex::Run3ScoutingVertex
Run3ScoutingVertex(float x, float y, float z, float zError, float xError, float yError, int tracksSize, float chi2, int ndof, bool isValidVtx)
Definition:
Run3ScoutingVertex.h:11
Run3ScoutingVertex::isValidVtx_
bool isValidVtx_
Definition:
Run3ScoutingVertex.h:66
Run3ScoutingVertex::isValidVtx
bool isValidVtx() const
Definition:
Run3ScoutingVertex.h:54
Run3ScoutingVertex::x_
float x_
Definition:
Run3ScoutingVertex.h:57
Run3ScoutingVertex::chi2
float chi2() const
Definition:
Run3ScoutingVertex.h:52
Run3ScoutingVertex::y
float y() const
Definition:
Run3ScoutingVertex.h:46
Run3ScoutingVertex::z_
float z_
Definition:
Run3ScoutingVertex.h:59
Run3ScoutingVertex
Definition:
Run3ScoutingVertex.h:8
Run3ScoutingVertex::tracksSize_
int tracksSize_
Definition:
Run3ScoutingVertex.h:63
Run3ScoutingVertex::Run3ScoutingVertex
Run3ScoutingVertex()
Definition:
Run3ScoutingVertex.h:32
Run3ScoutingVertex::tracksSize
int tracksSize() const
Definition:
Run3ScoutingVertex.h:51
Run3ScoutingVertex::chi2_
float chi2_
Definition:
Run3ScoutingVertex.h:64
Run3ScoutingVertex::ndof_
int ndof_
Definition:
Run3ScoutingVertex.h:65
Run3ScoutingVertex::z
float z() const
Definition:
Run3ScoutingVertex.h:47
Run3ScoutingVertex::zError
float zError() const
Definition:
Run3ScoutingVertex.h:48
Generated for CMSSW Reference Manual by
1.8.14