Classes | |
class | TrackerNameSpace |
Enumerations | |
enum | StructureType { notfound = -1, invalid = 0, AlignableDetUnit, AlignableDet, TPBModule, TPBLadder, TPBLayer, TPBHalfBarrel, TPBBarrel, TPEModule, TPEPanel, TPEBlade, TPEHalfDisk, TPEHalfCylinder, TPEEndcap, TIBModule, TIBString, TIBSurface, TIBHalfShell, TIBLayer, TIBHalfBarrel, TIBBarrel, TIDModule, TIDSide, TIDRing, TIDDisk, TIDEndcap, TOBModule, TOBRod, TOBLayer, TOBHalfBarrel, TOBBarrel, TECModule, TECRing, TECPetal, TECSide, TECDisk, TECEndcap, Pixel, Strip, Tracker, AlignableDTBarrel = 100, AlignableDTWheel, AlignableDTStation, AlignableDTChamber, AlignableDTSuperLayer, AlignableDTLayer, AlignableCSCEndcap, AlignableCSCStation, AlignableCSCRing, AlignableCSCChamber, AlignableCSCLayer, AlignableMuon, Detector, Extras = 1000, BeamSpot } |
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 32 of file Utilities.h.
typedef std::vector<std::unique_ptr<AlignmentLevel> > align::AlignmentLevels |
Definition at line 34 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 36 of file Utilities.h.
using align::Counter = typedef std::function<unsigned int(align::ID)> |
Definition at line 32 of file AlignableIndexer.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 28 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 29 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 30 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 31 of file Utilities.h.
typedef std::vector<AlignmentParameters*> align::Parameters |
Definition at line 33 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.
using align::RunNumber = typedef cond::RealTimeType<cond::runnumber>::type |
Definition at line 38 of file Utilities.h.
using align::RunRange = typedef std::pair<RunNumber, RunNumber> |
Definition at line 39 of file Utilities.h.
using align::RunRanges = typedef std::vector<RunRange> |
Definition at line 40 of file Utilities.h.
typedef double align::Scalar |
Definition at line 27 of file Definitions.h.
typedef std::vector<Scalar> align::Scalars |
Definition at line 27 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 187 of file Utilities.cc.
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(), AlCaHLTBitMon_QueryRunRegistry::comp, Alignable::components(), popcon2dropbox::copy(), MillePedeFileConverter_cfg::e, relativeConstraints::error, mps_fire::i, Alignable::id(), createfilelist::int, SurveyDet::localPoints(), Alignable::mother(), hiPixelPairStep_cff::points, readModuleList(), Alignable::setSurvey(), AlCaHLTBitMon_QueryRunRegistry::string, Alignable::surface(), Alignable::survey(), AlignableSurface::toGlobal(), create_public_lumi_plots::transform, vertices_cff::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(), AlignmentMonitorAsAnalyzer::analyze(), TrackerGeometryIntoNtuples::analyze(), AlignmentProducerBase::applyAlignmentsToDB(), MuonAlignmentInputDB::newAlignableMuon(), MTDDigiGeometryESModule::produce(), TrackerDigiGeometryESModule::produce(), DTGeometryESModule::produce(), CSCGeometryESModule::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(), gen::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 168 of file Utilities.cc.
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 73 of file Utilities.cc.
References EnergyCorrector::c, KineDebug3::count(), gather_cfg::cout, MillePedeFileConverter_cfg::e, Exhume::I, 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 218 of file Utilities.cc.
References cond::TimeTypeSpecs::beginValue, cond::TimeTypeSpecs::endValue, plotBeamSpotDB::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 263 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 53 of file Utilities.cc.
References mps_fire::i, point, RecoTauValidation_cfi::posX, RecoTauValidation_cfi::posY, 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 PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, 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 142 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 198 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 9 of file Utilities.cc.
References funct::abs(), particleFlowDisplacedVertex_cfi::angles, 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 42 of file Utilities.cc.
References alignmentValidation::c1, funct::cos(), indexGen::s2, 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().