Belle II Software  release-08-01-10
SVDExtraEventStatisticsModule Class Reference
Inheritance diagram for SVDExtraEventStatisticsModule:
Collaboration diagram for SVDExtraEventStatisticsModule:

Public Member Functions

def __init__ (self, filename)
 
def initialize (self)
 
def event (self)
 
def terminate (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
 
 output_file_name
 Name of the output file.
 
 tfile
 Will host the pointer to the opened TFile later.
 
 statistics
 Will host the TTree later.
 
 event_number
 The columns to store the event number.
 
 ttree_inputs
 The columns for the statistics TTree (they will be filled in the event function).
 
 last_time_sum
 Last recored sum of event calls for all modules.
 
 branches_added
 A flag to indicate that we have already added the Branches to the TTree (which we will do in the first event)
 
 event_meta_data
 The event meta data.
 

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 30 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 37 of file executionTime_utils.py.

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

Member Function Documentation

◆ event()

def event (   self)
 event 

Reimplemented from PerEventStatisticsGetterModule.

Definition at line 89 of file executionTime_utils.py.

◆ 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 54 of file executionTime_utils.py.

◆ terminate()

def terminate (   self)
inherited
Write out the merged statistics to the ROOT file.
This should only be called once, as we would end up with different versions otherwise.

Definition at line 130 of file per_event_statistics.py.


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