Skip to content
Snippets Groups Projects

Spruce reports to RawBanks, further cleanup of HltDAQ

Merged Gerhard Raven requested to merge cleanup-hltdaq into master
Compare and
40 files
+ 833
1496
Compare changes
  • Side-by-side
  • Inline
Files
40
@@ -171,21 +171,14 @@ tool2 = tool.clone(tname + "/ToolSvc." + tname)
#report, the type of report
for report in ["Dec", "Sel"]:
#hlt, which HLT to decode? None=both, 1=Hlt1, 2=Hlt2
for hlt in [None, 1, 2]:
hltname = "Hlt"
algtype = "Hlt" + report + "ReportsDecoder"
algname = algtype
active = False
if hlt is not None:
hltname = hltname + str(hlt)
algname = algtype + "/" + hltname + report + "ReportsDecoder"
active = True
#which HLT to decode?
for hltname in ["Hlt1", "Hlt2"]:
#create the decoder
dec = Decoder(
#\/ e.g. HltSelReportsDecoder/Hlt1SelReportsDecoder
algname,
active,
"Hlt" + report + "ReportsDecoder/" + hltname + report +
"ReportsDecoder",
active=True,
#\/ e.g. HltSelReports
banks=["Hlt" + report + "Reports"],
inputs={"RawEventLocations": None},
@@ -194,34 +187,27 @@ for report in ["Dec", "Sel"]:
"OutputHlt" + report + "ReportsLocation":
hltname + "/" + report + "Reports"
},
properties={"SourceID": hlt}, #None=default(0)
properties={"SourceID": hltname},
conf=DecoderDB)
if report == "Sel":
dec.Outputs[
"OutputHltObjectSummariesLocation"] = hltname + "/SelReports/Candidates"
#Vertex Decoder
Decoder(
"HltVertexReportsDecoder",
active=True,
banks=["HltVertexReports"],
inputs={"RawEventLocations": None},
outputs={
"OutputHltVertexLocations":
["Hlt/VertexReports/PV3D", "Hlt/VertexReports/ProtoPV3D"]
},
conf=DecoderDB)
#Also TrackingDecoder, but don't make it active, it's only used during HLT2 stand-alone!
Decoder(
"HltTrackReportsDecoder",
active=False,
banks=["HltTrackReports"],
inputs={"RawEventLocations": None},
outputs={
"OutputHltTrackReportsLocation":
["Hlt/Track/Velo", "Hlt/Track/VeloTTHPT", "Hlt/Track/ForwardHPT"]
},
conf=DecoderDB)
for hltname in ["Hlt1", "Hlt2"]:
Decoder(
"HltVertexReportsDecoder/" + hltname + "VertexReportsDecoder",
active=True,
banks=["HltVertexReports"],
inputs={"RawEventLocations": None},
outputs={
"OutputHltVertexReportsLocations": [
hltname + "/VertexReports/PV3D",
hltname + "/VertexReports/ProtoPV3D"
]
},
properties={"SourceID": hltname},
conf=DecoderDB)
#is a Routing bits filter really a decoder? it doesn't create output...
Decoder(
Loading