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

Public Member Functions

def beginRun (self)
 

Detailed Description

 importer of the SVD Reconstruction Configuration

Definition at line 43 of file SVDRecoConfigurationImporter.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
begin run

Definition at line 46 of file SVDRecoConfigurationImporter.py.

46  def beginRun(self):
47  '''begin run'''
48 
50 
51  uniqueID = "SVDRecoConfiguration_default_3=6_" + \
52  str(now.isoformat()) + "_INFO:" + \
53  "_" + str(algorithmFor_timeRecoWith6Samples) + "Time" + \
54  "_" + str(algorithmFor_chargeRecoWith6Samples) + "Charge" + \
55  "_" + str(algorithmFor_positionRecoWith6Samples) + "Position"
56 
57  groupingSpecificString = ""
58  if grouping_stateOfTimeGroupingInClusterizerIn6Samples and grouping_stateOfTimeGroupingInClusterizerIn3Samples:
59  if grouping_useOfSVDGroupInfoInSPCreatorIn6Samples or grouping_useOfSVDGroupInfoInSPCreatorIn3Samples:
60  groupingSpecificString += "_groupSelectionON"
61  else:
62  groupingSpecificString += "_groupIdON"
63  elif grouping_stateOfTimeGroupingInClusterizerIn6Samples:
64  if grouping_useOfSVDGroupInfoInSPCreatorIn6Samples:
65  groupingSpecificString += "_6groupSelectionON"
66  else:
67  groupingSpecificString += "_6groupIdON"
68  elif grouping_stateOfTimeGroupingInClusterizerIn3Samples:
69  if grouping_useOfSVDGroupInfoInSPCreatorIn3Samples:
70  groupingSpecificString += "_3groupSelectionON"
71  else:
72  groupingSpecificString += "_3groupIdON"
73 
74  uniqueID += groupingSpecificString
75 
76  cutOnSampleSNRSpecificString = ""
77  if snr_useOfSVDSpacePointSNRFractionIn6Samples and snr_useOfSVDSpacePointSNRFractionIn3Samples:
78  cutOnSampleSNRSpecificString = "_cutOnSampleSNRFractionON"
79  elif snr_useOfSVDSpacePointSNRFractionIn6Samples:
80  cutOnSampleSNRSpecificString = "_cutOn6SampleSNRFractionON"
81  elif snr_useOfSVDSpacePointSNRFractionIn3Samples:
82  cutOnSampleSNRSpecificString = "_cutOn3SampleSNRFractionON"
83 
84  uniqueID += cutOnSampleSNRSpecificString
85 
86  payload = Belle2.SVDRecoConfiguration(uniqueID)
87 
88  # cluster time
89  payload.setTimeRecoWith6Samples(algorithmFor_timeRecoWith6Samples)
90  payload.setTimeRecoWith3Samples(algorithmFor_timeRecoWith3Samples)
91  # cluster position
92  payload.setPositionRecoWith6Samples(algorithmFor_positionRecoWith6Samples)
93  payload.setPositionRecoWith3Samples(algorithmFor_positionRecoWith3Samples)
94  # cluster charge
95  payload.setChargeRecoWith6Samples(algorithmFor_chargeRecoWith6Samples)
96  payload.setChargeRecoWith3Samples(algorithmFor_chargeRecoWith3Samples)
97  # strip time
98  payload.setStripTimeRecoWith6Samples(algorithmFor_stripTimeRecoWith6Samples)
99  payload.setStripTimeRecoWith3Samples(algorithmFor_stripTimeRecoWith3Samples)
100  # strip charge
101  payload.setStripChargeRecoWith6Samples(algorithmFor_stripChargeRecoWith6Samples)
102  payload.setStripChargeRecoWith3Samples(algorithmFor_stripChargeRecoWith3Samples)
103  # SVDTimeGrouping
104  payload.setStateOfSVDTimeGrouping(6, grouping_stateOfTimeGroupingInClusterizerIn6Samples)
105  payload.setUseOfSVDGroupInfoInSPCreator(6, grouping_useOfSVDGroupInfoInSPCreatorIn6Samples)
106  payload.setStateOfSVDTimeGrouping(3, grouping_stateOfTimeGroupingInClusterizerIn3Samples)
107  payload.setUseOfSVDGroupInfoInSPCreator(3, grouping_useOfSVDGroupInfoInSPCreatorIn3Samples)
108  # Cut on sample SNR
109  payload.setUseOfSVDSpacePointSNRFraction(6, snr_useOfSVDSpacePointSNRFractionIn6Samples)
110  payload.setUseOfSVDSpacePointSNRFraction(3, snr_useOfSVDSpacePointSNRFractionIn3Samples)
111 
112  Belle2.Database.Instance().storeData(Belle2.SVDRecoConfiguration.name, payload, iov)
113 
114 
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
This class store the reconstruction configuration of SVD.
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:42

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