ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BbcVertexv1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BbcVertexv1.cc
1 #include "BbcVertexv1.h"
2 
3 #include <cmath>
4 
5 using namespace std;
6 
8  : _id(0xFFFFFFFF)
9  , _t(NAN)
10  , _t_err(NAN)
11  , _z(NAN)
12  , _z_err(NAN)
13 {
14 }
15 
17 
18 void BbcVertexv1::identify(ostream& os) const
19 {
20  os << "---BbcVertexv1--------------------------------" << 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 
30 {
31  if (_id == 0xFFFFFFFF) return 0;
32  if (isnan(_t)) return 0;
33  if (isnan(_t_err)) return 0;
34  if (isnan(_z)) return 0;
35  if (isnan(_z_err)) return 0;
36 
37  return 1;
38 }