PandaRoot
PndSttNeighborhoodCreator.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * PndSttNeighborhoodCreator.h
15  *
16  * Created on: 03.08.2018
17  * Author: tstockmanns
18  */
19 
20 #ifndef DETECTORS_STT_PNDSTTNEIGHBORHOODCREATOR_H_
21 #define DETECTORS_STT_PNDSTTNEIGHBORHOODCREATOR_H_
22 
23 #include <TObject.h>
24 #include <vector>
25 
26 class PndSttTube;
27 
28 class PndSttNeighborhoodCreator : public TObject {
29  public:
32 
33  std::vector<int> FindNeighbors(PndSttTube *tube);
34 
35  protected:
36  std::vector<std::pair<int, int>> GetListOfSectorRowsToCompare(PndSttTube *tube);
37  bool Compare(PndSttTube *tube1, PndSttTube *tube2, double tolerance);
38  double GetTolerance(PndSttTube *tube1, PndSttTube *tube2);
39 
41 };
42 
43 #endif /* DETECTORS_STT_PNDSTTNEIGHBORHOODCREATOR_H_ */
double GetTolerance(PndSttTube *tube1, PndSttTube *tube2)
bool Compare(PndSttTube *tube1, PndSttTube *tube2, double tolerance)
std::vector< std::pair< int, int > > GetListOfSectorRowsToCompare(PndSttTube *tube)
std::vector< int > FindNeighbors(PndSttTube *tube)
virtual ~PndSttNeighborhoodCreator()
ClassDef(PndSttNeighborhoodCreator, 1)