Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
MbdVertexv1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MbdVertexv1.cc
1
#include "
MbdVertexv1.h
"
2
3
#include <cmath>
4
5
using namespace
std;
6
7
MbdVertexv1::MbdVertexv1
()
8
: _id(0xFFFFFFFF)
9
, _t(NAN)
10
, _t_err(NAN)
11
, _z(NAN)
12
, _z_err(NAN)
13
{
14
}
15
16
MbdVertexv1::~MbdVertexv1
() =
default
;
17
18
void
MbdVertexv1::identify
(ostream&
os
)
const
19
{
20
os <<
"---MbdVertexv1--------------------------------"
<< endl;
21
os <<
"vertexid: "
<<
get_id
() << endl;
22
os <<
" t = "
<<
get_t
() <<
" +/- "
<<
get_t_err
() << endl;
23
os <<
" z = "
<<
get_z
() <<
" +/- "
<<
get_z_err
() << endl;
24
os <<
"-----------------------------------------------"
<< endl;
25
26
return
;
27
}
28
29
int
MbdVertexv1::isValid
()
const
30
{
31
if
(
_id
== 0xFFFFFFFF)
32
{
33
return
0;
34
}
35
if
(isnan(
_t
))
36
{
37
return
0;
38
}
39
if
(isnan(
_t_err
))
40
{
41
return
0;
42
}
43
if
(isnan(
_z
))
44
{
45
return
0;
46
}
47
if
(isnan(
_z_err
))
48
{
49
return
0;
50
}
51
52
return
1;
53
}
coresoftware
blob
master
offline
packages
globalvertex
MbdVertexv1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:06
using
1.8.2 with
sPHENIX GitHub integration