Belle II Software  release-05-02-19
SVDSpacePointCreatorModule.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 && Giulia Casarosa *
7  * *
8  **************************************************************************/
9 
10 #pragma once
11 
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <svd/calibration/SVDClusterCalibrations.h>
15 
16 #include <tracking/spacePointCreation/SpacePoint.h>
17 
18 #include <string>
19 
20 #include <TFile.h>
21 
22 namespace Belle2 {
34  class SVDSpacePointCreatorModule : public Module {
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_svdClustersName = "SVDClusters";
73  std::string m_spacePointsName = "";
78  float m_minClusterTime = -999;
80  // modification parameters
81  std::string m_nameOfInstance =
82  "";
85  false;
87  std::string m_inputPDF = "";
89  TFile* m_calibrationFile = nullptr;
91  bool m_useLegacyNaming = true;
93  bool m_useQualityEstimator = false;
94  //counters for testing
95  unsigned int m_TESTERSVDClusterCtr = 0;
97  unsigned int m_TESTERSpacePointCtr = 0;
100  };
102 } // end namespace Belle2
Belle2::SVDSpacePointCreatorModule::m_minClusterTime
float m_minClusterTime
clusters with time below this value are not considered to make spacePoints
Definition: SVDSpacePointCreatorModule.h:85
Belle2::SVDSpacePointCreatorModule::m_useQualityEstimator
bool m_useQualityEstimator
Standard is true.
Definition: SVDSpacePointCreatorModule.h:100
Belle2::SVDSpacePointCreatorModule::m_useLegacyNaming
bool m_useLegacyNaming
Choice between PDF naming conventions.
Definition: SVDSpacePointCreatorModule.h:98
Belle2::SVDSpacePointCreatorModule::m_svdClusters
StoreArray< SVDCluster > m_svdClusters
the storeArray for svdClusters as member, is faster than recreating link for each event
Definition: SVDSpacePointCreatorModule.h:78
Belle2::SVDSpacePointCreatorModule::m_spacePointsName
std::string m_spacePointsName
SpacePoints collection name.
Definition: SVDSpacePointCreatorModule.h:80
Belle2::SVDSpacePointCreatorModule::terminate
virtual void terminate() override
final output with mini-feedback
Definition: SVDSpacePointCreatorModule.cc:132
Belle2::SVDSpacePointCreatorModule::m_inputPDF
std::string m_inputPDF
File path of root file containing pdf histograms.
Definition: SVDSpacePointCreatorModule.h:94
Belle2::SVDSpacePointCreatorModule::initialize
virtual void initialize() override
Init the module.
Definition: SVDSpacePointCreatorModule.cc:57
Belle2::SVDSpacePointCreatorModule::m_ClusterCal
SVDClusterCalibrations m_ClusterCal
SVDCluster calibration db object.
Definition: SVDSpacePointCreatorModule.h:106
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SVDSpacePointCreatorModule::m_TESTERSpacePointCtr
unsigned int m_TESTERSpacePointCtr
counts total number of SpacePoints occured
Definition: SVDSpacePointCreatorModule.h:104
Belle2::SVDSpacePointCreatorModule::event
virtual void event() override
eventWise jobs (e.g.
Definition: SVDSpacePointCreatorModule.cc:94
Belle2::SVDSpacePointCreatorModule::SVDSpacePointCreatorModule
SVDSpacePointCreatorModule()
Constructor.
Definition: SVDSpacePointCreatorModule.cc:22
Belle2::SVDSpacePointCreatorModule::m_TESTERSVDClusterCtr
unsigned int m_TESTERSVDClusterCtr
counts total number of SVDCluster occured
Definition: SVDSpacePointCreatorModule.h:102
Belle2::SVDSpacePointCreatorModule::m_svdClustersName
std::string m_svdClustersName
SVDCluster collection name.
Definition: SVDSpacePointCreatorModule.h:75
Belle2::SVDSpacePointCreatorModule::InitializeCounters
void InitializeCounters()
initialize variables in constructor to avoid nondeterministic behavior
Definition: SVDSpacePointCreatorModule.cc:143
Belle2::SVDSpacePointCreatorModule::m_calibrationFile
TFile * m_calibrationFile
Pointer to root TFile containing PDF histograms.
Definition: SVDSpacePointCreatorModule.h:96
Belle2::SVDSpacePointCreatorModule::m_onlySingleClusterSpacePoints
bool m_onlySingleClusterSpacePoints
standard is false.
Definition: SVDSpacePointCreatorModule.h:91
Belle2::SVDClusterCalibrations
This class defines the dbobject and the methods to access the calibration of the cluster reconstructi...
Definition: SVDClusterCalibrations.h:40
Belle2::SVDSpacePointCreatorModule::m_nameOfInstance
std::string m_nameOfInstance
allows the user to set an identifier for this module.
Definition: SVDSpacePointCreatorModule.h:88
Belle2::StoreArray< SVDCluster >
Belle2::SVDSpacePointCreatorModule::m_spacePoints
StoreArray< SpacePoint > m_spacePoints
the storeArray for spacePoints as member, is faster than recreating link for each event
Definition: SVDSpacePointCreatorModule.h:83