![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, filename) | |
initialize (self) | |
event (self) | |
terminate (self) | |
Public Attributes | |
svdSPs = Belle2.PyStoreArray("SVDSpacePoints") | |
StoreArray of SVDSpacePoints. | |
svdclusters = Belle2.PyStoreArray("SVDClusters") | |
StoreArray of SVDClusters. | |
svdstrips = Belle2.PyStoreArray("SVDShaperDigits") | |
StoreArray of SVDShaperDigits. | |
svdZS5strips = Belle2.PyStoreArray("SVDShaperDigitsZS5") | |
StoreArray of ZS5 SVDShaperDigits. | |
tracks = Belle2.PyStoreArray("Tracks") | |
StoreArray of Tracks. | |
svd_sps = np.zeros(1, dtype=np.int32) | |
array storing the number of SVDSpacePoints | |
svd_clusters = np.zeros(1, dtype=np.int32) | |
array storing the number of SVDClusters | |
svd_strips = np.zeros(1, dtype=np.int32) | |
array storing the number of SVDShaperDigits | |
svd_ZS5strips = np.zeros(1, dtype=np.int32) | |
array storing the number of ZS5 SVDShaperDigits | |
svd_tracks = np.zeros(1, dtype=np.int32) | |
array storing the number of tracks | |
output_file_name = output_file_name | |
Name of the output file. | |
tfile = None | |
Will host the pointer to the opened TFile later. | |
statistics = None | |
Will host the TTree later. | |
event_number = np.zeros(3, dtype=float) | |
The columns to store the event number. | |
ttree_inputs = None | |
The columns for the statistics TTree (they will be filled in the event function). | |
last_time_sum = None | |
Last recorded sum of event calls for all modules. | |
bool | branches_added = False |
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 = ROOT.Belle2.PyStoreObj("EventMetaData") | |
The event meta data. | |
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.
__init__ | ( | self, | |
filename ) |
creates the module @param filename: name of the rootfile where the TTree is written.
Definition at line 36 of file executionTime_utils.py.
event | ( | self | ) |
event
Reimplemented from PerEventStatisticsGetterModule.
Definition at line 88 of file executionTime_utils.py.
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.
|
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.
|
inherited |
A flag to indicate that we have already added the Branches to the TTree (which we will do in the first event)
Definition at line 41 of file per_event_statistics.py.
|
inherited |
The event meta data.
Definition at line 47 of file per_event_statistics.py.
|
inherited |
The columns to store the event number.
Definition at line 34 of file per_event_statistics.py.
|
inherited |
Last recorded sum of event calls for all modules.
Definition at line 38 of file per_event_statistics.py.
|
inherited |
Name of the output file.
Definition at line 27 of file per_event_statistics.py.
|
inherited |
Will host the TTree later.
Definition at line 31 of file per_event_statistics.py.
svd_clusters = np.zeros(1, dtype=np.int32) |
array storing the number of SVDClusters
Definition at line 62 of file executionTime_utils.py.
svd_sps = np.zeros(1, dtype=np.int32) |
array storing the number of SVDSpacePoints
Definition at line 60 of file executionTime_utils.py.
svd_strips = np.zeros(1, dtype=np.int32) |
array storing the number of SVDShaperDigits
Definition at line 64 of file executionTime_utils.py.
svd_tracks = np.zeros(1, dtype=np.int32) |
array storing the number of tracks
Definition at line 68 of file executionTime_utils.py.
svd_ZS5strips = np.zeros(1, dtype=np.int32) |
array storing the number of ZS5 SVDShaperDigits
Definition at line 66 of file executionTime_utils.py.
svdclusters = Belle2.PyStoreArray("SVDClusters") |
StoreArray of SVDClusters.
Definition at line 45 of file executionTime_utils.py.
svdSPs = Belle2.PyStoreArray("SVDSpacePoints") |
StoreArray of SVDSpacePoints.
Definition at line 43 of file executionTime_utils.py.
svdstrips = Belle2.PyStoreArray("SVDShaperDigits") |
StoreArray of SVDShaperDigits.
Definition at line 47 of file executionTime_utils.py.
svdZS5strips = Belle2.PyStoreArray("SVDShaperDigitsZS5") |
StoreArray of ZS5 SVDShaperDigits.
Definition at line 49 of file executionTime_utils.py.
|
inherited |
Will host the pointer to the opened TFile later.
Definition at line 29 of file per_event_statistics.py.
tracks = Belle2.PyStoreArray("Tracks") |
StoreArray of Tracks.
Definition at line 51 of file executionTime_utils.py.
|
inherited |
The columns for the statistics TTree (they will be filled in the event function).
Definition at line 36 of file per_event_statistics.py.