ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHRawDataNode.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHRawDataNode.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef PHOOLRAW_PHRAWDATANODE_H
4 #define PHOOLRAW_PHRAWDATANODE_H
5 
6 // Declaration of class PHRawDataNode
7 // Purpose: Node digested by the PHRawOManager
8 // Author: Matthias Messer
9 
10 #include <phool/PHDataNode.h>
11 
12 #include <Event/phenixTypes.h>
13 
14 #include <string>
15 
16 class PHIOManager;
17 
18 class PHRawDataNode : public PHDataNode<PHDWORD>
19 {
20  public:
21  PHRawDataNode(PHDWORD *, const std::string &, const int, const int, const int, const int);
22  virtual ~PHRawDataNode();
23 
24  public:
25  virtual bool write(PHIOManager *, const std::string & = "");
26 
27  int getLength() const { return length; }
28  int getID() const { return ID; }
29  int getWordLength() const { return wordLength; }
30  int getHitFormat() const { return hitFormat; }
31  void setLength(const int val) { length = val; }
32  void setID(const int val) { ID = val; }
33  void setWordLength(const int val) { wordLength = val; }
34  void setHitFormat(const int val) { hitFormat = val; }
35 
36  private:
37  PHRawDataNode() = delete;
38  int length;
39  int ID;
41  int hitFormat;
42 };
43 
44 #endif