forked from sPHENIX-Collaboration/coresoftware
/
TpcClusterCleaner.h
56 lines (39 loc) · 1.4 KB
/
TpcClusterCleaner.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
49
50
51
52
53
54
55
56
// Tell emacs that this is a C++ source
// -*- C++ -*-.
/*!
* \file TpcClusterCleaner.h
* \brief Class for removing bad TPC clusters
* \author Tony Frawley <afrawley@fsu.edu>
*/
#ifndef TPCCLUSTERCLEANER_H
#define TPCCLUSTERCLEANER_H
#include <fun4all/SubsysReco.h>
#include <string>
#include <vector>
class PHCompositeNode;
class TrkrCluster;
class TrkrClusterContainer;
class TrkrHitSetContainer;
class TpcClusterCleaner : public SubsysReco
{
public:
TpcClusterCleaner(const std::string &name = "TpcClusterCleaner");
~TpcClusterCleaner() override;
int InitRun(PHCompositeNode *topNode) override;
int process_event(PHCompositeNode *topNode) override;
int End(PHCompositeNode *topNode) override;
void set_rphi_error_low_cut(double cut){_rphi_error_low_cut = cut;}
void set_rphi_error_high_cut(double cut){_rphi_error_high_cut = cut;}
void set_new_rphi_error(double err){_new_rphi_error = err;}
void set_new_z_error(double err){_new_z_error = err;}
private:
void rotate_error(double erphi, double ez, double phi, double error[][3]);
int GetNodes(PHCompositeNode* topNode);
TrkrHitSetContainer *_hitsets = nullptr;
TrkrClusterContainer *_cluster_map = nullptr;
double _rphi_error_low_cut = 0.01;
double _rphi_error_high_cut = 0.1; // made large enough to not matter for now
double _new_rphi_error = 0.05;
double _new_z_error = 0.1;
};
#endif // TPCCLUSTERCLEANER_H