Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TpcTpotEventInfo.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TpcTpotEventInfo.h
1 
7 #ifndef TRACKBASE_TPCTPOTEVENTINFO_H
8 #define TRACKBASE_TPCTPOTEVENTINFO_H
9 
10 #include "TrkrDefs.h"
11 
12 #include <phool/PHObject.h>
13 
14 #include <climits>
15 #include <cmath>
16 #include <iostream>
17 #include <memory>
18 
19 
26 class TpcTpotEventInfo : public PHObject
27 {
28  public:
29 
31  ~TpcTpotEventInfo() override = default;
32 
33  // PHObject virtual overloads
34  void identify(std::ostream& os = std::cout) const override
35  {
36  os << "TpcTpotEventInfo base class" << std::endl;
37  }
38  void Reset() override {}
39  int isValid() const override { return 0; }
40 
41 
43  using PHObject::CopyFrom;
44 
46  virtual void CopyFrom( const TpcTpotEventInfo& )
47  {}
48 
50  virtual void CopyFrom( TpcTpotEventInfo* )
51  {}
52 
53  //
54  // event tagger info
55  //
56 
62  // TPC has sectors 0..23, TPOT uses index 24 in this storage
64  enum TaggerID {kLVL1Tagger = 0, kEnDatTagger = 1} ;
65 
67  {}
68 
69  virtual uint64_t getBCO(SectorID, PCIeEndPointID, TaggerID) const { return UINT64_MAX; }
70  virtual void setBCO(uint64_t, SectorID, PCIeEndPointID, TaggerID) {}
71  virtual uint32_t getLevel1Count(SectorID, PCIeEndPointID, TaggerID) const { return UINT32_MAX; }
72  virtual void setLevel1Count(uint32_t, SectorID, PCIeEndPointID, TaggerID) {}
73  virtual uint32_t getEnDatCount(SectorID, PCIeEndPointID, TaggerID) const { return UINT32_MAX; }
74  virtual void setEnDatCount(uint32_t, SectorID, PCIeEndPointID, TaggerID) {}
75  virtual uint64_t getLastBCO(SectorID, PCIeEndPointID, TaggerID) const { return UINT64_MAX; }
76  virtual void setLastBCO(uint64_t, SectorID, PCIeEndPointID, TaggerID) {}
77  virtual uint8_t getModebits(SectorID, PCIeEndPointID, TaggerID) const { return UINT8_MAX; }
78  virtual void setModebits(uint8_t, SectorID, PCIeEndPointID, TaggerID) {}
79 
80  protected:
81  TpcTpotEventInfo() = default;
82  ClassDefOverride(TpcTpotEventInfo, 1)
83 };
84 
85 #endif //TRACKBASE_TRKRCLUSTER_H