#include <CondTools/BeamSpot/plugins/BeamSpotOnlineShifter.cc>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
void | beginRun (const edm::Run &, const edm::EventSetup &) override |
const GlobalPoint | deltaAlignments (const Alignments *target, const Alignments *reference, const TrackerTopology &tTopo, const bool isFullPixel=false) |
void | endRun (const edm::Run &, const edm::EventSetup &) override |
const GlobalPoint | getPixelBarycenter (const AlignmentPI::TkAlBarycenters barycenters, const bool isFullPixel) |
Private Attributes | |
edm::ESWatcher< BeamSpotOnlineHLTObjectsRcd > | bsHLTWatcher_ |
edm::ESWatcher< BeamSpotOnlineLegacyObjectsRcd > | bsLegayWatcher_ |
uint32_t | fIOVStartLumi_ |
uint32_t | fIOVStartRun_ |
const bool | fIsHLT_ |
std::string | fLabel_ |
cond::Time_t | fnewSince_ |
const bool | fullPixel_ |
bool | fuseNewSince_ |
edm::ESGetToken< BeamSpotOnlineObjects, BeamSpotOnlineHLTObjectsRcd > | hltToken_ |
edm::ESGetToken< BeamSpotOnlineObjects, BeamSpotOnlineLegacyObjectsRcd > | legacyToken_ |
const edm::ESGetToken< Alignments, TrackerAlignmentRcd > | refAliTokenBR_ |
const edm::ESGetToken< Alignments, TrackerAlignmentRcd > | tarAliTokenBR_ |
GlobalPoint | theShift_ |
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > | trackerTopoTokenBR_ |
const double | xShift_ |
const double | yShift_ |
const double | zShift_ |
Additional Inherited Members | |
Public Types inherited from edm::one::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: EDAnalyzer to create a BeamSpotOnlineHLTObjectsRcd from a BeamSpotObjectsRcd (inserting some parameters manually)
Implementation: [Notes on implementation]
Definition at line 54 of file BeamSpotOnlineShifter.cc.
|
explicit |
Definition at line 106 of file BeamSpotOnlineShifter.cc.
References edm::EDConsumerBase::esConsumes(), edm::ParameterSet::exists(), fIOVStartLumi_, fIOVStartRun_, fIsHLT_, fLabel_, fnewSince_, fuseNewSince_, edm::ParameterSet::getUntrackedParameter(), hltToken_, legacyToken_, and pack().
|
overridedefault |
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 286 of file BeamSpotOnlineShifter.cc.
References bsHLTWatcher_, bsLegayWatcher_, edm::ESWatcher< T >::check(), fIsHLT_, hltToken_, iEvent, and legacyToken_.
|
overrideprivate |
Definition at line 271 of file BeamSpotOnlineShifter.cc.
References deltaAlignments(), fullPixel_, edm::EventSetup::getData(), edm::EventSetup::getHandle(), refAliTokenBR_, RecoTauValidation_cfi::reference, tarAliTokenBR_, filterCSVwithJSON::target, theShift_, trackerTopoTokenBR_, xShift_, yShift_, and zShift_.
|
private |
Definition at line 227 of file BeamSpotOnlineShifter.cc.
References AlignmentPI::TkAlBarycenters::computeBarycenters(), getPixelBarycenter(), RecoTauValidation_cfi::reference, AlignmentPI::t_x, AlignmentPI::t_y, AlignmentPI::t_z, and filterCSVwithJSON::target.
Referenced by beginRun().
|
inlineoverrideprivate |
Definition at line 74 of file BeamSpotOnlineShifter.cc.
|
static |
Definition at line 300 of file BeamSpotOnlineShifter.cc.
References edm::ConfigurationDescriptions::addWithDefaultLabel(), and submitPVResolutionJobs::desc.
|
private |
Definition at line 246 of file BeamSpotOnlineShifter.cc.
References AlignmentPI::BPix, AlignmentPI::BPIX, AlignmentPI::FPIXm, AlignmentPI::FPIXp, AlignmentPI::TkAlBarycenters::getNModules(), and AlignmentPI::TkAlBarycenters::getPartitionAvg().
Referenced by deltaAlignments().
cond::Time_t BeamSpotOnlineShifter::pack | ( | uint32_t | fIOVStartRun, |
uint32_t | fIOVStartLumi | ||
) |
Definition at line 140 of file BeamSpotOnlineShifter.cc.
Referenced by BeamSpotOnlineShifter(), and writeToDB().
void BeamSpotOnlineShifter::writeToDB | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const edm::ESGetToken< BeamSpotOnlineObjects, Record > & | token | ||
) |
Definition at line 145 of file BeamSpotOnlineShifter.cc.
References cond::service::PoolDBOutputService::appendOneIOV(), BeamSpotObjects::beamType(), BeamSpotObjects::beamWidthX(), BeamSpotObjects::beamWidthXError(), BeamSpotObjects::beamWidthY(), BeamSpotObjects::beamWidthYError(), cond::service::PoolDBOutputService::beginOfTime(), BeamSpotObjects::betaStar(), BeamSpotObjects::covariance(), cond::service::PoolDBOutputService::createOneIOV(), BeamSpotOnlineObjects::creationTime(), cond::service::PoolDBOutputService::currentTime(), BeamSpotObjects::dxdz(), BeamSpotObjects::dydz(), BeamSpotObjects::emittanceX(), BeamSpotObjects::emittanceY(), BeamSpotOnlineObjects::endTime(), BeamSpotOnlineObjects::endTimeStamp(), fLabel_, fnewSince_, fuseNewSince_, edm::EventSetup::getData(), mps_fire::i, iEvent, edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), dqmiolumiharvest::j, BeamSpotOnlineObjects::lastAnalyzedFill(), BeamSpotOnlineObjects::lastAnalyzedLumi(), BeamSpotOnlineObjects::lastAnalyzedRun(), BeamSpotOnlineObjects::lumiRange(), BeamSpotOnlineObjects::maxPVs(), BeamSpotOnlineObjects::meanErrorPV(), BeamSpotOnlineObjects::meanPV(), BeamSpotOnlineObjects::numPVs(), BeamSpotOnlineObjects::numTracks(), pack(), BeamSpotOnlineObjects::rmsErrorPV(), BeamSpotOnlineObjects::rmsPV(), BeamSpotObjects::setBeamWidthX(), BeamSpotObjects::setBeamWidthXError(), BeamSpotObjects::setBeamWidthY(), BeamSpotObjects::setBeamWidthYError(), BeamSpotObjects::setBetaStar(), BeamSpotObjects::setCovariance(), BeamSpotOnlineObjects::setCreationTime(), BeamSpotObjects::setdxdz(), BeamSpotObjects::setdydz(), BeamSpotObjects::setEmittanceX(), BeamSpotObjects::setEmittanceY(), BeamSpotOnlineObjects::setEndTime(), BeamSpotOnlineObjects::setEndTimeStamp(), BeamSpotOnlineObjects::setLastAnalyzedFill(), BeamSpotOnlineObjects::setLastAnalyzedLumi(), BeamSpotOnlineObjects::setLastAnalyzedRun(), BeamSpotOnlineObjects::setLumiRange(), BeamSpotOnlineObjects::setMaxPVs(), BeamSpotOnlineObjects::setMeanErrorPV(), BeamSpotOnlineObjects::setMeanPV(), BeamSpotOnlineObjects::setNumPVs(), BeamSpotOnlineObjects::setNumTracks(), BeamSpotObjects::setPosition(), BeamSpotOnlineObjects::setRmsErrorPV(), BeamSpotOnlineObjects::setRmsPV(), BeamSpotObjects::setSigmaZ(), BeamSpotOnlineObjects::setStartTime(), BeamSpotOnlineObjects::setStartTimeStamp(), BeamSpotObjects::setType(), BeamSpotOnlineObjects::setUsedEvents(), BeamSpotObjects::sigmaZ(), BeamSpotOnlineObjects::startTime(), BeamSpotOnlineObjects::startTimeStamp(), theShift_, unpackBuffers-CaloStage2::token, BeamSpotOnlineObjects::usedEvents(), PV3DBase< T, PVType, FrameType >::x(), BeamSpotObjects::x(), PV3DBase< T, PVType, FrameType >::y(), BeamSpotObjects::y(), PV3DBase< T, PVType, FrameType >::z(), and BeamSpotObjects::z().
|
private |
Definition at line 83 of file BeamSpotOnlineShifter.cc.
Referenced by analyze().
|
private |
Definition at line 84 of file BeamSpotOnlineShifter.cc.
Referenced by analyze().
|
private |
Definition at line 97 of file BeamSpotOnlineShifter.cc.
Referenced by BeamSpotOnlineShifter().
|
private |
Definition at line 96 of file BeamSpotOnlineShifter.cc.
Referenced by BeamSpotOnlineShifter().
|
private |
Definition at line 88 of file BeamSpotOnlineShifter.cc.
Referenced by analyze(), and BeamSpotOnlineShifter().
|
private |
Definition at line 100 of file BeamSpotOnlineShifter.cc.
Referenced by BeamSpotOnlineShifter(), and writeToDB().
|
private |
Definition at line 98 of file BeamSpotOnlineShifter.cc.
Referenced by BeamSpotOnlineShifter(), and writeToDB().
|
private |
Definition at line 89 of file BeamSpotOnlineShifter.cc.
Referenced by beginRun().
|
private |
Definition at line 99 of file BeamSpotOnlineShifter.cc.
Referenced by BeamSpotOnlineShifter(), and writeToDB().
|
private |
Definition at line 80 of file BeamSpotOnlineShifter.cc.
Referenced by analyze(), and BeamSpotOnlineShifter().
|
private |
Definition at line 81 of file BeamSpotOnlineShifter.cc.
Referenced by analyze(), and BeamSpotOnlineShifter().
|
private |
Definition at line 91 of file BeamSpotOnlineShifter.cc.
Referenced by beginRun().
|
private |
Definition at line 92 of file BeamSpotOnlineShifter.cc.
Referenced by beginRun().
|
private |
Definition at line 87 of file BeamSpotOnlineShifter.cc.
Referenced by beginRun(), and writeToDB().
|
private |
Definition at line 90 of file BeamSpotOnlineShifter.cc.
Referenced by beginRun().
|
private |
Definition at line 93 of file BeamSpotOnlineShifter.cc.
Referenced by beginRun().
|
private |
Definition at line 94 of file BeamSpotOnlineShifter.cc.
Referenced by beginRun().
|
private |
Definition at line 95 of file BeamSpotOnlineShifter.cc.
Referenced by beginRun().