Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-14 08:14:26

0001 
0002 #ifndef LASERQA_H
0003 #define LASERQA_H
0004 
0005 
0006 #include <fun4all/SubsysReco.h>
0007 
0008 #include <string>
0009 
0010 #include <TTree.h>
0011 #include <TFile.h>
0012 #include <TH3.h>
0013 
0014 class PHCompositeNode;
0015 class LaserClusterContainer;
0016 class LaserCluster;
0017 class EventHeader;
0018 
0019 class TFile;
0020 class TH1D;
0021 class TH2D;
0022 class TTree;
0023 
0024 class laserQA : public SubsysReco
0025 {
0026     
0027     public:
0028     laserQA(const std::string &name = "laserQA");
0029 
0030     ~laserQA() override = default;
0031 
0032     void setOutfile(const std::string &outname)
0033     {
0034         m_output = outname;
0035     }
0036 
0037     void setPedestal(int ped)
0038     {
0039         m_pedestal = ped;
0040     }
0041 
0042     int InitRun(PHCompositeNode *topNode) override;
0043 
0044     int process_event(PHCompositeNode *topNode) override;
0045 
0046     int End(PHCompositeNode *topNode) override;
0047 
0048 private:
0049 
0050   
0051   int m_pedestal = 0;
0052   
0053   std::string m_output = "laserQA.root";
0054 
0055   TFile *outputFile = nullptr;
0056   TTree *T = nullptr;
0057   //LaserCluster *lc = nullptr;
0058   TH3D *hitHist = nullptr;
0059   float layer = 0;
0060   float iphi = 0;
0061   float it = 0;
0062   float adc = 0;
0063   float phi = 0;
0064   float R = 0;
0065 
0066   
0067   TH3D *tmpHitHist = nullptr;
0068 
0069 };
0070 
0071 #endif