38 #include <boost/shared_ptr.hpp>
83 theSaveToDB(p.getUntrackedParameter<bool>(
"saveToDbase")),
84 theScenario(p.getParameter<edm::
ParameterSet>(
"scenario")),
85 theDTAlignRecordName(
"DTAlignmentRcd" ),
86 theDTErrorRecordName(
"DTAlignmentErrorRcd" ),
87 theCSCAlignRecordName(
"CSCAlignmentRcd" ),
88 theCSCErrorRecordName(
"CSCAlignmentErrorRcd" )
167 throw cms::Exception(
"NotAvailable") <<
"PoolDBOutputService not available";
std::string theCSCErrorRecordName
AlignmentErrors * dtAlignmentErrors()
Builds a scenario from configuration and applies it to the alignable Muon.
boost::shared_ptr< DTGeometry > theDTGeometry
void saveToDB()
Save alignemnts and error to database.
Class to update a given geometry with a set of alignments.
std::string theDTAlignRecordName
misalignment scenario
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
AlignmentErrors * dt_AlignmentErrors
AlignmentErrors * csc_AlignmentErrors
void build(boost::shared_ptr< CSCGeometry > geom, const DDCompactView *fv, const MuonDDDConstants &muonConstants)
Build the geometry.
const DepRecordT & getRecord() const
edm::ESProducts< boost::shared_ptr< DTGeometry >, boost::shared_ptr< CSCGeometry > > produce(const MuonGeometryRecord &)
Produce the misaligned Muon geometry and store it.
Alignments * dtAlignments()
Alignments * dt_Alignments
ESProducts< T, S > products(const T &i1, const S &i2)
cond::Time_t beginOfTime() const
AlignmentErrors * cscAlignmentErrors()
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrors *alignmentErrors, const AlignTransform &globalCoordinates)
Alignments * csc_Alignments
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
void build(boost::shared_ptr< DTGeometry > theGeometry, const DDCompactView *cview, const MuonDDDConstants &muonConstants)
std::string theCSCAlignRecordName
Alignments * cscAlignments()
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
MisalignedMuonESProducer(const edm::ParameterSet &p)
Constructor.
virtual ~MisalignedMuonESProducer()
Destructor.
const edm::ParameterSet theScenario
whether or not writing to DB
boost::shared_ptr< CSCGeometry > theCSCGeometry
Constructor of the full muon geometry.
std::string theDTErrorRecordName
void applyScenario(const edm::ParameterSet &scenario)
Apply misalignment scenario to the Muon.