Belle II Software  release-08-01-10
BaseEventTimeExtractorModule.icc.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/eventTimeExtraction/findlets/BaseEventTimeExtractorModule.dcl.h>
11 #include <tracking/dataobjects/RecoTrack.h>
12 
13 namespace Belle2 {
18  template<class AFindlet>
20  {
21  addProcessingSignalListener(&m_findlet);
22  addProcessingSignalListener(&m_trackSelector);
23  }
24 
25  template<class AFindlet>
26  void BaseEventTimeExtractorModuleFindlet<AFindlet>::exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix)
27  {
28  m_trackSelector.exposeParameters(moduleParamList, prefix);
29  m_findlet.exposeParameters(moduleParamList, prefix);
30  }
31 
32  template<class AFindlet>
33  void BaseEventTimeExtractorModuleFindlet<AFindlet>::apply(std::vector<RecoTrack*>& recoTracks)
34  {
35  std::vector<RecoTrack*> copiedRecoTracks = recoTracks;
36  m_trackSelector.apply(copiedRecoTracks);
37  m_findlet.apply(copiedRecoTracks);
38 
39  for (RecoTrack* recoTrack : recoTracks) {
40  recoTrack->setDirtyFlag();
41  }
42  }
44 }
The Module parameter list class.
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:79
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override final
Expose our parameters to the super module.
BaseEventTimeExtractorModuleFindlet()
Add the subfindlet as listener.
void apply(std::vector< RecoTrack * > &recoTracks) override final
Apply the findlets.
Abstract base class for different kinds of events.