|
|
Go to the documentation of this file.
26 #include "CLHEP/Random/RandGauss.h"
42 : theAlignableTracker(nullptr) {
92 edm::LogWarning(
"MisalignedTracker") <<
"Blind movements suppressed (TIB/TOB in z, TID/TEC in r)";
148 std::string theAlignRecordName =
"TrackerAlignmentRcd";
149 std::string theErrorRecordName =
"TrackerAlignmentErrorExtendedRcd";
153 throw cms::Exception(
"NotAvailable") <<
"PoolDBOutputService not available";
157 &(*myAlignmentErrorsExtended), poolDbService->
beginOfTime(), theErrorRecordName);
162 unsigned int nComp =
comp.size();
165 bool usecomps =
true;
168 for (
unsigned int i = 0;
i < nComp; ++
i) {
174 bool blindToZ(
false), blindToR(
false);
203 const bool blindToR) {
210 const double oldX = globalPos.
x();
211 const double oldY = globalPos.
y();
212 const double oldZ = globalPos.
z();
213 const double oldPhi = globalPos.
phi();
214 const double oldR =
sqrt(globalPos.
x() * globalPos.
x() + globalPos.
y() * globalPos.
y());
226 const double Roffset = 57.0;
229 deltaX += (xP - oldX);
230 deltaY += (yP - oldY);
233 const double trackeredgePlusZ = 271.846;
234 const double bowfactor =
m_bowingEpsilon * (trackeredgePlusZ * trackeredgePlusZ - oldZ * oldZ);
235 deltaX += oldX * bowfactor;
236 deltaY += oldY * bowfactor;
244 deltaX += (xP - oldX);
245 deltaY += (yP - oldY);
T const * product() const
align::GlobalVector findSystematicMis(const align::PositionType &, const bool blindToZ, const bool blindToR)
double m_telescopeEpsilon
cond::Time_t beginOfTime() const
double m_ellipticalEpsilon
TrackerGeometry * build(const GeometricDet *gd, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
void beginJob() override
Read ideal tracker geometry from DB.
Log< level::Warning, false > LogWarning
void applyAlignments(const C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
#define DEFINE_FWK_MODULE(type)
AlignmentErrorsExtended * alignmentErrors() const override
Return alignment errors, sorted by DetId.
virtual StructureType alignableObjectId() const =0
Return the alignable type identifier.
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
static constexpr auto TEC
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
void applySystematicMisalignment(Alignable *)
const DetId & geomDetId() const
static constexpr auto TOB
virtual void move(const GlobalVector &displacement)=0
Movement with respect to the global reference frame.
static constexpr auto TID
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< Alignable * > Alignables
AlignableTracker * theAlignableTracker
Alignments * alignments() const override
Return alignments, sorted by DetId.
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
static constexpr auto TIB
const PositionType & globalPosition() const
Return the global position of the object.
virtual const Alignables & components() const =0
Return vector of all direct components.
Geom::Phi< T > phi() const
Class to update a given geometry with a set of alignments.
TrackerSystematicMisalignments(const edm::ParameterSet &)