Belle II Software prerelease-11-00-00a
InflateCDCHits Class Reference
Inheritance diagram for InflateCDCHits:
Collaboration diagram for InflateCDCHits:

Public Member Functions

 initialize (self)
 
 event (self)
 

Public Attributes

 cdc_hits = Belle2.PyStoreArray("CDCHits")
 CDC hits.
 
int cdc_hits_threshold = eodb_parameters.getNCDCHitsMax() + 1
 CDC hits threshold.
 

Detailed Description

Artificially inflate the number of CDC hits.

Definition at line 42 of file test_support.py.

Member Function Documentation

◆ event()

event ( self)
Event

Definition at line 60 of file test_support.py.

60 def event(self):
61 """Event"""
62 # Let's simply append a (default) CDC hit multiple times
63 for i in range(self.cdc_hits_threshold):
64 self.cdc_hits.appendNew()
65
66

◆ initialize()

initialize ( self)
Initialize.

Definition at line 45 of file test_support.py.

45 def initialize(self):
46 """Initialize."""
47
48 self.cdc_hits = Belle2.PyStoreArray("CDCHits")
49 present = self.cdc_hits.isOptional()
50 if present:
51 self.cdc_hits.isRequired()
52 else:
53 self.cdc_hits.registerInDataStore()
54 eodb_parameters = Belle2.PyDBObj("EventsOfDoomParameters")
55 if not eodb_parameters.isValid():
56 basf2.B2FATAL("EventsOfDoomParameters is not valid")
57
58 self.cdc_hits_threshold = eodb_parameters.getNCDCHitsMax() + 1
59
Class to access a DBObjPtr from Python.
Definition PyDBObj.h:50
A (simplified) python wrapper for StoreArray.

Member Data Documentation

◆ cdc_hits

cdc_hits = Belle2.PyStoreArray("CDCHits")

CDC hits.

Definition at line 48 of file test_support.py.

◆ cdc_hits_threshold

cdc_hits_threshold = eodb_parameters.getNCDCHitsMax() + 1

CDC hits threshold.

Definition at line 58 of file test_support.py.


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