Belle II Software development
SVDExtraEventStatisticsModule Class Reference
Inheritance diagram for SVDExtraEventStatisticsModule:
PerEventStatisticsGetterModule

Public Member Functions

def __init__ (self, filename)
 
def initialize (self)
 
def event (self)
 

Public Attributes

 svdSPs
 StoreArray of SVDSpacePoints.
 
 svdclusters
 StoreArray of SVDClusters.
 
 svdstrips
 StoreArray of SVDShaperDigits.
 
 svdZS5strips
 StoreArray of ZS5 SVDShaperDigits.
 
 tracks
 StoreArray of Tracks.
 
 svd_sps
 array storing the number of SVDSpacePoints
 
 svd_clusters
 array storing the number of SVDClusters
 
 svd_strips
 array storing the number of SVDShaperDigits
 
 svd_ZS5strips
 array storing the number of ZS5 SVDShaperDigits
 
 svd_tracks
 array storing the number of tracks
 

Detailed Description

a basf2 python module to export all module time statistics (PerEventStatisticsGetterModule) +
number of SVDSpacePoints, SVDClusters, SVDShaperDigits and SVDSHaperDigitsZS5
into a ROOT TTree written to a file.

Definition at line 29 of file executionTime_utils.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  filename 
)
creates the module
@param filename: name of the rootfile where the TTree is written.

Reimplemented from PerEventStatisticsGetterModule.

Definition at line 36 of file executionTime_utils.py.

36 def __init__(self, filename):
37 """
38 creates the module
39 @param filename: name of the rootfile where the TTree is written.
40 """
41 super().__init__(filename)
42
43 self.svdSPs = Belle2.PyStoreArray("SVDSpacePoints")
44
45 self.svdclusters = Belle2.PyStoreArray("SVDClusters")
46
47 self.svdstrips = Belle2.PyStoreArray("SVDShaperDigits")
48
49 self.svdZS5strips = Belle2.PyStoreArray("SVDShaperDigitsZS5")
50
51 self.tracks = Belle2.PyStoreArray("Tracks")
52
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

Member Function Documentation

◆ event()

def event (   self)
 event 

Reimplemented from PerEventStatisticsGetterModule.

Definition at line 88 of file executionTime_utils.py.

88 def event(self):
89 """ event """
90
91 self.svd_sps[0] = self.svdSPs.getEntries()
92 self.svd_clusters[0] = self.svdclusters.getEntries()
93 self.svd_strips[0] = self.svdstrips.getEntries()
94
95 if self.svdZS5strips.isOptional():
96 self.svd_ZS5strips[0] = self.svdZS5strips.getEntries()
97 if self.tracks.isOptional():
98 self.svd_tracks[0] = self.tracks.getEntries()
99
100 super().event()

◆ initialize()

def initialize (   self)
Create the needed store object pointer in the DataStore and the TFile with the TTree.

Reimplemented from PerEventStatisticsGetterModule.

Definition at line 53 of file executionTime_utils.py.

53 def initialize(self):
54 """
55 Create the needed store object pointer in the DataStore and the TFile with the TTree.
56 """
57
58 super().initialize()
59
60 self.svd_sps = np.zeros(1, dtype=np.int32)
61
62 self.svd_clusters = np.zeros(1, dtype=np.int32)
63
64 self.svd_strips = np.zeros(1, dtype=np.int32)
65
66 self.svd_ZS5strips = np.zeros(1, dtype=np.int32)
67
68 self.svd_tracks = np.zeros(1, dtype=np.int32)
69
70
71 self.statistics.Branch('svdSPs', self.svd_sps[0:], "svdSPs/I")
72
73 self.statistics.Branch('svdClusters', self.svd_clusters[0:], "svdClusters/I")
74
75 self.statistics.Branch('svdStrips', self.svd_strips[0:], "svdStrips/I")
76
77 self.statistics.Branch('svdZS5strips', self.svd_ZS5strips[0:], "svdZS5strips/I")
78
79 self.statistics.Branch('tracks', self.svd_tracks[0:], "tracks/I")
80
81 self.svdSPs.isRequired()
82 self.svdclusters.isRequired()
83 self.svdstrips.isRequired()
84
85 self.svdZS5strips.isOptional()
86 self.tracks.isOptional()
87

Member Data Documentation

◆ svd_clusters

svd_clusters

array storing the number of SVDClusters

Definition at line 62 of file executionTime_utils.py.

◆ svd_sps

svd_sps

array storing the number of SVDSpacePoints

Definition at line 60 of file executionTime_utils.py.

◆ svd_strips

svd_strips

array storing the number of SVDShaperDigits

Definition at line 64 of file executionTime_utils.py.

◆ svd_tracks

svd_tracks

array storing the number of tracks

Definition at line 68 of file executionTime_utils.py.

◆ svd_ZS5strips

svd_ZS5strips

array storing the number of ZS5 SVDShaperDigits

Definition at line 66 of file executionTime_utils.py.

◆ svdclusters

svdclusters

StoreArray of SVDClusters.

Definition at line 45 of file executionTime_utils.py.

◆ svdSPs

svdSPs

StoreArray of SVDSpacePoints.

Definition at line 43 of file executionTime_utils.py.

◆ svdstrips

svdstrips

StoreArray of SVDShaperDigits.

Definition at line 47 of file executionTime_utils.py.

◆ svdZS5strips

svdZS5strips

StoreArray of ZS5 SVDShaperDigits.

Definition at line 49 of file executionTime_utils.py.

◆ tracks

tracks

StoreArray of Tracks.

Definition at line 51 of file executionTime_utils.py.


The documentation for this class was generated from the following file: