Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4DstCompressReco.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4DstCompressReco.h
1 #ifndef G4EVAL_PHG4DSTCOMPRESSRECO_H
2 #define G4EVAL_PHG4DSTCOMPRESSRECO_H
3 
4 #include <fun4all/SubsysReco.h>
5 
6 #include <set>
7 #include <string>
8 
9 class PHCompositeNode;
10 
11 class PHG4CellContainer;
12 class PHG4HitContainer;
16 
17 class RawTowerContainer;
18 
20 {
21  public:
22  PHG4DstCompressReco(const std::string &name = "PHG4DstCompressReco");
23  ~PHG4DstCompressReco() override {}
24 
26  int InitRun(PHCompositeNode *topNode) override;
27 
29  int process_event(PHCompositeNode *topNode) override;
30 
31  void AddHitContainer(const std::string &name) { _compress_g4hit_names.insert(name); }
36 
37  private:
38  void SearchG4HitNodes(PHCompositeNode *topNode);
39 
43 
47  std::set<std::string> _compress_g4hit_names;
48  std::set<std::string> _compress_g4cell_names;
49  std::set<std::string> _compress_tower_names;
50 
51  std::set<PHG4CellContainer *> _g4cells;
52  std::set<PHG4HitContainer *> _g4hits;
53  std::set<PHG4HitContainer *> _keep_g4hits;
54 
55  std::set<RawTowerContainer *> _towers;
56 };
57 
58 #endif