Belle II Software  release-08-01-10
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 
22 namespace Belle2 {
35 
36  public:
37 
38 
39 
42 
43 
44 
49  virtual void initialize() override;
50 
51 
53  virtual void event() override;
54 
55 
57  virtual void terminate() override;
58 
59 
61  void InitializeCounters();
62 
63 
64  protected:
65 
66 
67  // Data members
68  std::string m_pxdClustersName;
73  std::string m_spacePointsName;
81  // modification parameters
82  std::string
86  //counters for testing
87  unsigned int m_TESTERPXDClusterCtr;
89  unsigned int m_TESTERSpacePointCtr;
90  };
92 } // 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.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.