Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:16:08

0001 #ifndef FUN4ALLPACKET_LL1PACKETCONTAINERV1_H
0002 #define FUN4ALLPACKET_LL1PACKETCONTAINERV1_H
0003 
0004 #include "LL1PacketContainer.h"
0005 
0006 class LL1Packet;
0007 class TClonesArray;
0008 
0009 class LL1PacketContainerv1 : public LL1PacketContainer
0010 {
0011  public:
0012   LL1PacketContainerv1();
0013   ~LL1PacketContainerv1() override;
0014 
0015   /// Clear Event
0016   void Reset() override;
0017 
0018   /** identify Function from PHObject
0019       @param os Output Stream
0020    */
0021   void identify(std::ostream &os = std::cout) const override;
0022 
0023   /// isValid returns non zero if object contains vailid data
0024   int isValid() const override;
0025 
0026   LL1Packet *AddPacket() override;
0027   LL1Packet *AddPacket(LL1Packet *ll1packet) override;
0028   unsigned int get_npackets() override;
0029   LL1Packet *getPacket(unsigned int index) override;
0030   LL1Packet *getPacketbyId(int id) override;
0031   void setEvtSequence(const int i) override { eventno = i; }
0032   int getEvtSequence() const override { return eventno; }
0033   void setStatus(const unsigned int ui) override { status = ui; }
0034   unsigned int getStatus() const override { return status; }
0035 
0036  private:
0037   TClonesArray *LL1PacketsTCArray{nullptr};
0038   int eventno{std::numeric_limits<int>::min()};
0039   unsigned int status{0};
0040 
0041   ClassDefOverride(LL1PacketContainerv1, 2)
0042 };
0043 
0044 #endif