Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QAG4Decayer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file QAG4Decayer.h
1 #include <fun4all/SubsysReco.h>
2 #include <g4main/PHG4Particle.h>
4 #include <g4main/PHG4VtxPoint.h>
5 
6 #include <g4eval/SvtxEvalStack.h>
7 
10 
15 
16 #include <TBranch.h>
17 #include <TFile.h>
18 #include <TH1.h>
19 #include <TH2.h>
20 #include <TTree.h>
21 
22 #include <string>
23 
24 class PHCompositeNode;
26 class PHG4Particle;
27 class PHG4VtxPoint;
28 
29 class QAG4Decayer : public SubsysReco
30 {
31  public:
32  // QAG4Decayer();
33  QAG4Decayer(const std::string &name = "QAG4Decayer");
34 
35  virtual ~QAG4Decayer();
36 
37  int Init(PHCompositeNode *topNode) override;
38  // int Init() override;
39  int process_event(PHCompositeNode *topNode) override;
40  int End(PHCompositeNode *topNode) override;
41  std::vector<int> Channel(int pdgid, std::vector<int> Daughter);
42 
43  private:
45  // SvtxEvalStack *_svtxevalstack = NULL;
46 
47  TFile *fout = nullptr;
48  TTree *QATree = nullptr;
49  int EvtID = -1;
50  float LifeTime = -1;
51  /*
52  TH1D * MassHis;
53  TH1D * NPartHis;
54  TH1D * BR1DHis;
55  */
56  int NParticles = -1;
57  std::vector<int> PVDaughtersPDGID;
58 
60  // bool m_write_QAHists;
62 };