Belle II Software  release-05-02-19
PXDSpacePointCreatorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler *
7  * *
8  **************************************************************************/
9 
10 #pragma once
11 
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreArray.h>
14 
15 #include <tracking/spacePointCreation/SpacePoint.h>
16 
17 #include <string>
18 
19 
20 
21 namespace Belle2 {
33  class PXDSpacePointCreatorModule : public Module {
34 
35  public:
36 
37 
38 
41 
42 
43 
48  virtual void initialize() override;
49 
50 
52  virtual void event() override;
53 
54 
56  virtual void terminate() override;
57 
58 
60  void InitializeCounters();
61 
62 
63  protected:
64 
65 
66  // Data members
67  std::string m_pxdClustersName;
72  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
Belle2::PXDSpacePointCreatorModule::m_TESTERPXDClusterCtr
unsigned int m_TESTERPXDClusterCtr
counts total number of PXDClusters occured
Definition: PXDSpacePointCreatorModule.h:91
Belle2::PXDSpacePointCreatorModule::InitializeCounters
void InitializeCounters()
initialize variables in constructor to avoid nondeterministic behavior
Definition: PXDSpacePointCreatorModule.cc:110
Belle2::PXDSpacePointCreatorModule::event
virtual void event() override
eventWise jobs (e.g.
Definition: PXDSpacePointCreatorModule.cc:67
Belle2::PXDSpacePointCreatorModule::m_pxdClustersName
std::string m_pxdClustersName
PXDCluster collection name.
Definition: PXDSpacePointCreatorModule.h:74
Belle2::PXDSpacePointCreatorModule::m_spacePoints
StoreArray< SpacePoint > m_spacePoints
the storeArray for spacePoints as member, is faster than recreating link for each event
Definition: PXDSpacePointCreatorModule.h:82
Belle2::PXDSpacePointCreatorModule::m_nameOfInstance
std::string m_nameOfInstance
allows the user to set an identifier for this module.
Definition: PXDSpacePointCreatorModule.h:87
Belle2::PXDSpacePointCreatorModule::m_pxdClusters
StoreArray< PXDCluster > m_pxdClusters
the storeArray for pxdClusters as member, is faster than recreating link for each event
Definition: PXDSpacePointCreatorModule.h:77
Belle2::PXDSpacePointCreatorModule::m_spacePointsName
std::string m_spacePointsName
SpacePoints collection name.
Definition: PXDSpacePointCreatorModule.h:79
Belle2::PXDSpacePointCreatorModule::initialize
virtual void initialize() override
Init the module.
Definition: PXDSpacePointCreatorModule.cc:45
Belle2::PXDSpacePointCreatorModule::terminate
virtual void terminate() override
final output with mini-feedback
Definition: PXDSpacePointCreatorModule.cc:102
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreArray< PXDCluster >
Belle2::PXDSpacePointCreatorModule::m_TESTERSpacePointCtr
unsigned int m_TESTERSpacePointCtr
counts total number of SpacePoints occured
Definition: PXDSpacePointCreatorModule.h:93
Belle2::PXDSpacePointCreatorModule::PXDSpacePointCreatorModule
PXDSpacePointCreatorModule()
Constructor.
Definition: PXDSpacePointCreatorModule.cc:23