From b70dfc25cd889c58dccf42d843c286753bf963ff Mon Sep 17 00:00:00 2001 From: Davide Zuolo Date: Wed, 12 Jul 2023 11:19:58 +0200 Subject: [PATCH] Adding cov matrix to fakeBS object --- .../BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc b/RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc index efda9e22daa7c..e113ae2db20eb 100644 --- a/RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc +++ b/RecoVertex/BeamSpotProducer/plugins/OnlineBeamSpotESProducer.cc @@ -54,6 +54,14 @@ OnlineBeamSpotESProducer::OnlineBeamSpotESProducer(const edm::ParameterSet& p) fakeBS_.setSigmaZ(15.); fakeBS_.setPosition(0.0001, 0.0001, 0.0001); fakeBS_.setType(-1); + // Set diagonal covariance, i.e. errors on the parameters + fakeBS_.setCovariance(0, 0, 5e-10); + fakeBS_.setCovariance(1, 1, 5e-10); + fakeBS_.setCovariance(2, 2, 0.002); + fakeBS_.setCovariance(3, 3, 0.002); + fakeBS_.setCovariance(4, 4, 5e-11); + fakeBS_.setCovariance(5, 5, 5e-11); + fakeBS_.setCovariance(6, 6, 1e-09); bsHLTToken_ = cc.consumesFrom(); bsLegacyToken_ = cc.consumesFrom();