Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxTruthRecoTableEval.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxTruthRecoTableEval.h
1 #ifndef SVTXTRUTHRECOTABLEEVAL_H
2 #define SVTXTRUTHRECOTABLEEVAL_H
3 
4 #include <fun4all/SubsysReco.h>
5 
8 
9 #include <memory>
10 #include <string>
11 
12 class PHCompositeNode;
14 class SvtxEvalStack;
15 
17 {
18  public:
19  SvtxTruthRecoTableEval(const std::string &name = "SvtxTruthRecoTableEval");
20 
21  virtual ~SvtxTruthRecoTableEval();
22 
23  int Init(PHCompositeNode *) override;
24  int InitRun(PHCompositeNode *topNode) override;
25  int process_event(PHCompositeNode *topNode) override;
26  int ResetEvent(PHCompositeNode *topNode) override;
27 
28  int End(PHCompositeNode *topNode) override;
29 
32  void setMinMomentumTruthMap(const double v) { m_minMomentumTruthMap = v; }
33 
34  private:
35  int createNodes(PHCompositeNode *topNode);
36 
37  void fillTruthMap(PHCompositeNode *topNode);
38  void fillRecoMap(PHCompositeNode *topNode);
39 
40  bool m_scanForPrimaries = false;
41 
44  double m_minMomentumTruthMap = 50e-3;
45 
48  std::unique_ptr<SvtxEvalStack> m_svtxevalstack;
49 };
50 
51 #endif // SVTXTRUTHRECOTABLEEVAL_H