20 from ROOT
import Belle2
24 if not input_files.empty()
and input_files.front().endswith(
".sroot"):
25 root_input = b2.register_module(
'SeqRootInput')
27 root_input = b2.register_module(
'RootInput')
29 main = b2.create_path()
30 main.add_module(root_input)
33 b2.conditions.override_globaltags()
34 b2.use_database_chain()
35 b2.use_central_database(
"data_reprocessing_prompt")
36 b2.use_central_database(
"online")
39 b2.set_log_level(b2.LogLevel.INFO)
42 cdc_unpacker = b2.register_module(
'CDCUnpacker')
43 cdc_unpacker.param(
'enableStoreCDCRawHit',
True)
44 main.add_module(cdc_unpacker)
45 main.add_module(
'Gearbox')
46 main.add_module(
'Geometry', components=[
'CDC',
47 'MagneticFieldConstant4LimitedRCDC'])
49 cdcdigitizer = b2.register_module(
'CDCDigitizer')
50 param_cdcdigi = {
'Fraction': 1,
53 cdcdigitizer.param(param_cdcdigi)
54 cdcdigitizer.param(
'AddInWirePropagationDelay',
True)
55 cdcdigitizer.param(
'AddTimeOfFlight',
True)
56 cdcdigitizer.param(
'UseSimpleDigitization',
True)
57 cdcdigitizer.param(
'UseDB4EDepToADC',
False)
58 cdcdigitizer.param(
'UseDB4FEE',
False)
59 cdcdigitizer.param(
'AddXTalk',
False)
60 main.add_module(cdcdigitizer)
63 main.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")
85 main.add_module(
'Progress')
88 output_name =
'etfout.root'
89 main.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...