Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:16:20

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef PHOOLRAW_PHRAWDATANODE_H
0004 #define PHOOLRAW_PHRAWDATANODE_H
0005 
0006 //  Declaration of class PHRawDataNode
0007 //  Purpose: Node digested by the PHRawOManager
0008 //  Author: Matthias Messer
0009 
0010 #include <phool/PHDataNode.h>
0011 
0012 #include <Event/phenixTypes.h>
0013 
0014 #include <string>
0015 
0016 class PHIOManager;
0017 
0018 class PHRawDataNode : public PHDataNode<PHDWORD>
0019 {
0020  public:
0021   PHRawDataNode(PHDWORD *, const std::string &, const int, const int, const int, const int);
0022   virtual ~PHRawDataNode();
0023 
0024  public:
0025   virtual bool write(PHIOManager *, const std::string & = "");
0026 
0027   int getLength() const { return length; }
0028   int getID() const { return ID; }
0029   int getWordLength() const { return wordLength; }
0030   int getHitFormat() const { return hitFormat; }
0031   void setLength(const int val) { length = val; }
0032   void setID(const int val) { ID = val; }
0033   void setWordLength(const int val) { wordLength = val; }
0034   void setHitFormat(const int val) { hitFormat = val; }
0035 
0036  private:
0037   PHRawDataNode() = delete;
0038   int length;
0039   int ID;
0040   int wordLength;
0041   int hitFormat;
0042 };
0043 
0044 #endif