Belle II Software development
BkgTruthSegmentVarSet.h
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#pragma once
9
10#include <tracking/trackFindingCDC/filters/segment/TruthSegmentVarSet.h>
11
12namespace Belle2 {
17 namespace TrackFindingCDC {
18 class CDCSegment2D;
19
25
26 private:
29
30 public:
32 bool extract(const CDCSegment2D* segment) final {
33 bool extracted = Super::extract(segment);
34 var<named("truth")>() = not var<named("segment_is_fake_truth")>();
35 return extracted;
36 }
37 };
38 }
40}
Class to compute floating point variables from a segment which can be recorded as a flat TNtuple or s...
bool extract(const CDCSegment2D *segment) final
Generate and assign the contained variables.
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
Class to compute floating point variables from a segment which can be recorded as a flat TNtuple or s...
bool extract(const CDCSegment2D *segment) override
Generate and assign the contained variables.
static constexpr int named(const char *name)
Getter for the index from the name.
Definition: VarSet.h:78
Float_t & var()
Reference getter for the value of the ith variable. Static version.
Definition: VarSet.h:93
Abstract base class for different kinds of events.