Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:18:50

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef VERTEXQA_H
0004 #define VERTEXQA_H
0005 
0006 #include <fun4all/SubsysReco.h>
0007 
0008 #include <string>
0009 #include <vector>
0010 
0011 class SvtxTrack;
0012 class PHCompositeNode;
0013 
0014 class VertexQA : public SubsysReco
0015 {
0016  public:
0017   VertexQA(const std::string &name = "VertexQA");
0018 
0019   ~VertexQA() override = default;
0020 
0021   int InitRun(PHCompositeNode *topNode) override;
0022   int process_event(PHCompositeNode *topNode) override;
0023   int EndRun(const int runnumber) override;
0024   int End(PHCompositeNode *topNode) override;
0025 
0026   void beginRun(const int run) { m_beginRun = run; }
0027   void endRun(const int run) { m_endRun = run; }
0028 
0029  private:
0030   void createHistos();
0031   // xy slope, xy int, zr slope, zr int
0032   std::string getHistoPrefix() const;
0033 
0034   int m_event = 0;
0035   int m_vertices = 0;
0036   std::string m_vertexMapName = "SvtxVertexMap";
0037   int m_beginRun = 25900;
0038   int m_endRun = 26200;
0039   int m_runbins = m_endRun - m_beginRun;
0040 };
0041 
0042 #endif  // VERTEXQA_H