#include <RecoVertex/BeamSpotProducer/plugins/BeamSpotCompatibilityChecker.cc>
Static Public Member Functions | |
static std::array< float, 6 > | compareBS (const reco::BeamSpot &BSA, const reco::BeamSpot &BSB) |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::global::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Attributes | |
edm::ESGetToken< BeamSpotObjects, BeamSpotObjectsRcd > | bsFromDBToken_ |
const edm::EDGetTokenT< reco::BeamSpot > | bsFromEventToken_ |
edm::EDGetTokenT< reco::BeamSpot > | dbBSfromEventToken_ |
const bool | dbFromEvent_ |
const double | throwingThreshold_ |
const bool | verbose_ |
const double | warningThreshold_ |
Static Private Attributes | |
static constexpr int | cmToum = 10000 |
Additional Inherited Members | |
Public Types inherited from edm::global::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Description: Class to check the compatibilty between the BeamSpot payload in the database and the one in the event
Implementation: Makes use of the Significance struct to establish how compatible are the data members of the two BeamSpots in input
Definition at line 78 of file BeamSpotCompatibilityChecker.cc.
|
explicit |
Definition at line 102 of file BeamSpotCompatibilityChecker.cc.
References bsFromDBToken_, dbBSfromEventToken_, dbFromEvent_, Exception, edm::ParameterSet::getParameter(), throwingThreshold_, and warningThreshold_.
|
overridedefault |
|
finalvirtual |
Implements edm::global::EDAnalyzerBase.
Definition at line 128 of file BeamSpotCompatibilityChecker.cc.
References funct::abs(), align::BeamSpot, BeamSpotObjects::beamWidthX(), reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthY(), bsFromDBToken_, bsFromEventToken_, cmToum, compareBS(), BeamSpotObjects::covariance(), dbBSfromEventToken_, dbFromEvent_, reco::BeamSpot::dimension, BeamSpotObjects::dxdz(), BeamSpotObjects::dydz(), Exception, edm::EventSetup::getHandle(), mps_fire::i, iEvent, dqmiolumiharvest::j, SummaryClient_cfi::labels, makeMuonMisalignmentScenario::matrix, mps_check::msg, edm::ESHandle< T >::product(), BeamSpotObjects::sigmaZ(), reco::BeamSpot::sigmaZ(), AlCaHLTBitMon_QueryRunRegistry::string, throwingThreshold_, to_string(), verbose_, warningThreshold_, BeamSpotObjects::x(), reco::BeamSpot::x0(), BeamSpotObjects::y(), reco::BeamSpot::y0(), BeamSpotObjects::z(), and reco::BeamSpot::z0().
|
static |
Definition at line 216 of file BeamSpotCompatibilityChecker.cc.
References reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthXError(), reco::BeamSpot::BeamWidthY(), reco::BeamSpot::BeamWidthYError(), runTheMatrix::ret, reco::BeamSpot::sigmaZ(), reco::BeamSpot::sigmaZ0Error(), reco::BeamSpot::x0(), reco::BeamSpot::x0Error(), reco::BeamSpot::y0(), reco::BeamSpot::y0Error(), reco::BeamSpot::z0(), and reco::BeamSpot::z0Error().
Referenced by analyze().
|
static |
Definition at line 233 of file BeamSpotCompatibilityChecker.cc.
References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and ProducerED_cfi::InputTag.
|
private |
Definition at line 95 of file BeamSpotCompatibilityChecker.cc.
Referenced by analyze(), and BeamSpotCompatibilityChecker().
|
private |
Definition at line 94 of file BeamSpotCompatibilityChecker.cc.
Referenced by analyze().
|
staticprivate |
Definition at line 89 of file BeamSpotCompatibilityChecker.cc.
Referenced by analyze().
|
private |
Definition at line 96 of file BeamSpotCompatibilityChecker.cc.
Referenced by analyze(), and BeamSpotCompatibilityChecker().
|
private |
Definition at line 93 of file BeamSpotCompatibilityChecker.cc.
Referenced by analyze(), and BeamSpotCompatibilityChecker().
|
private |
Definition at line 91 of file BeamSpotCompatibilityChecker.cc.
Referenced by analyze(), and BeamSpotCompatibilityChecker().
|
private |
Definition at line 92 of file BeamSpotCompatibilityChecker.cc.
Referenced by analyze().
|
private |
Definition at line 90 of file BeamSpotCompatibilityChecker.cc.
Referenced by analyze(), and BeamSpotCompatibilityChecker().