Belle II Software  release-05-02-19
BaseEventTimeExtractorModule.icc.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 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/eventTimeExtraction/findlets/BaseEventTimeExtractorModule.dcl.h>
13 #include <tracking/dataobjects/RecoTrack.h>
14 
15 namespace Belle2 {
20  template<class AFindlet>
22  {
23  addProcessingSignalListener(&m_findlet);
24  addProcessingSignalListener(&m_trackSelector);
25  }
26 
27  template<class AFindlet>
28  void BaseEventTimeExtractorModuleFindlet<AFindlet>::exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix)
29  {
30  m_trackSelector.exposeParameters(moduleParamList, prefix);
31  m_findlet.exposeParameters(moduleParamList, prefix);
32  }
33 
34  template<class AFindlet>
35  void BaseEventTimeExtractorModuleFindlet<AFindlet>::apply(std::vector<RecoTrack*>& recoTracks)
36  {
37  std::vector<RecoTrack*> copiedRecoTracks = recoTracks;
38  m_trackSelector.apply(copiedRecoTracks);
39  m_findlet.apply(copiedRecoTracks);
40 
41  for (RecoTrack* recoTrack : recoTracks) {
42  recoTrack->setDirtyFlag();
43  }
44  }
46 }
Belle2::BaseEventTimeExtractorModuleFindlet::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override final
Expose our parameters to the super module.
Definition: BaseEventTimeExtractorModule.icc.h:36
Belle2::RecoTrack
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:78
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BaseEventTimeExtractorModuleFindlet::apply
void apply(std::vector< RecoTrack * > &recoTracks) override final
Apply the findlets.
Definition: BaseEventTimeExtractorModule.icc.h:43
Belle2::BaseEventTimeExtractorModuleFindlet::BaseEventTimeExtractorModuleFindlet
BaseEventTimeExtractorModuleFindlet()
Add the subfindlet as listener.
Definition: BaseEventTimeExtractorModule.icc.h:29