Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #include <fun4all/SubsysReco.h>
0002 
0003 #include <string>
0004 #include <vector>
0005 
0006 class PHCompositeNode;
0007 class PHG4TruthInfoContainer;
0008 class PHG4Particle;
0009 class PHG4VtxPoint;
0010 class TFile;
0011 class TTree;
0012 
0013 class QAG4Decayer : public SubsysReco
0014 {
0015  public:
0016   //        QAG4Decayer();
0017   QAG4Decayer(const std::string &name = "QAG4Decayer");
0018 
0019   ~QAG4Decayer() override = default;
0020 
0021   int Init(PHCompositeNode *topNode) override;
0022   //        int Init() override;
0023   int process_event(PHCompositeNode *topNode) override;
0024   int End(PHCompositeNode *topNode) override;
0025   std::vector<int> Channel(int pdgid, std::vector<int> Daughter);
0026 
0027  private:
0028   PHG4TruthInfoContainer *m_truth_info{nullptr};
0029 
0030   TFile *fout{nullptr};
0031   TTree *QATree{nullptr};
0032   int EvtID{-1};
0033   float LifeTime{-1};
0034   int NParticles{-1};
0035   std::vector<int> PVDaughtersPDGID;
0036 
0037   bool m_write_nTuple;
0038   bool m_SaveFiles;
0039 };