Go to the documentation of this file.
72 : theSaveToDB(
p.getUntrackedParameter<
bool>(
"saveToDbase")),
74 theDTAlignRecordName(
"DTAlignmentRcd"),
75 theDTErrorRecordName(
"DTAlignmentErrorExtendedRcd"),
76 theCSCAlignRecordName(
"CSCAlignmentRcd"),
77 theCSCErrorRecordName(
"CSCAlignmentErrorExtendedRcd") {
99 auto theDTGeometry = std::make_unique<DTGeometry>();
101 auto theCSCGeometry = std::make_unique<CSCGeometry>();
138 throw cms::Exception(
"NotAvailable") <<
"PoolDBOutputService not available";
const DepRecordT getRecord() const
AlignmentErrorsExtended * dtAlignmentErrorsExtended()
Get DT alignment errors sorted by DetId.
std::string theDTErrorRecordName
cond::Time_t beginOfTime() const
~MisalignedMuonESProducer() override
Destructor.
const edm::ParameterSet theScenario
whether or not writing to DB
AlignmentErrorsExtended * dt_AlignmentErrorsExtended
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Alignments * cscAlignments()
Get CSC alignments sorted by DetId.
AlignmentErrorsExtended * csc_AlignmentErrorsExtended
Alignments * dtAlignments()
Get DT alignments sorted by DetId.
std::string theCSCErrorRecordName
ESProducts< std::remove_reference_t< TArgs >... > products(TArgs &&... args)
std::string theCSCAlignRecordName
void applyScenario(const edm::ParameterSet &scenario) override
Apply misalignment scenario to the Muon.
edm::ESProducts< std::unique_ptr< DTGeometry >, std::unique_ptr< CSCGeometry > > produce(const MuonGeometryRecord &)
Produce the misaligned Muon geometry and store it.
void build(CSCGeometry &theGeometry, const RecoIdealGeometry &rig, const CSCRecoDigiParameters &cscpars)
Build the geometry.
MisalignedMuonESProducer(const edm::ParameterSet &p)
Constructor.
Alignments * dt_Alignments
Constructor of the full muon geometry.
void saveToDB()
Save alignemnts and error to database.
std::string theDTAlignRecordName
misalignment scenario
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
AlignmentErrorsExtended * cscAlignmentErrorsExtended()
Get CSC alignment errors sorted by DetId.
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
Builds a scenario from configuration and applies it to the alignable Muon.
Alignments * csc_Alignments
Class to update a given geometry with a set of alignments.