Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DumpInttRawHitContainer.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DumpInttRawHitContainer.cc
2 
3 #include <phool/PHIODataNode.h>
4 
7 
8 #include <ostream>
9 #include <string>
10 
12 
14  : DumpObject(NodeName)
15 {
16  return;
17 }
18 
20 {
21  InttRawHitContainer *inttrawhitcontainer = nullptr;
22  MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
23  if (thisNode)
24  {
25  inttrawhitcontainer = thisNode->getData();
26  }
27  if (inttrawhitcontainer)
28  {
29  unsigned int nhits = inttrawhitcontainer->get_nhits();
30  *fout << "size: " << inttrawhitcontainer->get_nhits() << std::endl;
31  for (unsigned int ihit = 0; ihit < nhits; ihit++)
32  {
33  InttRawHit *rawhit = inttrawhitcontainer->get_hit(ihit);
34  *fout << "bco: " << rawhit->get_bco() << std::endl;
35  *fout << "packetid: " << rawhit->get_packetid() << std::endl;
36  *fout << "word: " << rawhit->get_word() << std::endl;
37  *fout << "fee: " << rawhit->get_fee() << std::endl;
38  *fout << "channel_id: " << rawhit->get_channel_id() << std::endl;
39  *fout << "chip_id: " << rawhit->get_chip_id() << std::endl;
40  *fout << "adc: " << rawhit->get_adc() << std::endl;
41  *fout << "FPHX_BCO: " << rawhit->get_FPHX_BCO() << std::endl;
42  *fout << "full_FPHX: " << rawhit->get_full_FPHX() << std::endl;
43  *fout << "full_ROC: " << rawhit->get_full_ROC() << std::endl;
44  *fout << "amplitude: " << rawhit->get_amplitude() << std::endl;
45  }
46  }
47  return 0;
48 }