forked from sPHENIX-Collaboration/coresoftware
/
RawClusterDeadAreaMask.h
48 lines (36 loc) · 1.27 KB
/
RawClusterDeadAreaMask.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
42
43
44
45
46
47
48
#ifndef CALORECO_RAWCLUSTERDEADAREAMASK_H
#define CALORECO_RAWCLUSTERDEADAREAMASK_H
#include <fun4all/SubsysReco.h>
#include <string>
class PHCompositeNode;
class RawClusterContainer;
class RawTowerContainer;
class RawTowerGeomContainer;
class RawTowerDeadMap;
class RawClusterDeadAreaMask : public SubsysReco
{
public:
explicit RawClusterDeadAreaMask(const std::string &name = "RawClusterDeadAreaMask");
int InitRun(PHCompositeNode *topNode) override;
int process_event(PHCompositeNode *topNode) override;
int End(PHCompositeNode *topNode) override;
//! half width of the dead area around the center of a dead tower, if cluster center fall into this region it is rejected.
void deadTowerMaskHalfWidth(double deadTowerMaskHalfWidth)
{
m_deadTowerMaskHalfWidth = deadTowerMaskHalfWidth;
}
void detector(const std::string &detector)
{
m_detector = detector;
}
private:
void CreateNodeTree(PHCompositeNode *topNode);
std::string m_detector;
//! half width of the dead area around the center of a dead tower, if cluster center fall into this region it is rejected.
double m_deadTowerMaskHalfWidth;
RawClusterContainer *m_rawClusters;
RawTowerDeadMap *m_deadMap;
RawTowerContainer *m_calibTowers;
RawTowerGeomContainer *m_geometry;
};
#endif