ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawClusterBuilderFwd.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RawClusterBuilderFwd.h
1 #ifndef CALORECO_RAWCLUSTERBUILDERFWD_H
2 #define CALORECO_RAWCLUSTERBUILDERFWD_H
3 
4 #include <fun4all/SubsysReco.h>
5 
6 #include <string>
7 
8 class PHCompositeNode;
9 class RawCluster;
11 class RawTowerContainer;
13 
15 {
16  public:
17  RawClusterBuilderFwd(const std::string &name = "RawClusterBuilder");
18  ~RawClusterBuilderFwd() override {}
19 
20  int InitRun(PHCompositeNode *topNode) override;
21  int process_event(PHCompositeNode *topNode) override;
22  int End(PHCompositeNode *topNode) override;
23  void Detector(const std::string &d) { detector = d; }
24 
25  void set_threshold_energy(const float e) { _min_tower_e = e; }
26  void checkenergy(const int i = 1) { chkenergyconservation = i; }
27 
28  private:
29  void CreateNodes(PHCompositeNode *topNode);
30  bool CorrectPhi(RawCluster *cluster, RawTowerContainer *towers, RawTowerGeomContainer *towergemom);
31 
33 
34  float _min_tower_e;
36 
37  std::string detector;
38  std::string ClusterNodeName;
39 };
40 
41 #endif