Belle II Software development
CDCCKFSeedCreator.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/findlets/base/Findlet.h>
11
12#include <tracking/ckf/cdc/entities/CDCCKFPath.h>
13#include <tracking/ckf/cdc/entities/CDCCKFState.h>
14#include <tracking/dataobjects/RecoTrack.h>
15
16#include <vector>
17
18namespace Belle2 {
23
25 class CDCCKFSeedCreator : public TrackFindingCDC::Findlet<RecoTrack* const, CDCCKFPath> {
26 public:
28 void apply(const std::vector<RecoTrack*>& recoTracks, std::vector<CDCCKFPath>& seeds) override
29 {
30 for (RecoTrack* recoTrack : recoTracks) {
31 CDCCKFState seedState(recoTrack, recoTrack->getMeasuredStateOnPlaneFromLastHit());
32 seeds.push_back({seedState});
33 }
34 }
35 };
36
37}
Create a CKF seed based on RecoTrack (presumably from VXDTF2)
void apply(const std::vector< RecoTrack * > &recoTracks, std::vector< CDCCKFPath > &seeds) override
Main method of the findlet, loop over reco tracks, create seeds for each of them.
Define states for CKF algorithm, which can be seed track or CDC wire hit.
Definition CDCCKFState.h:25
This is the Reconstruction Event-Data Model Track.
Definition RecoTrack.h:79
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition Findlet.h:26
Abstract base class for different kinds of events.