12Importer of the SVD Reconstruction Configuration
15from ROOT
import Belle2
18now = datetime.datetime.now()
21algorithmFor_timeRecoWith6Samples =
"CoG3"
22algorithmFor_timeRecoWith3Samples =
"CoG3"
23algorithmFor_positionRecoWith6Samples =
"CoGOnly"
24algorithmFor_positionRecoWith3Samples =
"CoGOnly"
25algorithmFor_chargeRecoWith6Samples =
"MaxSample"
26algorithmFor_chargeRecoWith3Samples =
"MaxSample"
28algorithmFor_stripTimeRecoWith6Samples =
"dontdo"
29algorithmFor_stripTimeRecoWith3Samples =
"dontdo"
30algorithmFor_stripChargeRecoWith6Samples =
"MaxSample"
31algorithmFor_stripChargeRecoWith3Samples =
"MaxSample"
33grouping_stateOfTimeGroupingInClusterizerIn6Samples =
True
34grouping_useOfSVDGroupInfoInSPCreatorIn6Samples =
True
35grouping_stateOfTimeGroupingInClusterizerIn3Samples =
False
36grouping_useOfSVDGroupInfoInSPCreatorIn3Samples =
False
38snr_useOfSVDSpacePointSNRFractionIn6Samples =
False
39snr_useOfSVDSpacePointSNRFractionIn3Samples =
False
43 ''' importer of the SVD Reconstruction Configuration'''
50 uniqueID =
"SVDRecoConfiguration_default_3=6_" + \
51 str(now.isoformat()) +
"_INFO:" + \
52 "_" + str(algorithmFor_timeRecoWith6Samples) +
"Time" + \
53 "_" + str(algorithmFor_chargeRecoWith6Samples) +
"Charge" + \
54 "_" + str(algorithmFor_positionRecoWith6Samples) +
"Position"
56 groupingSpecificString =
""
57 if grouping_stateOfTimeGroupingInClusterizerIn6Samples
and grouping_stateOfTimeGroupingInClusterizerIn3Samples:
58 if grouping_useOfSVDGroupInfoInSPCreatorIn6Samples
or grouping_useOfSVDGroupInfoInSPCreatorIn3Samples:
59 groupingSpecificString +=
"_groupSelectionON"
61 groupingSpecificString +=
"_groupIdON"
62 elif grouping_stateOfTimeGroupingInClusterizerIn6Samples:
63 if grouping_useOfSVDGroupInfoInSPCreatorIn6Samples:
64 groupingSpecificString +=
"_6groupSelectionON"
66 groupingSpecificString +=
"_6groupIdON"
67 elif grouping_stateOfTimeGroupingInClusterizerIn3Samples:
68 if grouping_useOfSVDGroupInfoInSPCreatorIn3Samples:
69 groupingSpecificString +=
"_3groupSelectionON"
71 groupingSpecificString +=
"_3groupIdON"
73 uniqueID += groupingSpecificString
75 cutOnSampleSNRSpecificString =
""
76 if snr_useOfSVDSpacePointSNRFractionIn6Samples
and snr_useOfSVDSpacePointSNRFractionIn3Samples:
77 cutOnSampleSNRSpecificString =
"_cutOnSampleSNRFractionON"
78 elif snr_useOfSVDSpacePointSNRFractionIn6Samples:
79 cutOnSampleSNRSpecificString =
"_cutOn6SampleSNRFractionON"
80 elif snr_useOfSVDSpacePointSNRFractionIn3Samples:
81 cutOnSampleSNRSpecificString =
"_cutOn3SampleSNRFractionON"
83 uniqueID += cutOnSampleSNRSpecificString
88 payload.setTimeRecoWith6Samples(algorithmFor_timeRecoWith6Samples)
89 payload.setTimeRecoWith3Samples(algorithmFor_timeRecoWith3Samples)
91 payload.setPositionRecoWith6Samples(algorithmFor_positionRecoWith6Samples)
92 payload.setPositionRecoWith3Samples(algorithmFor_positionRecoWith3Samples)
94 payload.setChargeRecoWith6Samples(algorithmFor_chargeRecoWith6Samples)
95 payload.setChargeRecoWith3Samples(algorithmFor_chargeRecoWith3Samples)
97 payload.setStripTimeRecoWith6Samples(algorithmFor_stripTimeRecoWith6Samples)
98 payload.setStripTimeRecoWith3Samples(algorithmFor_stripTimeRecoWith3Samples)
100 payload.setStripChargeRecoWith6Samples(algorithmFor_stripChargeRecoWith6Samples)
101 payload.setStripChargeRecoWith3Samples(algorithmFor_stripChargeRecoWith3Samples)
103 payload.setStateOfSVDTimeGrouping(6, grouping_stateOfTimeGroupingInClusterizerIn6Samples)
104 payload.setUseOfSVDGroupInfoInSPCreator(6, grouping_useOfSVDGroupInfoInSPCreatorIn6Samples)
105 payload.setStateOfSVDTimeGrouping(3, grouping_stateOfTimeGroupingInClusterizerIn3Samples)
106 payload.setUseOfSVDGroupInfoInSPCreator(3, grouping_useOfSVDGroupInfoInSPCreatorIn3Samples)
108 payload.setUseOfSVDSpacePointSNRFraction(6, snr_useOfSVDSpacePointSNRFractionIn6Samples)
109 payload.setUseOfSVDSpacePointSNRFraction(3, snr_useOfSVDSpacePointSNRFractionIn3Samples)
114main = basf2.create_path()
117eventinfosetter = basf2.register_module(
'EventInfoSetter')
118eventinfosetter.param({
'evtNumList': [1],
'expList': 0,
'runList': 0})
119main.add_module(eventinfosetter)
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.