Belle II Software development
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
13using namespace Belle2;
14using namespace TrackFindingCDC;
15
16template<>
18{
19 return (*getPointer())->hasTakenFlag() or (*getPointer())->hasMaskedFlag();
20}
21
22template<>
24{
25 (*getPointer())->setTakenFlag(usedFlag);
26}
27
28template<>
30{
31 return getPointer()->getAutomatonCell().hasTakenFlag();
32}
33
34template<>
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.