ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpEventHeader.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpEventHeader.cc
1 #include "DumpEventHeader.h"
2 
3 #include "DumpObject.h"
4 
6 
7 #include <phool/PHIODataNode.h>
8 
9 #include <ostream>
10 #include <string>
11 
13 
14 DumpEventHeader::DumpEventHeader(const std::string &NodeName)
15  : DumpObject(NodeName)
16 {
17  return;
18 }
19 
21 {
22  EventHeader *eventheader = 0;
23  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
24  if (thisNode)
25  {
26  eventheader = thisNode->getData();
27  }
28  if (eventheader)
29  {
30  *fout << "EventHeader->isValid(): " << eventheader->isValid() << std::endl;
31  if (eventheader->isValid())
32  {
33  *fout << "get_EvtSequence(): " << eventheader->get_EvtSequence() << std::endl;
34  *fout << "get_EvtType(): " << eventheader->get_EvtType() << std::endl;
35  *fout << "get_BunchCrossing(): " << eventheader->get_BunchCrossing() << std::endl;
36  *fout << "get_ncoll(): " << eventheader->get_ncoll() << std::endl;
37  *fout << "get_npart(): " << eventheader->get_npart() << std::endl;
38  *fout << "get_TimeStamp(): " << eventheader->get_TimeStamp() << std::endl;
39  *fout << "get_ImpactParameter(): " << eventheader->get_ImpactParameter() << std::endl;
40  *fout << "get_EventPlaneAngle(): " << eventheader->get_EventPlaneAngle() << std::endl;
41  *fout << "get_eccentricity(): " << eventheader->get_eccentricity() << std::endl;
42  }
43  }
44  return 0;
45 }