Belle II Software  release-08-01-10
QuadTreeItem.cc
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #include <tracking/trackFindingCDC/legendre/quadtree/QuadTreeItem.h>
9 
10 #include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
11 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
12 
13 using namespace Belle2;
14 using namespace TrackFindingCDC;
15 
16 template<>
18 {
19  return (*getPointer())->hasTakenFlag() or (*getPointer())->hasMaskedFlag();
20 }
21 
22 template<>
24 {
25  (*getPointer())->setTakenFlag(usedFlag);
26 }
27 
28 template<>
30 {
31  return getPointer()->getAutomatonCell().hasTakenFlag();
32 }
33 
34 template<>
36 {
37  getPointer()->getAutomatonCell().setTakenFlag(usedFlag);
38 }
bool isUsed() const
Flag is set if the item was used as a result of the quad tree search and should not be used in the ne...
Definition: QuadTreeItem.h:52
void setUsedFlag(bool usedFlag=true)
Set the used flag if you do not want that item to go into the next search round again.
Definition: QuadTreeItem.h:58
Abstract base class for different kinds of events.