20from ROOT
import Belle2
24if not input_files.empty()
and input_files.front().endswith(
".sroot"):
25 root_input = b2.register_module(
'SeqRootInput')
27 root_input = b2.register_module(
'RootInput')
29main = b2.create_path()
30main.add_module(root_input)
33b2.conditions.override_globaltags()
34b2.use_database_chain()
35b2.use_central_database(
"data_reprocessing_prompt")
36b2.use_central_database(
"online")
39b2.set_log_level(b2.LogLevel.INFO)
42cdc_unpacker = b2.register_module(
'CDCUnpacker')
43cdc_unpacker.param(
'enableStoreCDCRawHit',
True)
44main.add_module(cdc_unpacker)
45main.add_module(
'Gearbox')
46main.add_module(
'Geometry', components=[
'CDC',
47 'MagneticFieldConstant4LimitedRCDC'])
49cdcdigitizer = b2.register_module(
'CDCDigitizer')
50param_cdcdigi = {
'Fraction': 1,
53cdcdigitizer.param(param_cdcdigi)
54cdcdigitizer.param(
'AddInWirePropagationDelay',
True)
55cdcdigitizer.param(
'AddTimeOfFlight',
True)
56cdcdigitizer.param(
'UseSimpleDigitization',
True)
57cdcdigitizer.param(
'UseDB4EDepToADC',
False)
58cdcdigitizer.param(
'UseDB4FEE',
False)
59cdcdigitizer.param(
'AddXTalk',
False)
60main.add_module(cdcdigitizer)
63main.add_module(
'CDCTriggerTSF',
66 TSHitCollectionName=
'CDCTriggerSegmentHits')
72 main.add_module(
'CDCTriggerHoughETF',
74 useHighPassTimingList=
False,
75 usePriorityTiming=
False,
77 hitCollectionName=
"CDCTriggerSegmentHits",
78 outputCollectionName=
"CDCTriggerETFTracks")
81 main.add_module(
'CDCTriggerHoughETF',
82 hitCollectionName=
"CDCTriggerSegmentHits")
85main.add_module(
'Progress')
88output_name =
'etfout.root'
89main.add_module(
'RootOutput', outputFileName=output_name)
static Environment & Instance()
Static method to get a reference to the Environment instance.
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...