Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SingleMicromegasPoolInput.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SingleMicromegasPoolInput.h
1 #ifndef FUN4ALLRAW_SINGLEMICROMEGASPOOLINPUT_H
2 #define FUN4ALLRAW_SINGLEMICROMEGASPOOLINPUT_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 Fun4AllEvtInputPoolManager;
14 class MicromegasRawHit;
15 class Packet;
16 
18 {
19  public:
20  explicit SingleMicromegasPoolInput(const std::string &name = "SingleMicromegasPoolInput");
21  ~SingleMicromegasPoolInput() override;
22  void FillPool(const unsigned int nevents = 1) override;
23  void CleanupUsedPackets(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 
29  void SetBcoRange(const unsigned int value) { m_BcoRange = value; }
30  void ConfigureStreamingInputManager() override;
31  void SetNegativeBco(const unsigned int value) { m_NegativeBco = value; }
32 
33  private:
34  Packet **plist{nullptr};
35  unsigned int m_NumSpecialEvents{0};
36  unsigned int m_BcoRange{0};
37  unsigned int m_NegativeBco{0};
38 
39  std::map<uint64_t, std::set<int>> m_BeamClockFEE;
40  std::map<uint64_t, std::vector<MicromegasRawHit *>> m_MicromegasRawHitMap;
41  std::map<int, uint64_t> m_FEEBclkMap;
42  std::set<uint64_t> m_BclkStack;
43 
46  {
47  public:
49  std::list<uint64_t> gtm_bco_list;
50 
52  unsigned int fee_bco{0};
53 
55  uint64_t gtm_bco{0};
56  };
57 
59  static constexpr unsigned short m_max_fee{26};
60 
62  std::array<bco_alignment_t, m_max_fee> m_bco_alignment_list;
63 };
64 
65 #endif