Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-17 09:21:17

0001 #ifndef QA_INTT_BCOCHECK_H
0002 #define QA_INTT_BCOCHECK_H
0003 
0004 // Fun4All headers
0005 #include <fun4all/SubsysReco.h>
0006 
0007 #include <string>
0008 
0009 class PHCompositeNode;
0010 class TFile;
0011 class TH1;
0012 
0013 class bcocheck : public SubsysReco
0014 {
0015  public:
0016   explicit bcocheck(const std::string &name = "bcocheck", const int run_num = 0, const int felix_num = 0);
0017 
0018   ~bcocheck() override = default;
0019 
0020   int Init(PHCompositeNode *) override;
0021 
0022   int InitRun(PHCompositeNode *) override;
0023 
0024   /// SubsysReco event processing method
0025   int process_event(PHCompositeNode *) override;
0026 
0027   int End(PHCompositeNode *) override;
0028 
0029   // int SetHistBin(std::string type);
0030  private:
0031   // methods
0032   void DrawHists();
0033   // general variables
0034   int run_num_{0};
0035   int felix_num_{0};
0036   static constexpr int kFelix_num_{8};     // the number of our FELIX server
0037   static constexpr int kFee_num_{14};      // the number of half-ladders in a single FELIX server
0038   static constexpr int kChip_num_{26};     // the number of chip in a half-ladder
0039   static constexpr int kChan_num_{128};    // the number of channel in a single chip
0040   static constexpr int kFirst_pid_{3001};  // the first pid (packet ID), which means intt0
0041   static constexpr int divimul{10};
0042 
0043   int ievent_{0};
0044   TFile *tf_output_[kFelix_num_]{};
0045 
0046   TH1 *h_full_bco[kFelix_num_]{};
0047 };
0048 #endif