Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:15

0001 #ifndef FUN4ALLRAW_OFFLINEPACKETV1_H
0002 #define FUN4ALLRAW_OFFLINEPACKETV1_H
0003 
0004 #include "OfflinePacket.h"
0005 
0006 #include <limits>
0007 
0008 class OfflinePacketv1 : public OfflinePacket
0009 {
0010  public:
0011   OfflinePacketv1() = default;
0012   OfflinePacketv1(OfflinePacket *);
0013   ~OfflinePacketv1() override = default;
0014   void Reset() override;
0015   void identify(std::ostream &os = std::cout) const override;
0016   void FillFrom(const OfflinePacket *pkt) override;
0017 
0018   int getIdentifier() const override { return packetid; }
0019   // cppcheck-suppress virtualCallInConstructor
0020   void setIdentifier(const int i) override { packetid = i; }
0021   int getHitFormat() const override { return hitformat; }
0022   void setHitFormat(const int i) override { hitformat = i; }
0023   // cppcheck-suppress virtualCallInConstructor
0024   int getEvtSequence() const override { return evtseq; }
0025   // cppcheck-suppress virtualCallInConstructor
0026   void setEvtSequence(const int i) override { evtseq = i; }
0027   uint64_t getBCO() const override { return bco; }
0028   // cppcheck-suppress virtualCallInConstructor
0029   void setBCO(const uint64_t ui) override { bco = ui; }
0030   uint64_t getStatus() const override { return status; }
0031   void setStatus(const uint64_t lval) override { status = lval; }
0032 
0033  protected:
0034   int evtseq{std::numeric_limits<int>::min()};
0035   int hitformat{std::numeric_limits<int>::min()};
0036   int packetid{std::numeric_limits<int>::min()};
0037   uint64_t bco{std::numeric_limits<uint64_t>::max()};
0038   uint64_t status{OfflinePacket::NOTSET};
0039 
0040  private:
0041   ClassDefOverride(OfflinePacketv1, 2)
0042 };
0043 
0044 #endif