#include <SurveyDBUploader.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | endJob () |
Upload to DB. More... | |
SurveyDBUploader (const edm::ParameterSet &) | |
Set value & error tag names for survey records. More... | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Types | |
typedef AlignTransform | SurveyValue |
typedef Alignments | SurveyValues |
Private Member Functions | |
void | getSurveyInfo (const Alignable *) |
Get survey info of an alignable in the detector. More... | |
Private Attributes | |
std::string | theErrorRcd |
SurveyErrors * | theErrors |
std::string | theValueRcd |
SurveyValues * | theValues |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
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) |
Module for uploading survey info to the DB.
Usage: module uploader = SurveyDBUploader { string valueTag = "TrackerSurveyRcd" string errorTag = "TrackerSurveyErrorRcd" }
Definition at line 27 of file SurveyDBUploader.h.
|
private |
Definition at line 30 of file SurveyDBUploader.h.
|
private |
Definition at line 31 of file SurveyDBUploader.h.
SurveyDBUploader::SurveyDBUploader | ( | const edm::ParameterSet & | cfg | ) |
Set value & error tag names for survey records.
Definition at line 12 of file SurveyDBUploader.cc.
|
inlinevirtual |
|
virtual |
Upload to DB.
Reimplemented from edm::EDAnalyzer.
Definition at line 20 of file SurveyDBUploader.cc.
References cond::service::PoolDBOutputService::currentTime(), SurveyInputBase::detector(), edm::hlt::Exception, getSurveyInfo(), edm::Service< T >::isAvailable(), Alignments::m_align, SurveyErrors::m_surveyErrors, theErrorRcd, theErrors, theValueRcd, theValues, and cond::service::PoolDBOutputService::writeOne().
|
private |
Get survey info of an alignable in the detector.
Definition at line 44 of file SurveyDBUploader.cc.
References Alignable::alignableObjectId(), AlCaHLTBitMon_QueryRunRegistry::comp, Alignable::components(), relativeConstraints::error, SurveyDet::errors(), i, Alignable::id(), Alignments::m_align, SurveyErrors::m_surveyErrors, SurveyDet::position(), makeMuonMisalignmentScenario::rot, SurveyDet::rotation(), Alignable::survey(), theErrors, theValues, relativeConstraints::value, PV3DBase< T, PVType, FrameType >::x(), TkRotation< T >::xx(), TkRotation< T >::xy(), TkRotation< T >::xz(), PV3DBase< T, PVType, FrameType >::y(), TkRotation< T >::yx(), TkRotation< T >::yy(), TkRotation< T >::yz(), PV3DBase< T, PVType, FrameType >::z(), TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().
Referenced by endJob().
|
private |
Definition at line 56 of file SurveyDBUploader.h.
Referenced by endJob().
|
private |
Definition at line 59 of file SurveyDBUploader.h.
Referenced by endJob(), and getSurveyInfo().
|
private |
Definition at line 55 of file SurveyDBUploader.h.
Referenced by endJob().
|
private |
Definition at line 58 of file SurveyDBUploader.h.
Referenced by endJob(), and getSurveyInfo().