Belle II Software  release-05-01-25
QuadTreeItem.cc
1 /**************************************************************************
2 * BASF2 (Belle Analysis Framework 2) *
3 * Copyright(C) 2014 - Belle II Collaboration *
4 * *
5 * Author: The Belle II Collaboration *
6 * Contributors: Viktor Trusov, Thomas Hauth *
7 * *
8 * This software is provided "as is" without any warranty. *
9 **************************************************************************/
10 #include <tracking/trackFindingCDC/legendre/quadtree/QuadTreeItem.h>
11 
12 #include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
13 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
14 
15 using namespace Belle2;
16 using namespace TrackFindingCDC;
17 
18 template<>
20 {
21  return (*getPointer())->hasTakenFlag() or (*getPointer())->hasMaskedFlag();
22 }
23 
24 template<>
26 {
27  (*getPointer())->setTakenFlag(usedFlag);
28 }
29 
30 template<>
32 {
33  return getPointer()->getAutomatonCell().hasTakenFlag();
34 }
35 
36 template<>
38 {
39  getPointer()->getAutomatonCell().setTakenFlag(usedFlag);
40 }
Belle2::TrackFindingCDC::QuadTreeItem::setUsedFlag
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:68
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::QuadTreeItem::isUsed
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:62