Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:17:33

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef MVTXRAWHITQA_H
0004 #define MVTXRAWHITQA_H
0005 
0006 #include <fun4all/SubsysReco.h>
0007 #include <trackbase/TrkrDefs.h>
0008 
0009 #include <ffarawobjects/MvtxRawHitContainer.h>
0010 #include <ffarawobjects/MvtxRawHit.h>
0011 
0012 #include <TH1.h>
0013 #include <TH2.h>
0014 #include <TProfile2D.h>
0015 
0016 #include <string>
0017 #include <vector>
0018 
0019 class MvtxRawHitQA : public SubsysReco
0020 {
0021  public:
0022   MvtxRawHitQA(const std::string& name = "MvtxRawHitQA");
0023 
0024   ~MvtxRawHitQA() override = default;
0025 
0026   int InitRun(PHCompositeNode* topNode) override;
0027   int process_event(PHCompositeNode* topNode) override;
0028   int EndRun(const int runnumber) override;
0029 
0030   int End(PHCompositeNode *topNode) override;
0031   
0032  private:
0033   void createHistos();
0034   std::string getHistoPrefix() const;
0035   std::vector<MvtxRawHitContainer*> m_rawhit_containers;
0036 
0037   TH1* h_nhits_layer0{nullptr};
0038   TH1* h_nhits_layer1{nullptr};
0039   TH1* h_nhits_layer2{nullptr};
0040   TH1* h_bco{nullptr};
0041   TH1* h_strobe_bc{nullptr};
0042   TH1* h_chip_bc{nullptr};
0043   TH2* h_nhits_stave_chip_layer0{nullptr};
0044   TH2* h_nhits_stave_chip_layer1{nullptr};
0045   TH2* h_nhits_stave_chip_layer2{nullptr};
0046 
0047 };
0048 
0049 #endif  // MVTXRAWHITQA_H