Belle II Software  release-05-02-19
TrackSetEvaluatorHopfieldNNDEVModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2011 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <tracking/spacePointCreation/SpacePointTrackCand.h>
14 
15 #include <tracking/trackFindingVXD/trackSetEvaluator/OverlapNetwork.h>
16 
17 #include <framework/datastore/StoreArray.h>
18 #include <framework/core/Module.h>
19 
20 #include <string>
21 
22 namespace Belle2 {
47  class TrackSetEvaluatorHopfieldNNDEVModule : public Module {
48 
49  public:
52 
54  virtual void initialize() override final
55  {
58  }
59 
61  void event() override final;
62 
64  void endRun() override final;
65 
66  private:
70  std::string m_PARAMtcArrayName;
71 
73  std::string m_PARAMtcNetworkName;
74 
79 
82 
85 
87  unsigned int m_eventCounter = 0;
88 
90  unsigned int m_nTCsTotal = 0;
91 
93  unsigned int m_nFinalTCs = 0;
94 
96  unsigned int m_nHopfieldFails = 0;
97  };
99 }
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::endRun
void endRun() override final
Report on performance.
Definition: TrackSetEvaluatorHopfieldNNDEVModule.cc:82
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::m_nFinalTCs
unsigned int m_nFinalTCs
number of TCs found for final sets of non-overlapping TCs so far.
Definition: TrackSetEvaluatorHopfieldNNDEVModule.h:101
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::event
void event() override final
Applies the Hopfield neural network algorithm at given sets of SpacePointTrackCandidates.
Definition: TrackSetEvaluatorHopfieldNNDEVModule.cc:36
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::m_eventCounter
unsigned int m_eventCounter
knows current event number.
Definition: TrackSetEvaluatorHopfieldNNDEVModule.h:95
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::m_PARAMtcNetworkName
std::string m_PARAMtcNetworkName
sets the name of the StoreObjPtr used for storing a TC network.
Definition: TrackSetEvaluatorHopfieldNNDEVModule.h:81
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::m_minActivityState
float m_minActivityState
************************************** Member variables *********************************************...
Definition: TrackSetEvaluatorHopfieldNNDEVModule.h:86
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::m_nTCsTotal
unsigned int m_nTCsTotal
total number of TCs evaluated so far.
Definition: TrackSetEvaluatorHopfieldNNDEVModule.h:98
Belle2::OverlapNetwork
Hold information about overlap of SpacePointTrackCand.
Definition: OverlapNetwork.h:30
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::TrackSetEvaluatorHopfieldNNDEVModule
TrackSetEvaluatorHopfieldNNDEVModule()
Constructor of the module.
Definition: TrackSetEvaluatorHopfieldNNDEVModule.cc:20
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::m_overlapNetworks
StoreArray< OverlapNetwork > m_overlapNetworks
access to tcNetwork, which will be produced by this module.
Definition: TrackSetEvaluatorHopfieldNNDEVModule.h:92
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::m_spacePointTrackCands
StoreArray< SpacePointTrackCand > m_spacePointTrackCands
the storeArray for SpacePointTrackCands as member, is faster than recreating link for each event.
Definition: TrackSetEvaluatorHopfieldNNDEVModule.h:89
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::initialize
virtual void initialize() override final
Statements of requirements (spacePointTrackCands & overlapNetworks).
Definition: TrackSetEvaluatorHopfieldNNDEVModule.h:62
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::m_nHopfieldFails
unsigned int m_nHopfieldFails
counts number of times when Hopfield was not able to clean overlaps.
Definition: TrackSetEvaluatorHopfieldNNDEVModule.h:104
Belle2::TrackSetEvaluatorHopfieldNNDEVModule::m_PARAMtcArrayName
std::string m_PARAMtcArrayName
************************************** Module Parameters ********************************************...
Definition: TrackSetEvaluatorHopfieldNNDEVModule.h:78
Belle2::SpacePointTrackCand
Storage for (VXD) SpacePoint-based track candidates.
Definition: SpacePointTrackCand.h:51