Go to the documentation of this file.
66 : theSaveToDB(
p.getUntrackedParameter<
bool>(
"saveToDbase")),
67 theSaveFakeScenario(
p.getUntrackedParameter<
bool>(
"saveFakeScenario")),
69 theAlignRecordName(
"TrackerAlignmentRcd"),
70 theErrorRecordName(
"TrackerAlignmentErrorExtendedRcd") {
92 std::unique_ptr<TrackerGeometry> theTracker(trackerBuilder.
build(gD, ptp, tTopo));
95 auto theAlignableTracker = std::make_unique<AlignableTracker>(&(*theTracker), tTopo);
100 Alignments* alignments = theAlignableTracker->alignments();
115 throw cms::Exception(
"NotAvailable") <<
"PoolDBOutputService not available";
118 alignmentErrors->clear();
126 delete alignmentErrors;
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
Log< level::Info, false > LogInfo
void applyAlignments(const C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
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.
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
const bool theSaveFakeScenario
whether or not writing to DB
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
edm::ESGetToken< GeometricDet, IdealGeometryRecord > geomDetToken_
~MisalignedTrackerESProducer() override
Destructor.
edm::ESGetToken< PTrackerParameters, PTrackerParametersRcd > ptpToken_
#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.
cond::Time_t currentTime() const
Class to update a given geometry with a set of alignments.