forked from sPHENIX-Collaboration/coresoftware
/
PHTrackCleaner.h
51 lines (35 loc) · 1018 Bytes
/
PHTrackCleaner.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
// Tell emacs that this is a C++ source
// -*- C++ -*-.
/*!
* \file PHTrackCleaner
* \brief Class for deciding which track based on a given TPC seed is the best one
* \author Tony Frawley <afrawley@fsu.edu>
*/
#ifndef PHTRACKCLEANER_H
#define PHTRACKCLEANER_H
#include <fun4all/SubsysReco.h>
#include <string>
#include <vector>
#include <map>
class PHCompositeNode;
class SvtxTrack;
class SvtxTrackMap;
class TrkrCluster;
class TpcSeedTrackMap;
class PHTrackCleaner : public SubsysReco
{
public:
PHTrackCleaner(const std::string &name = "PHTrackCleaner");
~PHTrackCleaner() override;
int InitRun(PHCompositeNode *topNode) override;
int process_event(PHCompositeNode *topNode) override;
int End(PHCompositeNode *topNode) override;
private:
int GetNodes(PHCompositeNode* topNode);
void findGhostTracks();
SvtxTrackMap *_track_map{nullptr};
SvtxTrack *_track{nullptr};
TpcSeedTrackMap *_seed_track_map{nullptr};
unsigned int min_clusters = 20;
};
#endif // PHTRACKCLEANER_H