Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MvtxRawEvtHeaderv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MvtxRawEvtHeaderv1.h
1 #ifndef FUN4ALLRAW_MVTXRAWEVTHEADERV1_H
2 #define FUN4ALLRAW_MVTXRAWEVTHEADERV1_H
3 
4 #include "MvtxRawEvtHeader.h"
5 
6 #include <phool/PHObject.h>
7 
8 #include <cstdint>
9 #include <set>
10 
12 {
13 
14 public:
15  MvtxRawEvtHeaderv1() = default;
16  ~MvtxRawEvtHeaderv1() = default;
17 
19  void Reset() override;
20 
24  void identify(std::ostream &os = std::cout) const override;
25 
27  int isValid() const override;
28 
29  void AddFeeId(const int& feeid) override { m_MvtxFeeIdSet.insert(feeid); };
30  void AddL1Trg(const uint64_t& gtmL1_bco) override { m_MvtxL1TrgSet.insert(gtmL1_bco); };
31 
32  void AddFeeId(const std::set<uint16_t>& mvtxFeeIds) override;
33  void AddL1Trg(const std::set<uint64_t>& mvtxL1TrgSet) override;
34 
35  std::set<uint16_t>& getMvtxFeeIdSet() override { return m_MvtxFeeIdSet; };
36  std::set<uint64_t>& getMvtxLvL1BCO() override { return m_MvtxL1TrgSet; };
37 
38 private:
39  std::set<uint16_t> m_MvtxFeeIdSet;
40  std::set<uint64_t> m_MvtxL1TrgSet;
41 
42  ClassDefOverride(MvtxRawEvtHeaderv1, 1)
43 };
44 
45 #endif