Belle II Software  release-05-01-25
CDCCKFSeedCreator.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 
14 #include <tracking/ckf/cdc/entities/CDCCKFPath.h>
15 #include <tracking/ckf/cdc/entities/CDCCKFState.h>
16 #include <tracking/dataobjects/RecoTrack.h>
17 
18 #include <vector>
19 
20 namespace Belle2 {
26  class CDCCKFSeedCreator : public TrackFindingCDC::Findlet<RecoTrack* const, CDCCKFPath> {
28  public:
30  void apply(const std::vector<RecoTrack*>& recoTracks, std::vector<CDCCKFPath>& seeds) override
31  {
32  for (RecoTrack* recoTrack : recoTracks) {
33  CDCCKFState seedState(recoTrack, recoTrack->getMeasuredStateOnPlaneFromLastHit());
34  seeds.push_back({seedState});
35  }
36  }
37  };
39 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CDCCKFSeedCreator::apply
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.
Definition: CDCCKFSeedCreator.h:38