DAS  3.0
Das Analysis System
DynamicNearestNeighboursabstract

Public Member Functions

virtual int NearestNeighbourIndex (const int ii) const =0
 
virtual double NearestNeighbourDistance (const int ii) const =0
 
virtual bool Valid (const int index) const =0
 
virtual void RemoveAndAddPoints (const std::vector< int > &indices_to_remove, const std::vector< EtaPhi > &points_to_add, std::vector< int > &indices_added, std::vector< int > &indices_of_updated_neighbours)=0
 
void RemovePoint (const int index, std::vector< int > &indices_of_updated_neighbours)
 
void RemoveCombinedAddCombination (const int index1, const int index2, const EtaPhi &newpoint, int &index3, std::vector< int > &indices_of_updated_neighbours)
 
virtual ~DynamicNearestNeighbours ()
 

Constructor & Destructor Documentation

◆ ~DynamicNearestNeighbours()

virtual ~DynamicNearestNeighbours ( )
inlinevirtual
220 {}

Member Function Documentation

◆ NearestNeighbourDistance()

virtual double NearestNeighbourDistance ( const int  ii) const
pure virtual

◆ NearestNeighbourIndex()

virtual int NearestNeighbourIndex ( const int  ii) const
pure virtual

◆ RemoveAndAddPoints()

virtual void RemoveAndAddPoints ( const std::vector< int > &  indices_to_remove,
const std::vector< EtaPhi > &  points_to_add,
std::vector< int > &  indices_added,
std::vector< int > &  indices_of_updated_neighbours 
)
pure virtual

◆ RemoveCombinedAddCombination()

void RemoveCombinedAddCombination ( const int  index1,
const int  index2,
const EtaPhi newpoint,
int &  index3,
std::vector< int > &  indices_of_updated_neighbours 
)
inline
208  {
209  std::vector<int> indices_added(1);
210  std::vector<EtaPhi> points_to_add(1);
211  std::vector<int> indices_to_remove(2);
212  indices_to_remove[0] = index1;
213  indices_to_remove[1] = index2;
214  points_to_add[0] = newpoint;
215  RemoveAndAddPoints(indices_to_remove, points_to_add, indices_added,
216  indices_of_updated_neighbours
217  );
218  index3 = indices_added[0];
219  };

◆ RemovePoint()

void RemovePoint ( const int  index,
std::vector< int > &  indices_of_updated_neighbours 
)
inline
196  {
197  std::vector<int> indices_added;
198  std::vector<EtaPhi> points_to_add;
199  std::vector<int> indices_to_remove(1);
200  indices_to_remove[0] = index;
201  RemoveAndAddPoints(indices_to_remove, points_to_add, indices_added,
202  indices_of_updated_neighbours
203  );};

◆ Valid()

virtual bool Valid ( const int  index) const
pure virtual

The documentation for this class was generated from the following file:
DynamicNearestNeighbours::RemoveAndAddPoints
virtual void RemoveAndAddPoints(const std::vector< int > &indices_to_remove, const std::vector< EtaPhi > &points_to_add, std::vector< int > &indices_added, std::vector< int > &indices_of_updated_neighbours)=0