File indexing completed on 2025-12-17 09:21:17
0001
0002
0003 #ifndef QA_INTT_INTTRAWHITQA_H
0004 #define QA_INTT_INTTRAWHITQA_H
0005
0006
0007 #include <fun4all/SubsysReco.h>
0008
0009
0010 #include <string>
0011 #include <vector>
0012
0013 class InttRawHit;
0014 class InttRawHitContainer;
0015 class PHCompositeNode;
0016 class TH1;
0017 class TH2;
0018 class TH3;
0019
0020 class InttRawHitQA : public SubsysReco
0021 {
0022 public:
0023 InttRawHitQA(const std::string& name = "InttRawHitQA");
0024
0025 ~InttRawHitQA() override = default;
0026
0027
0028
0029
0030
0031
0032 int InitRun(PHCompositeNode* topNode) override;
0033
0034
0035
0036
0037 int process_event(PHCompositeNode* topNode) override;
0038
0039
0040 int End(PHCompositeNode* topNode) override;
0041
0042 private:
0043 void createHistos();
0044 std::string getHistoPrefix() const;
0045
0046
0047
0048 static const int kFelix_num_{8};
0049 static const int kFee_num_{14};
0050 static const int kChip_num_{26};
0051 static const int kChan_num_{128};
0052 static const int kFirst_pid_{3001};
0053
0054 std::vector<InttRawHitContainer*> m_rawhit_containers;
0055 int previous_event_counter_{-1};
0056 int last_event_counter_{0};
0057 int event_counter_by_myself_{0};
0058
0059 bool is_first_event_{true};
0060
0061
0062
0063
0064
0065
0066 TH3* hist_fee_chip_chan_[kFelix_num_]{nullptr};
0067
0068 TH3* hist_fee_bco_full_event_counter_[kFelix_num_]{nullptr};
0069 TH3* hist_fee_bco_full_event_counter_diff_[kFelix_num_]{nullptr};
0070
0071
0072 TH2* hist_hitmap_[kFelix_num_][kFee_num_]{{nullptr}};
0073
0074
0075 TH1* hist_nhit_{nullptr};
0076 TH1* hist_pid_{nullptr};
0077 TH1* hist_nhit_south_{nullptr};
0078 TH1* hist_nhit_north_{nullptr};
0079
0080
0081
0082
0083 TH1* hist_adc_{nullptr};
0084 TH1* hist_bco_{nullptr};
0085 TH1* hist_bco_full_{nullptr};
0086
0087
0088 TH1* hist_event_counter_[kFelix_num_]{nullptr};
0089 TH1* hist_event_counter_diff_[kFelix_num_]{nullptr};
0090
0091
0092
0093
0094 virtual std::vector<InttRawHit*> GetHits(InttRawHitContainer* container);
0095 };
0096
0097 #endif