Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InttVertexv1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file InttVertexv1.cc
1 #include "InttVertexv1.h"
2 
3 #include <cmath>
4 
5 void InttVertexv1::identify(std::ostream& os) const
6 {
7  os << "---InttVertexv1--------------------------------" << std::endl;
8  os << "vertexid: " << get_id() << std::endl;
9  os << " z = " << get_z() << " +/- " << get_z_err() << std::endl;
10  os << "-----------------------------------------------" << std::endl;
11 
12  return;
13 }
14 
16 {
17  if (_id == std::numeric_limits<unsigned int>::max())
18  {
19  return 0;
20  }
21  if (isnan(_z))
22  {
23  return 0;
24  }
25  if (isnan(_z_err))
26  {
27  return 0;
28  }
29 
30  return 1;
31 }