Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InttRawHitv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file InttRawHitv1.h
1 #ifndef FUN4ALLRAW_INTTRAWHITV1_H
2 #define FUN4ALLRAW_INTTRAWHITV1_H
3 
4 #include "InttRawHit.h"
5 
6 #include <limits>
7 
8 
9 class InttRawHitv1: public InttRawHit
10 {
11 
12 
13 public:
14  InttRawHitv1() = default;
15  InttRawHitv1(InttRawHit *intthit);
16  ~InttRawHitv1() override = default;
17 
21  void identify(std::ostream &os = std::cout) const override;
22 
23  uint64_t get_bco() const override {return bco;}
24  // cppcheck-suppress virtualCallInConstructor
25  void set_bco(const uint64_t val) override {bco = val;}
26 
27  int32_t get_packetid() const override {return packetid;}
28  // cppcheck-suppress virtualCallInConstructor
29  void set_packetid(const int32_t val) override {packetid = val;}
30 
31  uint32_t get_word() const override {return word;}
32  // cppcheck-suppress virtualCallInConstructor
33  void set_word(uint32_t val) override {word = val;}
34 
35  uint16_t get_fee() const override {return fee;}
36  // cppcheck-suppress virtualCallInConstructor
37  void set_fee(uint16_t val) override {fee = val;}
38 
39  uint16_t get_channel_id() const override {return channel_id;}
40  // cppcheck-suppress virtualCallInConstructor
41  void set_channel_id(uint16_t val) override {channel_id = val;}
42 
43  uint16_t get_chip_id() const override {return chip_id;}
44  // cppcheck-suppress virtualCallInConstructor
45  void set_chip_id(uint16_t val) override {chip_id = val;}
46 
47  uint16_t get_adc() const override {return adc;}
48  // cppcheck-suppress virtualCallInConstructor
49  void set_adc(uint16_t val) override {adc = val;}
50 
51  uint16_t get_FPHX_BCO() const override {return FPHX_BCO;}
52  // cppcheck-suppress virtualCallInConstructor
53  void set_FPHX_BCO(uint16_t val) override {FPHX_BCO = val;}
54 
55  uint16_t get_full_FPHX() const override {return full_FPHX;}
56  // cppcheck-suppress virtualCallInConstructor
57  void set_full_FPHX(uint16_t val) override {full_FPHX = val;}
58 
59  uint16_t get_full_ROC() const override {return full_ROC;}
60  // cppcheck-suppress virtualCallInConstructor
61  void set_full_ROC(uint16_t val) override {full_ROC = val;}
62 
63  uint16_t get_amplitude() const override {return amplitude;}
64  // cppcheck-suppress virtualCallInConstructor
65  void set_amplitude(uint16_t val) override {amplitude = val;}
66 
67 
68 protected:
69  uint64_t bco = std::numeric_limits<uint64_t>::max();
70  int32_t packetid = std::numeric_limits<int32_t>::max();
71  uint32_t word = std::numeric_limits<uint32_t>::max();
72  uint16_t fee = std::numeric_limits<uint16_t>::max();
73  uint16_t channel_id = std::numeric_limits<uint16_t>::max();
74  uint16_t chip_id = std::numeric_limits<uint16_t>::max();
75  uint16_t adc = std::numeric_limits<uint16_t>::max();
76  uint16_t FPHX_BCO = std::numeric_limits<uint16_t>::max();
77  uint16_t full_FPHX = std::numeric_limits<uint16_t>::max();
78  uint16_t full_ROC = std::numeric_limits<uint16_t>::max();
79  uint16_t amplitude = std::numeric_limits<uint16_t>::max();
80 
81  ClassDefOverride(InttRawHitv1,1)
82 };
83 
84 #endif