Skip to content

Commit 1f2f38c

Browse files
authoredJun 2, 2022
Merge pull request #38103 from francescobrivio/alca-collisions_900GeV_12_3_X
[12_3_X] update BeamSpot HLT client to use correct raw data from TCDS
2 parents 971c956 + 4911996 commit 1f2f38c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
 

‎DQM/BeamMonitor/plugins/BeamMonitor.cc

+7
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,13 @@ void BeamMonitor::beginLuminosityBlock(const LuminosityBlock& lumiSeg, const Eve
668668
void BeamMonitor::analyze(const Event& iEvent, const EventSetup& iSetup) {
669669
const TCDSRecord& tcdsData = iEvent.get(tcdsToken_);
670670
int beamMode = tcdsData.getBST().getBeamMode();
671+
672+
// Check that the beamMode information is available in the event content
673+
if (beamMode == BSTRecord::BeamMode::NOMODE)
674+
edm::LogError("BeamMonitor") << "No BeamMode identified from BSTRecord!"
675+
"Please check that the event content has the raw data from TCDS FEDs (1024,1025)!";
676+
677+
// Check if stable beams are present
671678
if (beamMode == BSTRecord::BeamMode::STABLE)
672679
logToDb_ = true;
673680

‎DQM/Integration/python/clients/beamhlt_dqm_sourceclient-live_cfg.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,12 @@
150150
# Set rawDataRepacker (HI and live) or rawDataCollector (for all the rest)
151151
if (process.runType.getRunType() == process.runType.hi_run and live):
152152
rawDataInputTag = "rawDataRepacker"
153-
else:
153+
elif unitTest:
154+
# This is needed until we update the streamer files used for the unitTest
154155
rawDataInputTag = "rawDataCollector"
156+
else:
157+
# Use raw data from selected TCDS FEDs (1024, 1025)
158+
rawDataInputTag = "hltFEDSelectorTCDS"
155159

156160
process.tcdsDigis.InputLabel = rawDataInputTag
157161

0 commit comments

Comments
 (0)