forked from sPHENIX-Collaboration/coresoftware
/
RawClusterBuilderFwd.h
41 lines (30 loc) · 1.05 KB
/
RawClusterBuilderFwd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef CALORECO_RAWCLUSTERBUILDERFWD_H
#define CALORECO_RAWCLUSTERBUILDERFWD_H
#include <fun4all/SubsysReco.h>
#include <string>
class PHCompositeNode;
class RawCluster;
class RawClusterContainer;
class RawTowerContainer;
class RawTowerGeomContainer;
class RawClusterBuilderFwd : public SubsysReco
{
public:
RawClusterBuilderFwd(const std::string &name = "RawClusterBuilder");
~RawClusterBuilderFwd() override {}
int InitRun(PHCompositeNode *topNode) override;
int process_event(PHCompositeNode *topNode) override;
int End(PHCompositeNode *topNode) override;
void Detector(const std::string &d) { detector = d; }
void set_threshold_energy(const float e) { _min_tower_e = e; }
void checkenergy(const int i = 1) { chkenergyconservation = i; }
private:
void CreateNodes(PHCompositeNode *topNode);
bool CorrectPhi(RawCluster *cluster, RawTowerContainer *towers, RawTowerGeomContainer *towergemom);
RawClusterContainer *_clusters;
float _min_tower_e;
int chkenergyconservation;
std::string detector;
std::string ClusterNodeName;
};
#endif