Namespaces | |
tec | |
tib | |
tid | |
tob | |
tpb | |
tpe | |
Typedefs | |
typedef std::vector< Alignable * > | Alignables |
typedef math::Vector< 6 >::type | AlignParams |
typedef std::map< std::pair < Alignable *, Alignable * > , AlgebraicMatrix > | Correlations |
typedef unsigned int(* | Counter )(align::ID) |
typedef AlgebraicMatrix | Derivatives |
typedef math::Error< 6 >::type | ErrorMatrix |
typedef AlgebraicVector | EulerAngles |
typedef Point3DBase< Scalar, GlobalTag > | GlobalPoint |
typedef std::vector< GlobalPoint > | GlobalPoints |
typedef Vector3DBase< Scalar, GlobalTag > | GlobalVector |
typedef std::vector< GlobalVector > | GlobalVectors |
typedef uint32_t | ID |
typedef Point3DBase< Scalar, LocalTag > | LocalPoint |
typedef std::vector< LocalPoint > | LocalPoints |
typedef Vector3DBase< Scalar, LocalTag > | LocalVector |
typedef std::vector< LocalVector > | LocalVectors |
typedef std::vector < AlignmentParameters * > | Parameters |
typedef Point3DBase< Scalar, GlobalTag > | PositionType |
typedef TkRotation< Scalar > | RotationType |
typedef double | Scalar |
typedef std::vector< Scalar > | Scalars |
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) |
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 28 of file Utilities.h.
typedef math::Vector<6>::type align::AlignParams |
Definition at line 38 of file Definitions.h.
typedef std::map<std::pair<Alignable*, Alignable*>, AlgebraicMatrix> align::Correlations |
Definition at line 31 of file Utilities.h.
typedef unsigned int(* align::Counter)(align::ID) |
Definition at line 26 of file Counters.h.
typedef AlgebraicMatrix align::Derivatives |
Definition at line 37 of file Definitions.h.
typedef math::Error<6>::type align::ErrorMatrix |
Definition at line 39 of file Definitions.h.
typedef AlgebraicVector align::EulerAngles |
Definition at line 36 of file Definitions.h.
typedef Point3DBase<Scalar, GlobalTag> align::GlobalPoint |
Definition at line 31 of file Definitions.h.
typedef std::vector<GlobalPoint> align::GlobalPoints |
Definition at line 23 of file Utilities.h.
typedef Vector3DBase<Scalar, GlobalTag> align::GlobalVector |
Definition at line 33 of file Definitions.h.
typedef std::vector<GlobalVector> align::GlobalVectors |
Definition at line 24 of file Utilities.h.
typedef uint32_t align::ID |
Definition at line 26 of file Definitions.h.
typedef Point3DBase<Scalar, LocalTag> align::LocalPoint |
Definition at line 32 of file Definitions.h.
typedef std::vector<LocalPoint> align::LocalPoints |
Definition at line 25 of file Utilities.h.
typedef Vector3DBase<Scalar, LocalTag> align::LocalVector |
Definition at line 34 of file Definitions.h.
typedef std::vector< LocalVector > align::LocalVectors |
Definition at line 26 of file Utilities.h.
typedef std::vector<AlignmentParameters*> align::Parameters |
Definition at line 29 of file Utilities.h.
typedef Point3DBase<Scalar, GlobalTag> align::PositionType |
Definition at line 30 of file Definitions.h.
typedef TkRotation<Scalar> align::RotationType |
Definition at line 29 of file Definitions.h.
typedef double align::Scalar |
Definition at line 27 of file Definitions.h.
typedef std::vector<Scalar> align::Scalars |
Definition at line 22 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 17 of file StructureType.h.
align::GlobalVector align::centerOfMass | ( | const GlobalVectors & | theVs | ) |
Find the CM of a set of points.
Definition at line 185 of file Utilities.cc.
References 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 92 of file AlignTools.cc.
References AlignableDet, AlignableDetUnit, Alignable::alignableObjectId(), Alignable::components(), filterCSVwithJSON::copy, ExpressReco_HICollisions_FallBack::e, error, i, Alignable::id(), j, SurveyDet::localPoints(), Alignable::mother(), readModuleList(), Alignable::setSurvey(), Alignable::surface(), Alignable::survey(), AlignableSurface::toGlobal(), ExpressReco_HICollisions_FallBack::x, ExpressReco_HICollisions_FallBack::y, and 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 edm::hlt::Exception, and Alignments::m_align.
Referenced by TrackerGeometryIntoNtuples::analyze(), AlignmentMonitorAsAnalyzer::analyze(), AlignmentProducer::beginOfJob(), TrackerGeometryCompare::createROOTGeometry(), AlignmentProducer::endOfJob(), MuonAlignmentInputDB::newAlignableMuon(), TrackerDigiGeometryESModule::produce(), CSCGeometryESModule::produce(), and DTGeometryESModule::produce().
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(), edm::hlt::Exception, Alignable::globalPosition(), Alignable::id(), gen::k, TkRotation< T >::multiplyInverse(), Alignable::surface(), theW, toAngles(), AlignableSurface::toLocal(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by TrackerGeometryCompare::compareGeometries(), MuonGeometryArrange::compareGeometries(), and TrackerGeometryCompare::diffCommonTrackerSystem().
align::GlobalVector align::diffR | ( | const GlobalVectors & | current, |
const GlobalVectors & | nominal | ||
) |
Definition at line 166 of file Utilities.cc.
References 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 71 of file Utilities.cc.
References trackerHits::c, prof2calltree::count, gather_cfg::cout, cond::rpcobimon::current, ExpressReco_HICollisions_FallBack::e, Exhume::I, j, TkRotation< T >::multiplyInverse(), csvReporter::r, 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::PositionType align::motherPosition | ( | const std::vector< const PositionType * > & | dauPos | ) |
Find mother's position from the average of its daughters' positions.
Definition at line 51 of file Utilities.cc.
References i, python.tagInventory::inv, 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 81 of file AlignTools.cc.
References Alignable::move(), Alignable::rotateInGlobalFrame(), and toMatrix().
Referenced by TrackerGeometryCompare::compareGeometries(), MuonGeometryArrange::compareGeometries(), and TrackerGeometryCompare::setCommonTrackerSystem().
bool align::readModuleList | ( | unsigned int | aliId, |
unsigned int | motherId, | ||
const std::vector< unsigned int > & | weightByIdVector | ||
) |
Definition at line 142 of file AlignTools.cc.
References i.
Referenced by MuonGeometryArrange::compareGeometries(), and createPoints().
void align::rectify | ( | RotationType & | rot | ) |
Correct a rotation matrix for rounding errors.
Definition at line 196 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 7 of file Utilities.cc.
References abs, 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(), KalmanAlignmentUserVariables::extractTrueParameters(), TrackerGeometryCompare::fillTree(), MuonGeometryArrange::fillTree(), KalmanAlignmentUserVariables::histogramParameters(), rectify(), BeamSpotAlignmentParameters::rotation(), SurveyResidual::sensorResidual(), AlignableSurface::toGlobal(), AlignableSurface::toLocal(), KalmanAlignmentUserVariables::update(), 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 40 of file Utilities.cc.
References alignmentValidation::c1, funct::cos(), indexGen::s2, and funct::sin().
Referenced by BeamSpotAlignmentParameters::apply(), RigidBodyAlignmentParameters::apply(), BowedSurfaceAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), KalmanAlignmentAlgorithm::applyAlignmentParameters(), PedeSteerer::correctToReferenceSystem(), diffRot(), MuonAlignmentInputXML::do_setposition(), MuonGeometryArrange::fillTree(), KalmanAlignmentUserVariables::histogramParameters(), KalmanAlignmentAlgorithm::initializeAlignmentParameters(), moveAlignable(), rectify(), AlignmentParameterStore::setAlignmentPositionError(), TrackerGeometryCompare::setCommonTrackerSystem(), SurveyAlignment::shiftSensors(), AlignmentProducer::simpleMisalignment_(), AlignableSurface::toGlobal(), AlignableSurface::toLocal(), and KalmanAlignmentUserVariables::update().