82 theSaveToDB(p.getUntrackedParameter<bool>(
"saveToDbase")),
83 theScenario(p.getParameter<edm::
ParameterSet>(
"scenario")),
84 theDTAlignRecordName(
"DTAlignmentRcd" ),
85 theDTErrorRecordName(
"DTAlignmentErrorExtendedRcd" ),
86 theCSCAlignRecordName(
"CSCAlignmentRcd" ),
87 theCSCErrorRecordName(
"CSCAlignmentErrorExtendedRcd" )
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
const DepRecordT & getRecord() const
Alignments * dtAlignments()
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
cond::Time_t beginOfTime() const
Alignments * csc_Alignments
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
AlignmentErrorsExtended * cscAlignmentErrorsExtended()
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()
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
AlignmentErrorsExtended * dtAlignmentErrorsExtended()
MisalignedMuonESProducer(const edm::ParameterSet &p)
Constructor.
void build(std::shared_ptr< DTGeometry > theGeometry, const DDCompactView *cview, const MuonDDDConstants &muonConstants)
virtual ~MisalignedMuonESProducer()
Destructor.
const edm::ParameterSet theScenario
whether or not writing to DB
Constructor of the full muon geometry.
std::string theDTErrorRecordName
void applyScenario(const edm::ParameterSet &scenario)
Apply misalignment scenario to the Muon.