Belle II Software development
BasicSegmentVarSet.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/filters/segment/BasicSegmentVarSet.h>
9
10#include <tracking/trackingUtilities/eventdata/segments/CDCSegment2D.h>
11
12using namespace Belle2;
13using namespace TrackFindingCDC;
14using namespace TrackingUtilities;
15
17{
18 if (not ptrSegment2D) return false;
19
20 var<named("size")>() = ptrSegment2D->size();
21 var<named("superlayer_id")>() = ptrSegment2D->getISuperLayer();
22
23 return true;
24}
bool extract(const TrackingUtilities::CDCSegment2D *ptrSegment2D) final
Generate and assign the contained variables.
A reconstructed sequence of two dimensional hits in one super layer.
static constexpr int named(const char *name)
Definition VarSet.h:78
Abstract base class for different kinds of events.