Belle II Software  release-08-01-10
CDCCKFState.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/ckf/cdc/entities/CDCCKFState.h>
9 
10 namespace Belle2 {
15  std::ostream& operator<<(std::ostream& output, const CDCCKFState& state)
16  {
17  if (state.isSeed()) {
18  output << "seed";
19  } else {
20  const auto* wireHit = state.getWireHit();
21  const auto& wire = wireHit->getWire();
22  output << wire.getICLayer() << " " << wire.getIWire();
23  }
24  return output;
25  }
27 }
Define states for CKF algorithm, which can be seed track or CDC wire hit.
Definition: CDCCKFState.h:25
bool isSeed() const
Returns true if the state corresponds to the seed track.
Definition: CDCCKFState.h:56
const TrackFindingCDC::CDCWireHit * getWireHit() const
Get CDCWireHit corresponding to the state.
Definition: CDCCKFState.h:35
std::ostream & operator<<(std::ostream &output, const IntervalOfValidity &iov)
Abstract base class for different kinds of events.