Belle II Software  release-05-01-25
SkimmedHitGapSegmentPairVarSet.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <tracking/trackFindingCDC/filters/segmentPair/SkimmedHitGapSegmentPairVarSet.h>
11 
12 using namespace Belle2;
13 using namespace TrackFindingCDC;
14 
16 {
17  bool extracted = Super::extract(ptrSegmentPair);
18  if (not extracted) return false;
19  if (fabs(var<named("delta_hit_pos_phi")>()) > 1) return false;
20  if (fabs(var<named("delta_hit_alpha")>()) > 1.5) return false;
21  if (var<named("delta_hit_distance")>() < 0) return false;
22  if (var<named("hit_distance")>() > 45) return false;
23  if (var<named("hit_long_distance")>() < 5) return false;
24  if (var<named("hit_forward")>() < -5) return false;
25  return true;
26 }
Belle2::TrackFindingCDC::CDCSegmentPair
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
Definition: CDCSegmentPair.h:44
Belle2::TrackFindingCDC::HitGapSegmentPairVarSet::extract
bool extract(const CDCSegmentPair *ptrSegmentPair) override
Generate and assign the contained variables.
Definition: HitGapSegmentPairVarSet.cc:22
Belle2::TrackFindingCDC::SkimmedHitGapSegmentPairVarSet::extract
bool extract(const CDCSegmentPair *ptrSegmentPair) final
Implement the skim cut, otherwise generate and assign the variables from the segment pair.
Definition: SkimmedHitGapSegmentPairVarSet.cc:15
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::VarSet< HitGapSegmentPairVarNames >::named
constexpr static int named(const char *name)
Getter for the index from the name.
Definition: VarSet.h:88
Belle2::TrackFindingCDC::VarSet< HitGapSegmentPairVarNames >::var
Float_t & var()
Reference getter for the value of the ith variable. Static version.
Definition: VarSet.h:103