Main Page
Namespaces
Classes
Package Documentation
DataFormats
Scouting
interface
ScoutingVertex.h
Go to the documentation of this file.
1
#ifndef DataFormats_ScoutingVertex_h
2
#define DataFormats_ScoutingVertex_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
ScoutingVertex
9
{
10
public
:
11
//constructor with values for all data fields
12
ScoutingVertex
(
float
x
,
float
y
,
float
z
,
float
zError
,
float
xError
,
float
yError
,
int
tracksSize
,
float
chi2
,
int
ndof
,
bool
isValidVtx
):
13
x_
(x),
y_
(y),
z_
(z),
zError_
(zError),
xError_
(xError),
yError_
(yError),
tracksSize_
(tracksSize),
chi2_
(chi2),
ndof_
(ndof),
isValidVtx_
(isValidVtx){}
14
//default constructor
15
ScoutingVertex
():
x_
(0),
y_
(0),
z_
(0),
zError_
(0),
xError_
(0),
yError_
(0),
tracksSize_
(0),
chi2_
(0),
ndof_
(0),
isValidVtx_
(0) {}
16
17
//accessor functions
18
float
x
()
const
{
return
x_
; }
19
float
y
()
const
{
return
y_
; }
20
float
z
()
const
{
return
z_
; }
21
float
zError
()
const
{
return
zError_
; }
22
float
xError
()
const
{
return
xError_
; }
23
float
yError
()
const
{
return
yError_
; }
24
int
tracksSize
()
const
{
return
tracksSize_
; }
25
float
chi2
()
const
{
return
chi2_
; }
26
int
ndof
()
const
{
return
ndof_
;}
27
bool
isValidVtx
()
const
{
return
isValidVtx_
;}
28
29
private
:
30
float
x_
;
31
float
y_
;
32
float
z_
;
33
float
zError_
;
34
float
xError_
;
35
float
yError_
;
36
int
tracksSize_
;
37
float
chi2_
;
38
int
ndof_
;
39
bool
isValidVtx_
;
40
};
41
42
typedef
std::vector<ScoutingVertex>
ScoutingVertexCollection
;
43
44
#endif
ScoutingVertex::y_
float y_
Definition:
ScoutingVertex.h:31
ScoutingVertex::x
float x() const
Definition:
ScoutingVertex.h:18
ScoutingVertex::yError_
float yError_
Definition:
ScoutingVertex.h:35
ScoutingVertex::isValidVtx
bool isValidVtx() const
Definition:
ScoutingVertex.h:27
ScoutingVertex::chi2_
float chi2_
Definition:
ScoutingVertex.h:37
ScoutingVertex::isValidVtx_
bool isValidVtx_
Definition:
ScoutingVertex.h:39
ScoutingVertex::x_
float x_
Definition:
ScoutingVertex.h:30
ScoutingVertex::ScoutingVertex
ScoutingVertex()
Definition:
ScoutingVertex.h:15
ScoutingVertex::zError
float zError() const
Definition:
ScoutingVertex.h:21
ScoutingVertexCollection
std::vector< ScoutingVertex > ScoutingVertexCollection
Definition:
ScoutingVertex.h:42
ScoutingVertex::z_
float z_
Definition:
ScoutingVertex.h:32
ScoutingVertex::y
float y() const
Definition:
ScoutingVertex.h:19
ScoutingVertex::ndof
int ndof() const
Definition:
ScoutingVertex.h:26
ScoutingVertex::z
float z() const
Definition:
ScoutingVertex.h:20
ScoutingVertex::tracksSize_
int tracksSize_
Definition:
ScoutingVertex.h:36
ScoutingVertex::xError_
float xError_
Definition:
ScoutingVertex.h:34
ScoutingVertex
Definition:
ScoutingVertex.h:8
ScoutingVertex::xError
float xError() const
Definition:
ScoutingVertex.h:22
ScoutingVertex::yError
float yError() const
Definition:
ScoutingVertex.h:23
ScoutingVertex::ScoutingVertex
ScoutingVertex(float x, float y, float z, float zError, float xError, float yError, int tracksSize, float chi2, int ndof, bool isValidVtx)
Definition:
ScoutingVertex.h:12
ScoutingVertex::tracksSize
int tracksSize() const
Definition:
ScoutingVertex.h:24
ScoutingVertex::zError_
float zError_
Definition:
ScoutingVertex.h:33
ScoutingVertex::chi2
float chi2() const
Definition:
ScoutingVertex.h:25
ScoutingVertex::ndof_
int ndof_
Definition:
ScoutingVertex.h:38
Generated for CMSSW Reference Manual by
1.8.11