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

Public Member Functions

def beginRun (self)
 

Detailed Description

Defining the python module to do the import.

Definition at line 37 of file SVDDefaultHitTimeSelectionImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
call the functions to import the cluster parameters

Definition at line 42 of file SVDDefaultHitTimeSelectionImporter.py.

42  def beginRun(self):
43  """
44  call the functions to import the cluster parameters
45  """
47 
48  # SpacePoint time
49  hitTimeSelection = SVDHitTimeSelectionFunction()
50  # set default version = 0
51  hitTimeSelection.setFunctionID(clsTimeFunctionID)
52  # version 0: t > tMin
53  hitTimeSelection.setMinTime(clsTimeMin)
54  # version 1: |t-t0|<deltaT - NOT USED
55  hitTimeSelection.setDeltaTime(clsTimeDeltaT)
56  # version 2: |t-t0|<nSgma*tErrTOT - NOT USED
57  hitTimeSelection.setNsigma(clsTimeNSigma)
58  # cluster time difference
59  hitTimeSelection.setMaxUVTimeDifference(clsTimeDiff)
61  hitTimeSelection, "HitTimeSelection_noCuts_" + str(now.isoformat()) +
62  "_INFO:_tmin=" + str(clsTimeMin) + "_tDiff=" + str(clsTimeDiff))
63 
65 
66  for layer in geoCache.getLayers(Belle2.VXD.SensorInfoBase.SVD):
67  layerNumber = layer.getLayerNumber()
68  for ladder in geoCache.getLadders(layer):
69  ladderNumber = ladder.getLadderNumber()
70  for sensor in geoCache.getSensors(ladder):
71  sensorNumber = sensor.getSensorNumber()
72  for side in (0, 1):
73  print("setting SVD Hit Time Selections for " +
74  str(layerNumber) + "." + str(ladderNumber) + "." + str(sensorNumber) + "." + str(side))
75 
76  Belle2.Database.Instance().storeData(Belle2.SVDHitTimeSelection.name, payload, iov)
77 
78 
79 b2conditions.prepend_globaltag('svd_onlySVDinGeoConfiguration')
80 
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
base class for calibrations classes
static GeoCache & getInstance()
Return a reference to the singleton instance.
Definition: GeoCache.cc:214
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:42

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