Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SingleTpcPoolInput.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SingleTpcPoolInput.h
1 #ifndef FUN4ALLRAW_SINGLETPCPOOLINPUT_H
2 #define FUN4ALLRAW_SINGLETPCPOOLINPUT_H
3 
4 #include "SingleStreamingInput.h"
5 
6 #include <array>
7 #include <list>
8 #include <map>
9 #include <set>
10 #include <string>
11 #include <vector>
12 
13 class TpcRawHit;
14 class Packet;
15 
17 {
18  public:
19  explicit SingleTpcPoolInput(const std::string &name);
20  ~SingleTpcPoolInput() override;
21  void FillPool(const unsigned int) override;
22  void CleanupUsedPackets(const uint64_t bclk) override;
23  bool CheckPoolDepth(const uint64_t bclk) override;
24  void ClearCurrentEvent() override;
25  bool GetSomeMoreEvents();
26  void Print(const std::string &what = "ALL") const override;
27  void CreateDSTNode(PHCompositeNode *topNode) override;
28  void SetBcoRange(const unsigned int i) {m_BcoRange = i;}
29  void ConfigureStreamingInputManager() override;
30  void SetNegativeBco(const unsigned int value) { m_NegativeBco = value; }
31 
32  private:
33  Packet **plist {nullptr};
34  unsigned int m_NumSpecialEvents {0};
35  unsigned int m_BcoRange {0};
36  unsigned int m_NegativeBco{0};
37 
39  std::map<unsigned int, uint64_t> m_packet_bco;
40 
41  std::map<uint64_t, std::set<int>> m_BeamClockFEE;
42  std::map<uint64_t, std::vector<TpcRawHit *>> m_TpcRawHitMap;
43  std::map<int, uint64_t> m_FEEBclkMap;
44  std::set<uint64_t> m_BclkStack;
45 };
46 
47 #endif