Belle II Software development
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
20namespace Belle2 {
43
44 public:
47
49 virtual void initialize() override final
50 {
53 }
54
56 void event() override final;
57
59 void endRun() override final;
60
61 private:
66
69
74
77
80
82 unsigned int m_eventCounter = 0;
83
85 unsigned int m_nTCsTotal = 0;
86
88 unsigned int m_nFinalTCs = 0;
89
91 unsigned int m_nHopfieldFails = 0;
92 };
94}
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.
STL namespace.