Belle II Software development
SkimmedHitGapSegmentPairVarSet.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/segmentPair/SkimmedHitGapSegmentPairVarSet.h>
9
10using namespace Belle2;
11using namespace TrackFindingCDC;
12
14{
15 bool extracted = Super::extract(ptrSegmentPair);
16 if (not extracted) return false;
17 if (fabs(var<named("delta_hit_pos_phi")>()) > 1) return false;
18 if (fabs(var<named("delta_hit_alpha")>()) > 1.5) return false;
19 if (var<named("delta_hit_distance")>() < 0) return false;
20 if (var<named("hit_distance")>() > 45) return false;
21 if (var<named("hit_long_distance")>() < 5) return false;
22 if (var<named("hit_forward")>() < -5) return false;
23 return true;
24}
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
bool extract(const CDCSegmentPair *ptrSegmentPair) override
Generate and assign the contained variables.
bool extract(const CDCSegmentPair *ptrSegmentPair) final
Implement the skim cut, otherwise generate and assign the variables from the segment pair.
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.