Belle II Software development
PXDSpacePointCreatorModule.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 <framework/core/Module.h>
12#include <framework/datastore/StoreArray.h>
13#include <framework/datastore/StoreObjPtr.h>
14
15#include <tracking/spacePointCreation/SpacePoint.h>
16#include <mdst/dataobjects/EventLevelTrackingInfo.h>
17
18#include <string>
19
20
21
22namespace Belle2 {
32
33 public:
34
35
36
39
40
41
46 virtual void initialize() override;
47
48
50 virtual void event() override;
51
52
54 virtual void terminate() override;
55
56
58 void InitializeCounters();
59
60
61 protected:
62
63
64 // Data members
65 std::string m_pxdClustersName;
70 std::string m_spacePointsName;
78 // modification parameters
79 std::string
83 //counters for testing
84 unsigned int m_TESTERPXDClusterCtr;
86 unsigned int m_TESTERSpacePointCtr;
87 };
89} // end namespace Belle2
Base class for Modules.
Definition: Module.h:72
Imports Clusters of the pxd detector and converts them to spacePoints.
unsigned int m_TESTERPXDClusterCtr
counts total number of PXDClusters occured
std::string m_nameOfInstance
allows the user to set an identifier for this module.
virtual void initialize() override
Init the module.
StoreObjPtr< EventLevelTrackingInfo > m_eventLevelTrackingInfo
StoreObject to access the event level tracking information.
virtual void event() override
eventWise jobs (e.g.
void InitializeCounters()
initialize variables in constructor to avoid nondeterministic behavior
unsigned int m_TESTERSpacePointCtr
counts total number of SpacePoints occured
virtual void terminate() override
final output with mini-feedback
StoreArray< SpacePoint > m_spacePoints
the storeArray for spacePoints as member, is faster than recreating link for each event
std::string m_pxdClustersName
PXDCluster collection name.
StoreArray< PXDCluster > m_pxdClusters
the storeArray for pxdClusters as member, is faster than recreating link for each event
std::string m_spacePointsName
SpacePoints collection name.
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.