File indexing completed on 2025-08-06 08:17:55
0001 #include "DumpMvtxRawHitContainer.h"
0002
0003 #include <phool/PHIODataNode.h>
0004
0005 #include <ffarawobjects/MvtxRawHit.h>
0006 #include <ffarawobjects/MvtxRawHitContainer.h>
0007
0008 #include <ostream>
0009 #include <string>
0010
0011 using MyNode_t = PHIODataNode<MvtxRawHitContainer>;
0012
0013 DumpMvtxRawHitContainer::DumpMvtxRawHitContainer(const std::string &NodeName)
0014 : DumpObject(NodeName)
0015 {
0016 return;
0017 }
0018
0019 int DumpMvtxRawHitContainer::process_Node(PHNode *myNode)
0020 {
0021 MvtxRawHitContainer *mvtxrawhitcontainer = nullptr;
0022 MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);
0023 if (thisNode)
0024 {
0025 mvtxrawhitcontainer = thisNode->getData();
0026 }
0027 if (mvtxrawhitcontainer)
0028 {
0029 unsigned int nhits = mvtxrawhitcontainer->get_nhits();
0030 *fout << "size: " << mvtxrawhitcontainer->get_nhits() << std::endl;
0031 for (unsigned int ihit = 0; ihit < nhits; ihit++)
0032 {
0033 MvtxRawHit *rawhit = mvtxrawhitcontainer->get_hit(ihit);
0034 *fout << "bco: " << rawhit->get_bco() << std::endl;
0035 *fout << "strobe_bc: " << rawhit->get_strobe_bc() << std::endl;
0036 *fout << "chip_bc: " << rawhit->get_chip_bc() << std::endl;
0037 *fout << "layer_id: " << rawhit->get_layer_id() << std::endl;
0038 *fout << "stave_id: " << rawhit->get_stave_id() << std::endl;
0039 *fout << "chip_id: " << rawhit->get_chip_id() << std::endl;
0040 *fout << "row: " << rawhit->get_row() << std::endl;
0041 *fout << "col: " << rawhit->get_col() << std::endl;
0042 }
0043 }
0044 return 0;
0045 }