Go to the documentation of this file.
62 : theSaveToDB(
p.getUntrackedParameter<
bool>(
"saveToDbase")),
63 theSaveFakeScenario(
p.getUntrackedParameter<
bool>(
"saveFakeScenario")),
65 theAlignRecordName(
"TrackerAlignmentRcd"),
66 theErrorRecordName(
"TrackerAlignmentErrorExtendedRcd") {
88 std::unique_ptr<TrackerGeometry> theTracker(trackerBuilder.
build(&(*gD), *ptp, tTopo));
91 auto theAlignableTracker = std::make_unique<AlignableTracker>(&(*theTracker), tTopo);
96 Alignments* alignments = theAlignableTracker->alignments();
111 throw cms::Exception(
"NotAvailable") <<
"PoolDBOutputService not available";
114 alignmentErrors->clear();
122 delete alignmentErrors;
const DepRecordT getRecord() const
T const * product() const
Builds a scenario from configuration and applies it to the alignable tracker.
const std::string theAlignRecordName
misalignment scenario
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
TrackerGeometry * build(const GeometricDet *gd, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
const std::string theErrorRecordName
std::unique_ptr< TrackerGeometry > produce(const TrackerDigiGeometryRecord &iRecord)
Produce the misaligned tracker geometry and store it.
void applyScenario(const edm::ParameterSet &scenario) override
Apply misalignment scenario to the tracker.
const bool theSaveFakeScenario
whether or not writing to DB
~MisalignedTrackerESProducer() override
Destructor.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
const edm::ParameterSet theScenario
if theSaveToDB is true, save a fake scenario (empty alignments), irrespective of the misalignment sce...
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
MisalignedTrackerESProducer(const edm::ParameterSet &p)
Constructor.
void applyAlignments(C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
cond::Time_t currentTime() const
Class to update a given geometry with a set of alignments.