Skip to content

Commit ea2a1d9

Browse files
authored
Merge pull request #161 from art-daq/revert-159-eflumerf/AccountForMultipleAnalyzers
Revert "When collecting the init_fragment_count, take art_analyzer_count into"
2 parents 888788c + ced0fb3 commit ea2a1d9

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

rc/control/bookkeeping.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,12 +1179,6 @@ def sends_to_via_RootNetOutput(proc1, proc2):
11791179

11801180
return False
11811181

1182-
def art_analyzer_count(procinfo):
1183-
res = re.search(r"\s*art_analyzer_count\s*:\s*([0-9\.e]+)", procinfo.fhicl_used)
1184-
if res:
1185-
return int(float(res.group(1)))
1186-
return 1
1187-
11881182
for subsystem_id, subsystem in self.subsystems.items():
11891183

11901184
init_fragment_counts = {}
@@ -1206,7 +1200,7 @@ def art_analyzer_count(procinfo):
12061200
if sends_to_via_RootNetOutput(
12071201
possible_sender_procinfo, procinfo
12081202
):
1209-
init_fragment_count += art_analyzer_count(possible_sender_procinfo)
1203+
init_fragment_count += 1
12101204
elif procinfo.name == "DataLogger":
12111205
for possible_sender_procinfo in [
12121206
pi
@@ -1217,7 +1211,7 @@ def art_analyzer_count(procinfo):
12171211
if sends_to_via_RootNetOutput(
12181212
possible_sender_procinfo, procinfo
12191213
):
1220-
init_fragment_count += art_analyzer_count(possible_sender_procinfo)
1214+
init_fragment_count += 1
12211215
elif procinfo.name == "Dispatcher":
12221216
for possible_sender_procinfo in [
12231217
pi
@@ -1228,7 +1222,7 @@ def art_analyzer_count(procinfo):
12281222
if sends_to_via_RootNetOutput(
12291223
possible_sender_procinfo, procinfo
12301224
):
1231-
init_fragment_count += art_analyzer_count(possible_sender_procinfo)
1225+
init_fragment_count += 1
12321226
if (
12331227
init_fragment_count == 0
12341228
): # Dispatcher will _always_ receive init Fragments, this probably means we're running without DataLoggers
@@ -1241,7 +1235,7 @@ def art_analyzer_count(procinfo):
12411235
if sends_to_via_RootNetOutput(
12421236
possible_sender_procinfo, procinfo
12431237
):
1244-
init_fragment_count += art_analyzer_count(possible_sender_procinfo)
1238+
init_fragment_count += 1
12451239

12461240
init_fragment_counts[procinfo.name] = init_fragment_count
12471241

0 commit comments

Comments
 (0)