Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:17:00

0001 #ifndef CALORECO_RAWCLUSTERBUILDER_H
0002 #define CALORECO_RAWCLUSTERBUILDER_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 
0006 #include <string>
0007 
0008 class PHCompositeNode;
0009 class RawClusterContainer;
0010 
0011 class RawClusterBuilderGraph : public SubsysReco
0012 {
0013  public:
0014   explicit RawClusterBuilderGraph(const std::string &name = "RawClusterBuilderGraph");
0015   ~RawClusterBuilderGraph() override {}
0016 
0017   int InitRun(PHCompositeNode *topNode) override;
0018   int process_event(PHCompositeNode *topNode) override;
0019   int End(PHCompositeNode *topNode) override;
0020   void Detector(const std::string &d) { detector = d; }
0021 
0022   void set_threshold_energy(const float e) { _min_tower_e = e; }
0023   void checkenergy(const int i = 1) { chkenergyconservation = i; }
0024 
0025  private:
0026   void CreateNodes(PHCompositeNode *topNode);
0027 
0028   RawClusterContainer *_clusters {nullptr};
0029 
0030   float _min_tower_e {0.};
0031   int chkenergyconservation {0};
0032 
0033   std::string detector {"NONE"};
0034   std::string ClusterNodeName;
0035 };
0036 
0037 #endif