Belle II Software  release-08-01-10
TrackSetEvaluatorHopfieldNNDEVModule.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 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
12 
13 #include <tracking/trackFindingVXD/trackSetEvaluator/OverlapNetwork.h>
14 
15 #include <framework/datastore/StoreArray.h>
16 #include <framework/core/Module.h>
17 
18 #include <string>
19 
20 namespace Belle2 {
46 
47  public:
50 
52  virtual void initialize() override final
53  {
56  }
57 
59  void event() override final;
60 
62  void endRun() override final;
63 
64  private:
68  std::string m_PARAMtcArrayName;
69 
71  std::string m_PARAMtcNetworkName;
72 
77 
80 
83 
85  unsigned int m_eventCounter = 0;
86 
88  unsigned int m_nTCsTotal = 0;
89 
91  unsigned int m_nFinalTCs = 0;
92 
94  unsigned int m_nHopfieldFails = 0;
95  };
97 }
Base class for Modules.
Definition: Module.h:72
Hold information about overlap of SpacePointTrackCand.
Storage for (VXD) SpacePoint-based track candidates.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
float m_minActivityState
************************************** Member variables *********************************************...
void event() override final
Applies the Hopfield neural network algorithm at given sets of SpacePointTrackCandidates.
virtual void initialize() override final
Statements of requirements (spacePointTrackCands & overlapNetworks).
std::string m_PARAMtcNetworkName
sets the name of the StoreObjPtr used for storing a TC network.
std::string m_PARAMtcArrayName
************************************** Module Parameters ********************************************...
unsigned int m_nFinalTCs
number of TCs found for final sets of non-overlapping TCs so far.
unsigned int m_nTCsTotal
total number of TCs evaluated so far.
StoreArray< OverlapNetwork > m_overlapNetworks
access to tcNetwork, which will be produced by this module.
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
the storeArray for SpacePointTrackCands as member, is faster than recreating link for each event.
unsigned int m_nHopfieldFails
counts number of times when Hopfield was not able to clean overlaps.
Abstract base class for different kinds of events.