Belle II Software  release-06-00-14
SVDSpacePointCreatorModule.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 <svd/calibration/SVDHitTimeSelection.h>
14 
15 #include <tracking/spacePointCreation/SpacePoint.h>
16 
17 #include <string>
18 
19 #include <TFile.h>
20 
21 namespace Belle2 {
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_svdClustersName = "SVDClusters";
72  std::string m_spacePointsName = "";
77  std::string m_eventLevelTrackingInfoName = "";
79  float m_minClusterTime = -999;
81  // modification parameters
82  std::string m_nameOfInstance =
83  "";
86  false;
88  std::string m_inputPDF = "";
90  TFile* m_calibrationFile = nullptr;
92  bool m_useLegacyNaming = true;
94  bool m_useQualityEstimator = false;
95  //counters for testing
96  unsigned int m_TESTERSVDClusterCtr = 0;
98  unsigned int m_TESTERSpacePointCtr = 0;
100  unsigned int m_numMaxSpacePoints = 7e4;
103  };
105 } // end namespace Belle2
Base class for Modules.
Definition: Module.h:72
This class defines the dbobject and the methods to access the calibration of the cluster reconstructi...
Imports Clusters of the SVD detector and converts them to spacePoints.
std::string m_eventLevelTrackingInfoName
Name of the EventLevelTrackingInfo.
std::string m_svdClustersName
SVDCluster collection name.
float m_minClusterTime
clusters with time below this value are not considered to make spacePoints
std::string m_nameOfInstance
allows the user to set an identifier for this module.
virtual void initialize() override
Init the module.
SVDHitTimeSelection m_HitTimeCut
selection based on clustr time db object
unsigned int m_numMaxSpacePoints
do not crete SPs if their number exceeds m_numMaxSpacePoints, tuned with BG19
StoreArray< SVDCluster > m_svdClusters
the storeArray for svdClusters as member, is faster than recreating link for each event
std::string m_inputPDF
File path of root file containing pdf histograms.
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
bool m_onlySingleClusterSpacePoints
standard is false.
bool m_useLegacyNaming
Choice between PDF naming conventions.
TFile * m_calibrationFile
Pointer to root TFile containing PDF histograms.
std::string m_spacePointsName
SpacePoints collection name.
unsigned int m_TESTERSVDClusterCtr
counts total number of SVDCluster occured
Abstract base class for different kinds of events.