From cd2c8822a139e83265ff49e23bb3f783255fa15f Mon Sep 17 00:00:00 2001 From: David Date: Sun, 15 Nov 2015 10:09:20 +0100 Subject: [PATCH] implement fix from Chris for mayconsumes race condition --- L1Trigger/DTTrackFinder/src/L1MuDTSectorReceiver.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/L1Trigger/DTTrackFinder/src/L1MuDTSectorReceiver.cc b/L1Trigger/DTTrackFinder/src/L1MuDTSectorReceiver.cc index 52f042ec8f4ba..103cda342bbb7 100644 --- a/L1Trigger/DTTrackFinder/src/L1MuDTSectorReceiver.cc +++ b/L1Trigger/DTTrackFinder/src/L1MuDTSectorReceiver.cc @@ -54,8 +54,10 @@ using namespace std; //---------------- L1MuDTSectorReceiver::L1MuDTSectorReceiver(L1MuDTSectorProcessor& sp, edm::ConsumesCollector && iC) : m_sp(sp), - m_DTDigiToken(iC.consumes(L1MuDTTFConfig::getDTDigiInputTag())), - m_CSCTrSToken(iC.mayConsume >(L1MuDTTFConfig::getCSCTrSInputTag())) { + m_DTDigiToken(iC.consumes(L1MuDTTFConfig::getDTDigiInputTag())) +{ + if (L1MuDTTFConfig::getCSCTrSInputTag().label() != "none" ) + m_CSCTrSToken=iC.consumes >(L1MuDTTFConfig::getCSCTrSInputTag()); }