Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef FUN4ALLRAW_INTTRAWHITV1_H
0002 #define FUN4ALLRAW_INTTRAWHITV1_H
0003 
0004 #include "InttRawHit.h"
0005 
0006 #include <limits>
0007 
0008 class InttRawHitv1 : public InttRawHit
0009 {
0010  public:
0011   InttRawHitv1() = default;
0012   InttRawHitv1(InttRawHit *intthit);
0013   ~InttRawHitv1() override = default;
0014 
0015   /** identify Function from PHObject
0016       @param os Output Stream
0017    */
0018   void identify(std::ostream &os = std::cout) const override;
0019 
0020   uint64_t get_bco() const override { return bco; }
0021   // cppcheck-suppress virtualCallInConstructor
0022   void set_bco(const uint64_t val) override { bco = val; }
0023 
0024   int32_t get_packetid() const override { return packetid; }
0025   // cppcheck-suppress virtualCallInConstructor
0026   void set_packetid(const int32_t val) override { packetid = val; }
0027 
0028   uint32_t get_word() const override { return word; }
0029   // cppcheck-suppress virtualCallInConstructor
0030   void set_word(uint32_t val) override { word = val; }
0031 
0032   uint16_t get_fee() const override { return fee; }
0033   // cppcheck-suppress virtualCallInConstructor
0034   void set_fee(uint16_t val) override { fee = val; }
0035 
0036   uint16_t get_channel_id() const override { return channel_id; }
0037   // cppcheck-suppress virtualCallInConstructor
0038   void set_channel_id(uint16_t val) override { channel_id = val; }
0039 
0040   uint16_t get_chip_id() const override { return chip_id; }
0041   // cppcheck-suppress virtualCallInConstructor
0042   void set_chip_id(uint16_t val) override { chip_id = val; }
0043 
0044   uint16_t get_adc() const override { return adc; }
0045   // cppcheck-suppress virtualCallInConstructor
0046   void set_adc(uint16_t val) override { adc = val; }
0047 
0048   uint16_t get_FPHX_BCO() const override { return FPHX_BCO; }
0049   // cppcheck-suppress virtualCallInConstructor
0050   void set_FPHX_BCO(uint16_t val) override { FPHX_BCO = val; }
0051 
0052   uint16_t get_full_FPHX() const override { return full_FPHX; }
0053   // cppcheck-suppress virtualCallInConstructor
0054   void set_full_FPHX(uint16_t val) override { full_FPHX = val; }
0055 
0056   uint16_t get_full_ROC() const override { return full_ROC; }
0057   // cppcheck-suppress virtualCallInConstructor
0058   void set_full_ROC(uint16_t val) override { full_ROC = val; }
0059 
0060   uint16_t get_amplitude() const override { return amplitude; }
0061   // cppcheck-suppress virtualCallInConstructor
0062   void set_amplitude(uint16_t val) override { amplitude = val; }
0063 
0064  protected:
0065   uint64_t bco = std::numeric_limits<uint64_t>::max();
0066   int32_t packetid = std::numeric_limits<int32_t>::max();
0067   uint32_t word = std::numeric_limits<uint32_t>::max();
0068   uint16_t fee = std::numeric_limits<uint16_t>::max();
0069   uint16_t channel_id = std::numeric_limits<uint16_t>::max();
0070   uint16_t chip_id = std::numeric_limits<uint16_t>::max();
0071   uint16_t adc = std::numeric_limits<uint16_t>::max();
0072   uint16_t FPHX_BCO = std::numeric_limits<uint16_t>::max();
0073   uint16_t full_FPHX = std::numeric_limits<uint16_t>::max();
0074   uint16_t full_ROC = std::numeric_limits<uint16_t>::max();
0075   uint16_t amplitude = std::numeric_limits<uint16_t>::max();
0076 
0077   ClassDefOverride(InttRawHitv1, 1)
0078 };
0079 
0080 #endif