File indexing completed on 2025-08-05 08:18:08
0001 #include "PHG4EventHeaderv1.h"
0002
0003 #include <cmath>
0004
0005 using namespace std;
0006
0007 PHG4EventHeaderv1::PHG4EventHeaderv1()
0008 : evtseq(-9999)
0009 , bimp(NAN)
0010 , rplane(NAN)
0011 {
0012 }
0013
0014 int PHG4EventHeaderv1::isValid() const
0015 {
0016 if (evtseq > 0)
0017 {
0018 return 1;
0019 }
0020 return 0;
0021 }
0022
0023 void PHG4EventHeaderv1::Reset()
0024 {
0025 evtseq = -9999;
0026 bimp = NAN;
0027 rplane = NAN;
0028 }
0029
0030 void PHG4EventHeaderv1::identify(std::ostream& os) const
0031 {
0032 os << "identify yourself: PHG4EventHeaderv1: evtseq: "
0033 << evtseq << ", bimp: " << bimp << ", rplane angle: " << rplane
0034 << endl;
0035 }