Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef FUN4ALLRAW_MVTXRAWHITV1_H
0002 #define FUN4ALLRAW_MVTXRAWHITV1_H
0003 
0004 #include "MvtxRawHit.h"
0005 
0006 #include <limits>
0007 
0008 class MvtxRawHitv1 : public MvtxRawHit
0009 {
0010  public:
0011   MvtxRawHitv1() {}
0012   MvtxRawHitv1(MvtxRawHit *mvtxhit);
0013   ~MvtxRawHitv1() override {};
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   uint32_t get_strobe_bc() const override { return strobe_bc; }
0025   // cppcheck-suppress virtualCallInConstructor
0026   void set_strobe_bc(const uint32_t val) override { strobe_bc = val; }
0027 
0028   uint32_t get_chip_bc() const override { return chip_bc; }
0029   // cppcheck-suppress virtualCallInConstructor
0030   void set_chip_bc(const uint32_t val) override { chip_bc = val; }
0031 
0032   uint8_t get_layer_id() const override { return layer_id; }
0033   // cppcheck-suppress virtualCallInConstructor
0034   void set_layer_id(uint8_t val) override { layer_id = val; }
0035 
0036   uint8_t get_stave_id() const override { return stave_id; }
0037   // cppcheck-suppress virtualCallInConstructor
0038   void set_stave_id(uint8_t val) override { stave_id = val; }
0039 
0040   uint8_t get_chip_id() const override { return chip_id; }
0041   // cppcheck-suppress virtualCallInConstructor
0042   void set_chip_id(uint8_t val) override { chip_id = val; }
0043 
0044   uint16_t get_row() const override { return row; }
0045   // cppcheck-suppress virtualCallInConstructor
0046   void set_row(uint16_t val) override { row = val; }
0047 
0048   uint16_t get_col() const override { return col; }
0049   // cppcheck-suppress virtualCallInConstructor
0050   void set_col(uint16_t val) override { col = val; }
0051 
0052  protected:
0053   uint64_t bco = std::numeric_limits<uint64_t>::max();
0054   uint32_t strobe_bc = std::numeric_limits<uint32_t>::max();
0055   uint32_t chip_bc = std::numeric_limits<uint32_t>::max();
0056   uint8_t layer_id = std::numeric_limits<uint8_t>::max();
0057   uint8_t stave_id = std::numeric_limits<uint8_t>::max();
0058   uint8_t chip_id = std::numeric_limits<uint8_t>::max();
0059   uint16_t row = std::numeric_limits<uint16_t>::max();
0060   uint16_t col = std::numeric_limits<uint16_t>::max();
0061 
0062   ClassDefOverride(MvtxRawHitv1, 1)
0063 };
0064 
0065 #endif