Skip to content

Commit

Permalink
Merge pull request cms-sw#41193 from mmusich/alternativeBSOnlineInPhase2
Browse files Browse the repository at this point in the history
Re-introduce `BeamSpotOnlineProducer` for Phase-2 HLT menu
  • Loading branch information
cmsbuild authored Apr 3, 2023
2 parents e55bc82 + de56fce commit bbd0c32
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import FWCore.ParameterSet.Config as cms

hltOnlineBeamSpotESProducer = cms.ESProducer("OnlineBeamSpotESProducer",
timeThreshold = cms.int32( 48 ),
sigmaZThreshold = cms.double( 2.0 ),
sigmaXYThreshold = cms.double( 4.0 )
)
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import FWCore.ParameterSet.Config as cms

hltOnlineBeamSpot = cms.EDProducer("BeamSpotProducer")
hltOnlineBeamSpot = cms.EDProducer("BeamSpotOnlineProducer",
useTransientRecord = cms.bool(True),
changeToCMSCoordinates = cms.bool(False),
gtEvmLabel = cms.InputTag(""),
maxRadius = cms.double(2.0),
maxZ = cms.double(40.0),
setSigmaZ = cms.double(0.0))
1 change: 1 addition & 0 deletions HLTrigger/Configuration/python/HLT_75e33_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
fragment.load("HLTrigger/Configuration/HLT_75e33/eventsetup/muonSeededTrajectoryCleanerBySharedHits_cfi")

### Mostly comes from HLT-like configuration, not RECO-like configuration
fragment.load("HLTrigger/Configuration/HLT_75e33/eventsetup/hltOnlineBeamSpotESProducer_cfi")
fragment.load("HLTrigger/Configuration/HLT_75e33/eventsetup/hltESPBwdElectronPropagator_cfi")
fragment.load("HLTrigger/Configuration/HLT_75e33/eventsetup/hltESPChi2ChargeMeasurementEstimator2000_cfi")
fragment.load("HLTrigger/Configuration/HLT_75e33/eventsetup/hltESPChi2ChargeMeasurementEstimator30_cfi")
Expand Down
5 changes: 3 additions & 2 deletions RecoVertex/BeamSpotProducer/plugins/BeamSpotOnlineProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ BeamSpotOnlineProducer::BeamSpotOnlineProducer(const ParameterSet& iconf)
theMaxZ(iconf.getParameter<double>("maxZ")),
theSetSigmaZ(iconf.getParameter<double>("setSigmaZ")),
useTransientRecord_(iconf.getParameter<bool>("useTransientRecord")),
scalerToken_(consumes<BeamSpotOnlineCollection>(iconf.getParameter<InputTag>("src"))),
scalerToken_(useTransientRecord_ ? edm::EDGetTokenT<BeamSpotOnlineCollection>()
: consumes<BeamSpotOnlineCollection>(iconf.getParameter<InputTag>("src"))),
l1GtEvmReadoutRecordToken_(consumes<L1GlobalTriggerEvmReadoutRecord>(iconf.getParameter<InputTag>("gtEvmLabel"))),
beamToken_(esConsumes<BeamSpotObjects, BeamSpotObjectsRcd>()),
beamTransientToken_(esConsumes<BeamSpotObjects, BeamSpotTransientObjectsRcd>()),
Expand All @@ -79,7 +80,7 @@ void BeamSpotOnlineProducer::fillDescriptions(edm::ConfigurationDescriptions& iD
ps.add<double>("maxZ", 40.);
ps.add<double>("setSigmaZ", -1.);
ps.addUntracked<unsigned int>("beamMode", 11);
ps.add<InputTag>("src", InputTag("hltScalersRawToDigi"));
ps.addOptional<InputTag>("src", InputTag("hltScalersRawToDigi"))->setComment("SCAL decommissioned after Run 2");
ps.add<InputTag>("gtEvmLabel", InputTag(""));
ps.add<double>("maxRadius", 2.0);
ps.add<bool>("useTransientRecord", false);
Expand Down

0 comments on commit bbd0c32

Please sign in to comment.