File indexing completed on 2025-08-05 08:16:20
0001
0002
0003
0004 #include "PHRawDataNode.h"
0005
0006 #include "PHRawOManager.h"
0007
0008 #include <phool/PHDataNode.h> // for PHDataNode
0009 #include <phool/PHIOManager.h>
0010
0011 #include <Event/phenixTypes.h>
0012
0013 PHRawDataNode::PHRawDataNode(PHDWORD* d, const std::string& n,
0014 const int l, const int i, const int w, const int h)
0015 : PHDataNode<PHDWORD>(d, n)
0016 , length(l)
0017 , ID(i)
0018 , wordLength(w)
0019 , hitFormat(h)
0020 {
0021 }
0022
0023 PHRawDataNode::~PHRawDataNode()
0024 {
0025
0026
0027
0028 setData(nullptr);
0029 }
0030
0031 bool PHRawDataNode::write(PHIOManager* IOManager, const std::string& )
0032 {
0033 PHRawOManager* rawOManager = dynamic_cast<PHRawOManager*>(IOManager);
0034 bool bret = false;
0035 if (rawOManager)
0036 {
0037 bret = rawOManager->write(this);
0038 }
0039
0040 return bret;
0041 }