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/trackingUtilities/eventdata/segments/CDCSegment2D.h>
11#include <tracking/trackingUtilities/eventdata/hits/CDCWireHit.h>
12
13using namespace Belle2;
14using namespace TrackFindingCDC;
15using namespace TrackingUtilities;
16
17template<>
19{
20 return (*getPointer())->hasTakenFlag() or (*getPointer())->hasMaskedFlag();
21}
22
23template<>
25{
26 (*getPointer())->setTakenFlag(usedFlag);
27}
28
29template<>
31{
32 return getPointer()->getAutomatonCell().hasTakenFlag();
33}
34
35template<>
37{
38 getPointer()->getAutomatonCell().setTakenFlag(usedFlag);
39}
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...
void setUsedFlag(bool usedFlag=true)
Set the used flag if you do not want that item to go into the next search round again.
Abstract base class for different kinds of events.