74 : theSaveToDB(p.getUntrackedParameter<bool>(
"saveToDbase")),
75 theScenario(p.getParameter<edm::
ParameterSet>(
"scenario")),
76 theDTAlignRecordName(
"DTAlignmentRcd"),
77 theDTErrorRecordName(
"DTAlignmentErrorExtendedRcd"),
78 theCSCAlignRecordName(
"CSCAlignmentRcd"),
79 theCSCErrorRecordName(
"CSCAlignmentErrorExtendedRcd"),
80 theGEMAlignRecordName(
"GEMAlignmentRcd"),
81 theGEMErrorRecordName(
"GEMAlignmentErrorExtendedRcd"),
132 throw cms::Exception(
"NotAvailable") <<
"PoolDBOutputService not available";
Builds a scenario from configuration and applies it to the alignable Muon.
edm::ESGetToken< DTGeometry, MuonGeometryRecord > esTokenDT_
#define DEFINE_FWK_MODULE(type)
~MuonMisalignedProducer() override
Destructor.
std::string theCSCErrorRecordName
std::string theCSCAlignRecordName
const edm::ParameterSet theScenario
whether or not writing to DB
Alignments gem_Alignments
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > esTokenCSC_
Alignments * dtAlignments()
Get DT alignments sorted by DetId.
std::string theGEMAlignRecordName
cond::Time_t beginOfTime() const
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
AlignmentErrorsExtended dt_AlignmentErrorsExtended
std::string theGEMErrorRecordName
AlignmentErrorsExtended * cscAlignmentErrorsExtended()
Get CSC alignment errors sorted by DetId.
Log< level::Info, false > LogInfo
void analyze(const edm::Event &, const edm::EventSetup &) override
Produce the misaligned Muon geometry and store iti.
Alignments csc_Alignments
Alignments * cscAlignments()
Get CSC alignments sorted by DetId.
Alignments * gemAlignments()
AlignmentErrorsExtended csc_AlignmentErrorsExtended
MuonMisalignedProducer(const edm::ParameterSet &)
Constructor.
AlignmentErrorsExtended * dtAlignmentErrorsExtended()
Get DT alignment errors sorted by DetId.
AlignmentErrorsExtended * gemAlignmentErrorsExtended()
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > esTokenGEM_
void saveToDB()
Save alignemnts and error to database.
void applyScenario(const edm::ParameterSet &scenario) override
Apply misalignment scenario to the Muon.
std::string theDTAlignRecordName
misalignment scenario
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Constructor of the full muon geometry.
AlignmentErrorsExtended gem_AlignmentErrorsExtended
std::string theDTErrorRecordName