Classes | |
class | TrackerNameSpace |
Functions | |
GlobalVector | centerOfMass (const GlobalVectors &theVs) |
Find the CM of a set of points. More... | |
void | createPoints (GlobalVectors *Vs, Alignable *ali, const std::string &weightBy, bool weightById, const std::vector< unsigned int > &weightByIdVector) |
const AlignTransform & | DetectorGlobalPosition (const Alignments &allGlobals, const DetId &id) |
AlgebraicVector | diffAlignables (Alignable *refAli, Alignable *curAli, const std::string &weightBy, bool weightById, const std::vector< unsigned int > &weightByIdVector) |
GlobalVector | diffR (const GlobalVectors ¤t, const GlobalVectors &nominal) |
RotationType | diffRot (const GlobalVectors ¤t, const GlobalVectors &nominal) |
RunRanges | makeNonOverlappingRunRanges (const edm::VParameterSet &runRanges, const RunNumber &defaultRun) |
RunRanges | makeUniqueRunRanges (const edm::VParameterSet &runRanges, const RunNumber &defaultRun) |
PositionType | motherPosition (const std::vector< const PositionType * > &dauPos) |
Find mother's position from the average of its daughters' positions. More... | |
void | moveAlignable (Alignable *ali, AlgebraicVector diff) |
Moves the alignable by the AlgebraicVector. More... | |
bool | readModuleList (unsigned int, unsigned int, const std::vector< unsigned int > &) |
void | rectify (RotationType &) |
Correct a rotation matrix for rounding errors. More... | |
EulerAngles | toAngles (const RotationType &) |
Convert rotation matrix to angles about x-, y-, z-axes (frame rotation). More... | |
RotationType | toMatrix (const EulerAngles &) |
Convert rotation angles about x-, y-, z-axes to matrix. More... | |
Tools for comparing alignables
Namespace for common calculations in alignment.
Namespace for common type definitions used in alignment.
typedef std::vector<Alignable*> align::Alignables |
Definition at line 31 of file Utilities.h.
typedef std::vector<std::unique_ptr<AlignmentLevel> > align::AlignmentLevels |
Definition at line 33 of file Utilities.h.
typedef math::Vector<6>::type align::AlignParams |
Definition at line 36 of file Definitions.h.
typedef std::map<std::pair<Alignable*, Alignable*>, AlgebraicMatrix> align::Correlations |
Definition at line 35 of file Utilities.h.
using align::Counter = typedef std::function<unsigned int(align::ID)> |
Definition at line 31 of file AlignableIndexer.h.
typedef AlgebraicMatrix align::Derivatives |
Definition at line 35 of file Definitions.h.
typedef math::Error<6>::type align::ErrorMatrix |
Definition at line 37 of file Definitions.h.
typedef AlgebraicVector align::EulerAngles |
Definition at line 34 of file Definitions.h.
typedef Point3DBase<Scalar, GlobalTag> align::GlobalPoint |
Definition at line 29 of file Definitions.h.
typedef std::vector<GlobalPoint> align::GlobalPoints |
Definition at line 27 of file Utilities.h.
typedef Vector3DBase<Scalar, GlobalTag> align::GlobalVector |
Definition at line 31 of file Definitions.h.
typedef std::vector<GlobalVector> align::GlobalVectors |
Definition at line 28 of file Utilities.h.
typedef uint32_t align::ID |
Definition at line 24 of file Definitions.h.
typedef Point3DBase<Scalar, LocalTag> align::LocalPoint |
Definition at line 30 of file Definitions.h.
typedef std::vector<LocalPoint> align::LocalPoints |
Definition at line 29 of file Utilities.h.
typedef Vector3DBase<Scalar, LocalTag> align::LocalVector |
Definition at line 32 of file Definitions.h.
typedef std::vector<LocalVector> align::LocalVectors |
Definition at line 30 of file Utilities.h.
typedef std::vector<AlignmentParameters*> align::Parameters |
Definition at line 32 of file Utilities.h.
typedef Point3DBase<Scalar, GlobalTag> align::PositionType |
Definition at line 28 of file Definitions.h.
typedef TkRotation<Scalar> align::RotationType |
Definition at line 27 of file Definitions.h.
using align::RunNumber = typedef cond::RealTimeType<cond::runnumber>::type |
Definition at line 37 of file Utilities.h.
using align::RunRange = typedef std::pair<RunNumber, RunNumber> |
Definition at line 38 of file Utilities.h.
using align::RunRanges = typedef std::vector<RunRange> |
Definition at line 39 of file Utilities.h.
typedef double align::Scalar |
Definition at line 25 of file Definitions.h.
typedef std::vector<Scalar> align::Scalars |
Definition at line 26 of file Utilities.h.
enum align::StructureType |
Enumerate the types of structure an alignable can be.
Basically list the levels in the detector's hierarchy.
Definition at line 16 of file StructureType.h.
align::GlobalVector align::centerOfMass | ( | const GlobalVectors & | theVs | ) |
Find the CM of a set of points.
Definition at line 174 of file Utilities.cc.
References dqmiolumiharvest::j.
Referenced by MuonGeometryArrange::compareGeometries(), and diffAlignables().
void align::createPoints | ( | align::GlobalVectors * | Vs, |
Alignable * | ali, | ||
const std::string & | weightBy, | ||
bool | weightById, | ||
const std::vector< unsigned int > & | weightByIdVector | ||
) |
Creates the points which are used in diffAlignables A set of points corresponding to lowest daughters
Definition at line 96 of file AlignTools.cc.
References AlignableDet, AlignableDetUnit, Alignable::alignableObjectId(), AlCaHLTBitMon_QueryRunRegistry::comp, Alignable::components(), filterCSVwithJSON::copy, alignCSCRings::e, relativeConstraints::error, mps_fire::i, Alignable::id(), dqmiolumiharvest::j, SurveyDet::localPoints(), Alignable::mother(), readModuleList(), Alignable::setSurvey(), AlCaHLTBitMon_QueryRunRegistry::string, Alignable::surface(), Alignable::survey(), AlignableSurface::toGlobal(), HcalDetIdTransform::transform(), gpuClustering::x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
Referenced by MuonGeometryArrange::compareGeometries(), and diffAlignables().
const AlignTransform & align::DetectorGlobalPosition | ( | const Alignments & | allGlobals, |
const DetId & | id | ||
) |
Definition at line 10 of file DetectorGlobalPosition.cc.
References Exception, and Alignments::m_align.
Referenced by TrackerSystematicMisalignments::analyze(), PixelBaryCentreAnalyzer::analyze(), AlignmentMonitorAsAnalyzer::analyze(), TrackerGeometryIntoNtuples::analyze(), AlignmentProducerBase::applyAlignmentsToDB(), MuonAlignmentInputDB::newAlignableMuon(), TrackerDigiGeometryESModule::produce(), MTDDigiGeometryESModule::produce(), GEMGeometryESModule::produce(), CSCGeometryESModule::produce(), DTGeometryESModule::produce(), DTGeometryESProducer::produce(), and AlignmentProducerBase::writeForRunRange().
AlgebraicVector align::diffAlignables | ( | Alignable * | refAli, |
Alignable * | curAli, | ||
const std::string & | weightBy, | ||
bool | weightById, | ||
const std::vector< unsigned int > & | weightByIdVector | ||
) |
Finds the TR between two alignables - first alignable is reference. Returns a vector with 12 components. First six are global, second six are local.
Definition at line 10 of file AlignTools.cc.
References Alignable::alignableObjectId(), centerOfMass(), createPoints(), diffR(), diffRot(), Exception, Alignable::globalPosition(), Alignable::id(), isotrackApplyRegressor::k, TkRotation< T >::multiplyInverse(), makeMuonMisalignmentScenario::rot, Alignable::surface(), theW, toAngles(), AlignableSurface::toLocal(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by MuonGeometryArrange::compareGeometries(), TrackerGeometryCompare::compareGeometries(), and TrackerGeometryCompare::diffCommonTrackerSystem().
align::GlobalVector align::diffR | ( | const GlobalVectors & | current, |
const GlobalVectors & | nominal | ||
) |
Definition at line 158 of file Utilities.cc.
References dqmiolumiharvest::j.
Referenced by diffAlignables(), and CreateSurveyRcds::setGeometry().
align::RotationType align::diffRot | ( | const GlobalVectors & | current, |
const GlobalVectors & | nominal | ||
) |
Find matrix to rotate from nominal to current vectors. Assume both sets of vectors have the same size and order.
Definition at line 68 of file Utilities.cc.
References c, submitPVResolutionJobs::count, gather_cfg::cout, alignCSCRings::e, Exhume::I, dqmiolumiharvest::j, TkRotation< T >::multiplyInverse(), alignCSCRings::r, makeMuonMisalignmentScenario::rot, tolerance, toMatrix(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by SurveyResidual::calculate(), MuonGeometryArrange::compareGeometries(), diffAlignables(), and SurveyResidual::sensorResidual().
align::RunRanges align::makeNonOverlappingRunRanges | ( | const edm::VParameterSet & | runRanges, |
const RunNumber & | defaultRun | ||
) |
Definition at line 202 of file Utilities.cc.
References cond::TimeTypeSpecs::beginValue, cond::TimeTypeSpecs::endValue, first, mps_fire::i, cond::runnumber, groupFilesInBlocks::temp, cond::timeTypeSpecs, and edm::tokenize().
Referenced by MillePedeAlignmentAlgorithm::areIOVsSpecified(), and makeUniqueRunRanges().
align::RunRanges align::makeUniqueRunRanges | ( | const edm::VParameterSet & | runRanges, |
const RunNumber & | defaultRun | ||
) |
Definition at line 241 of file Utilities.cc.
References makeNonOverlappingRunRanges(), cond::runnumber, and cond::timeTypeSpecs.
Referenced by AlignmentProducerBase::AlignmentProducerBase(), and AlignmentProducerBase::storeAlignmentsToDB().
align::PositionType align::motherPosition | ( | const std::vector< const PositionType * > & | dauPos | ) |
Find mother's position from the average of its daughters' positions.
Definition at line 50 of file Utilities.cc.
References mps_fire::i, point, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by SurveyResidual::calculate().
void align::moveAlignable | ( | Alignable * | ali, |
AlgebraicVector | diff | ||
) |
Moves the alignable by the AlgebraicVector.
Finds the TR between 2 sets of alignables For example, if TIB/TID were to move as one unit
Definition at line 84 of file AlignTools.cc.
References Alignable::move(), Alignable::rotateInGlobalFrame(), and toMatrix().
Referenced by MuonGeometryArrange::compareGeometries(), TrackerGeometryCompare::compareGeometries(), and TrackerGeometryCompare::setCommonTrackerSystem().
bool align::readModuleList | ( | unsigned int | aliId, |
unsigned int | motherId, | ||
const std::vector< unsigned int > & | weightByIdVector | ||
) |
Definition at line 152 of file AlignTools.cc.
References mps_fire::i.
Referenced by MuonGeometryArrange::compareGeometries(), and createPoints().
void align::rectify | ( | RotationType & | rot | ) |
Correct a rotation matrix for rounding errors.
Definition at line 185 of file Utilities.cc.
References toAngles(), and toMatrix().
Referenced by BeamSpotAlignmentParameters::apply(), RigidBodyAlignmentParameters::apply(), BowedSurfaceAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), AlignmentParameterStore::applyAlignableAbsolutePositions(), MuonAlignmentInputXML::set_one_position(), and SurveyAlignment::shiftSensors().
align::EulerAngles align::toAngles | ( | const RotationType & | rot | ) |
Convert rotation matrix to angles about x-, y-, z-axes (frame rotation).
Definition at line 8 of file Utilities.cc.
References funct::abs(), SiPixelPI::one, makeMuonMisalignmentScenario::rot, TkRotation< T >::xx(), TkRotation< T >::xy(), TkRotation< T >::xz(), TkRotation< T >::yx(), TkRotation< T >::yy(), TkRotation< T >::yz(), TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().
Referenced by AlignmentParameterStore::acquireRelativeParameters(), MuonGeometryArrange::compareGeometries(), diffAlignables(), RigidBodyAlignmentParameters::displacementFromAlignable(), MuonAlignmentInputXML::do_setposition(), MuonGeometryArrange::fillTree(), TrackerGeometryCompare::fillTree(), rectify(), BeamSpotAlignmentParameters::rotation(), SurveyResidual::sensorResidual(), AlignableSurface::toGlobal(), AlignableSurface::toLocal(), SurveyOutput::write(), and MuonAlignmentOutputXML::writeComponents().
align::RotationType align::toMatrix | ( | const EulerAngles & | angles | ) |
Convert rotation angles about x-, y-, z-axes to matrix.
Definition at line 34 of file Utilities.cc.
References alignmentValidation::c1, funct::cos(), and funct::sin().
Referenced by BeamSpotAlignmentParameters::apply(), RigidBodyAlignmentParameters::apply(), BowedSurfaceAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), PedeSteerer::correctToReferenceSystem(), diffRot(), MuonAlignmentInputXML::do_setposition(), MuonGeometryArrange::fillTree(), moveAlignable(), rectify(), AlignmentParameterStore::setAlignmentPositionError(), TrackerGeometryCompare::setCommonTrackerSystem(), SurveyAlignment::shiftSensors(), AlignmentProducerBase::simpleMisalignment(), AlignableSurface::toGlobal(), and AlignableSurface::toLocal().