166 throw cms::Exception(
"NotAvailable") <<
"PoolDBOutputService not available";
std::string theCSCErrorRecordName
Builds a scenario from configuration and applies it to the alignable Muon.
void saveToDB()
Save alignemnts and error to database.
Class to update a given geometry with a set of alignments.
std::string theDTAlignRecordName
misalignment scenario
std::shared_ptr< CSCGeometry > theCSCGeometry
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
AlignmentErrorsExtended * dt_AlignmentErrorsExtended
Alignments * dtAlignments()
Get DT alignments sorted by DetId.
Alignments * dt_Alignments
AlignmentErrorsExtended * csc_AlignmentErrorsExtended
edm::ESProducts< std::shared_ptr< DTGeometry >, std::shared_ptr< CSCGeometry > > produce(const MuonGeometryRecord &)
Produce the misaligned Muon geometry and store it.
ESProducts< T, S > products(const T &i1, const S &i2)
std::shared_ptr< DTGeometry > theDTGeometry
const DepRecordT getRecord() const
cond::Time_t beginOfTime() const
Alignments * csc_Alignments
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
AlignmentErrorsExtended * cscAlignmentErrorsExtended()
Get CSC alignment errors sorted by DetId.
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
std::string theCSCAlignRecordName
void build(std::shared_ptr< CSCGeometry > geom, const DDCompactView *fv, const MuonDDDConstants &muonConstants)
Build the geometry.
Alignments * cscAlignments()
Get CSC alignments sorted by DetId.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
AlignmentErrorsExtended * dtAlignmentErrorsExtended()
Get DT alignment errors sorted by DetId.
MisalignedMuonESProducer(const edm::ParameterSet &p)
Constructor.
void build(std::shared_ptr< DTGeometry > theGeometry, const DDCompactView *cview, const MuonDDDConstants &muonConstants)
void applyScenario(const edm::ParameterSet &scenario) override
Apply misalignment scenario to the Muon.
const edm::ParameterSet theScenario
whether or not writing to DB
Constructor of the full muon geometry.
std::string theDTErrorRecordName
~MisalignedMuonESProducer() override
Destructor.