Belle II Software  release-08-01-10
ECLTrackBremFinderModule.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 
9 #pragma once
10 
11 /* Basf2 headers. */
12 #include <framework/core/Module.h>
13 #include <framework/core/ModuleParam.templateDetails.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <framework/datastore/StoreObjPtr.h>
16 
17 namespace Belle2 {
22  class ECLCluster;
23  class Track;
24  class EventMetaData;
25  class RecoTrack;
26  class BremHit;
27 
36  public:
39 
41  virtual ~ECLTrackBremFinderModule() = default;
42 
48  virtual void initialize() override;
49 
54  virtual void event() override;
55 
56  private:
70  double m_clusterAcceptanceFactor = 10.0f;
71 
77  std::vector<float> m_virtualHitRadii = {};
78 
82  float m_clusterDistanceCut = 0.05;
83 
88 
92  std::string m_param_tracksStoreArrayName = "";
93 
98  };
99 
101 } //Belle2
Module to assign ECL Clusters resulting from Bremsstrahlung to the primary electron track.
virtual void initialize() override
Use this to initialize resources or memory your module needs.
std::vector< float > m_virtualHitRadii
Radii where virtual hits for the extrapolation will be generated The default values are taken from br...
virtual void event() override
Called once for each event.
StoreArray< BremHit > m_bremHits
StoreArray BremHits.
virtual ~ECLTrackBremFinderModule()=default
Use to clean up anything you created in the constructor.
double m_clusterAcceptanceFactor
Factor which is multiplied onto the cluster position error to check for matches.
StoreObjPtr< EventMetaData > m_evtPtr
StoreObjPtr EventMetaData.
std::string m_param_tracksStoreArrayName
StoreArray name of the Tracks for brem matching.
StoreArray< Track > m_tracks
StoreArray Track.
std::string m_param_recoTracksStoreArrayName
StoreArray name of the RecoTracks for brem matching.
StoreArray< ECLCluster > m_eclClusters
StoreArray ECLCluster.
std::string m_param_eclClustersStoreArrayName
StoreArray name of the ECLClusters for brem matching.
StoreArray< RecoTrack > m_recoTracks
StoreArray RecoTrack.
ECLTrackBremFinderModule()
Constructor, for setting module description and parameters.
float m_clusterDistanceCut
Cut on the distance between the cluster position angle and the extrapolation angle.
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.