#include <Alignment/GlobalTrackerMuonAlignment/src/GlobalTrackerMuonAlignment.cc>
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
void | beginJob () override |
void | endJob () override |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Description: Producer of relative tracker and muon system alignment
Implementation: A sample of global muons is used for the aligning tracker and muon system relatively as "rigid bodies", i.e. determining offset and rotation (6 numbers)
Definition at line 109 of file GlobalTrackerMuonAlignment.cc.
|
explicit |
Definition at line 272 of file GlobalTrackerMuonAlignment.cc.
References cosmicMuonMode_, Exception, and isolatedMuonMode_.
|
override |
Definition at line 302 of file GlobalTrackerMuonAlignment.cc.
|
overrideprivate |
Definition at line 312 of file GlobalTrackerMuonAlignment.cc.
References analyzeTrackTrajectory().
void GlobalTrackerMuonAlignment::analyzeTrackTrack | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 573 of file GlobalTrackerMuonAlignment.cc.
References alongMomentum, edm::EventBase::bunchCrossing(), TrajectoryStateOnSurface::cartesianError(), edm::ESWatcher< T >::check(), collectionCosmic, collectionIsolated, cosmicMuonMode_, gather_cfg::cout, debug_, Vector3DBase< T, FrameTag >::dot(), MillePedeFileConverter_cfg::e, DetId::Ecal, geometryDiff::epsilon, TrajectoryStateOnSurface::freeState(), edm::EventSetup::get(), edm::Event::getByLabel(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalPosition(), globalPositionRcd_, gmuonTags_, gradientGlobal(), gradientGlobalAlg(), gradientLocal(), DetId::Hcal, histo, histo101, histo102, histo11, histo12, histo13, histo14, histo15, histo16, histo17, histo18, histo19, histo2, histo20, histo21, histo22, histo23, histo24, histo25, histo26, histo27, histo28, histo29, histo3, histo30, histo31, histo32, histo33, histo34, histo35, histo4, histo5, histo6, histo7, histo8, mps_fire::i, info(), createfilelist::int, isolatedMuonMode_, TrajectoryStateOnSurface::isValid(), iteratorEcalRcd, iteratorHcalRcd, iteratorMuonRcd, iteratorTrackerRcd, TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), funct::m, Alignments::m_align, PV3DBase< T, PVType, FrameType >::mag(), mag(), seedCreatorFromRegionConsecutiveHitsEDProducer_cff::magneticField, magneticField_, CartesianTrajectoryError::matrix(), LocalTrajectoryError::matrix(), misalignMuonL(), DetId::Muon, extraflags_cff::muons, muonTags_, MuSelect, N_event, N_track, Plane::normalVector(), oppositeToMomentum, PV3DBase< T, PVType, FrameType >::perp(), PI, GloballyPositioned< T >::position(), Propagator::propagate(), PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi::propagator, defaultRKPropagator::Product::propagator, propagator_, reco::tau::disc::Pt(), DetId::rawId(), GloballyPositioned< T >::rotation(), edm::Event::run(), SmartPropagator_cfi::SmartPropagator, smuonTags_, mathSSE::sqrt(), SteppingHelixPropagator_cfi::SteppingHelixPropagator, TrajectoryStateOnSurface::surface(), Surface::tangentPlane(), DetId::Tracker, trackingGeometry_, l1t::tracks, trackTags_, LocalTrajectoryParameters::vector(), watchGlobalPositionRcd_, watchMagneticFieldRecord_, watchTrackingGeometry_, x, PV3DBase< T, PVType, FrameType >::x(), TkRotation< T >::xx(), TkRotation< T >::xy(), TkRotation< T >::xz(), y, PV3DBase< T, PVType, FrameType >::y(), TkRotation< T >::yx(), TkRotation< T >::yy(), TkRotation< T >::yz(), z, PV3DBase< T, PVType, FrameType >::z(), TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().
void GlobalTrackerMuonAlignment::analyzeTrackTrajectory | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 1252 of file GlobalTrackerMuonAlignment.cc.
References alongMomentum, edm::EventBase::bunchCrossing(), TrajectoryStateOnSurface::cartesianError(), edm::ESWatcher< T >::check(), Chi2MeasurementEstimator_cfi::Chi2MeasurementEstimator, collectionCosmic, collectionIsolated, cosmicMuonMode_, gather_cfg::cout, debug_, debugTrajectorySOS(), defineFitter, Vector3DBase< T, FrameTag >::dot(), MillePedeFileConverter_cfg::e, DetId::Ecal, geometryDiff::epsilon, TrajectoryStateOnSurface::freeState(), edm::EventSetup::get(), edm::Event::getByLabel(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalPosition(), globalPositionRcd_, gmuonTags_, gradientGlobal(), gradientGlobalAlg(), gradientLocal(), DetId::Hcal, histo, histo101, histo102, histo11, histo12, histo13, histo14, histo15, histo16, histo17, histo18, histo19, histo2, histo20, histo21, histo22, histo23, histo24, histo25, histo26, histo27, histo28, histo29, histo3, histo30, histo31, histo32, histo33, histo34, histo35, histo4, histo5, histo6, histo7, histo8, mps_fire::i, info(), createfilelist::int, isolatedMuonMode_, edm::ESHandleBase::isValid(), TrajectoryStateOnSurface::isValid(), iteratorEcalRcd, iteratorHcalRcd, iteratorMuonRcd, iteratorTrackerRcd, TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), funct::m, Alignments::m_align, PV3DBase< T, PVType, FrameType >::mag(), mag(), seedCreatorFromRegionConsecutiveHitsEDProducer_cff::magneticField, magneticField_, CartesianTrajectoryError::matrix(), LocalTrajectoryError::matrix(), misalignMuonL(), DetId::Muon, muonFitter(), extraflags_cff::muons, muonTags_, MuRHBuilder, MuSelect, N_event, N_track, Plane::normalVector(), oppositeToMomentum, PV3DBase< T, PVType, FrameType >::perp(), PI, GloballyPositioned< T >::position(), Propagator::propagate(), PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi::propagator, defaultRKPropagator::Product::propagator, propagator_, reco::tau::disc::Pt(), DetId::rawId(), refitMuon_, refitTrack_, GloballyPositioned< T >::rotation(), edm::Event::run(), SmartPropagator_cfi::SmartPropagator, smuonTags_, mathSSE::sqrt(), SteppingHelixPropagator_cfi::SteppingHelixPropagator, TrajectoryStateOnSurface::surface(), Surface::tangentPlane(), theFitter, theFitterOp, theSmoother, theSmootherOp, theTrackingGeometry, DetId::Tracker, trackFitter(), trackingGeometry_, l1t::tracks, trackTags_, TTRHBuilder, LocalTrajectoryParameters::vector(), watchGlobalPositionRcd_, watchMagneticFieldRecord_, watchTrackingGeometry_, x, PV3DBase< T, PVType, FrameType >::x(), TkRotation< T >::xx(), TkRotation< T >::xy(), TkRotation< T >::xz(), y, PV3DBase< T, PVType, FrameType >::y(), TkRotation< T >::yx(), TkRotation< T >::yy(), TkRotation< T >::yz(), z, PV3DBase< T, PVType, FrameType >::z(), TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().
Referenced by analyze().
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 318 of file GlobalTrackerMuonAlignment.cc.
References bookHist(), collectionCosmic, collectionIsolated, cosmicMuonMode_, file, Gfr, Grad, GradL, Hess, HessL, mps_fire::i, Inf, isolatedMuonMode_, N_event, N_track, and rootOutFile_.
void GlobalTrackerMuonAlignment::bookHist | ( | ) |
Definition at line 471 of file GlobalTrackerMuonAlignment.cc.
References histo, histo101, histo102, histo11, histo12, histo13, histo14, histo15, histo16, histo17, histo18, histo19, histo2, histo20, histo21, histo22, histo23, histo24, histo25, histo26, histo27, histo28, histo29, histo3, histo30, histo31, histo32, histo33, histo34, histo35, histo4, histo5, histo6, histo7, histo8, and PI.
Referenced by beginJob().
|
inline |
Definition at line 148 of file GlobalTrackerMuonAlignment.cc.
References a, analyze(), b, and bk::beginJob().
Referenced by gradientGlobal(), gradientLocal(), misalignMuon(), and misalignMuonL().
void GlobalTrackerMuonAlignment::debugTrackHit | ( | const std::string | title, |
reco::TrackRef | alongTr | ||
) |
Definition at line 3231 of file GlobalTrackerMuonAlignment.cc.
References gather_cfg::cout, DetId::Muon, and DetId::Tracker.
Referenced by muonFitter(), and trackFitter().
void GlobalTrackerMuonAlignment::debugTrackHit | ( | const std::string | title, |
reco::TransientTrack & | alongTr | ||
) |
Definition at line 3212 of file GlobalTrackerMuonAlignment.cc.
References gather_cfg::cout, mps_fire::i, DetId::Muon, reco::TransientTrack::recHitsBegin(), reco::TransientTrack::recHitsEnd(), and DetId::Tracker.
void GlobalTrackerMuonAlignment::debugTrajectory | ( | const std::string | title, |
Trajectory & | traj | ||
) |
Definition at line 3302 of file GlobalTrackerMuonAlignment.cc.
References alongMomentum, Trajectory::chiSquared(), gather_cfg::cout, debugTrajectorySOSv(), Trajectory::direction(), Trajectory::firstMeasurement(), Trajectory::foundHits(), Trajectory::isValid(), Trajectory::lastMeasurement(), and TrajectoryMeasurement::updatedState().
Referenced by muonFitter(), and trackFitter().
void GlobalTrackerMuonAlignment::debugTrajectorySOS | ( | const std::string | title, |
TrajectoryStateOnSurface & | trajSOS | ||
) |
Definition at line 3250 of file GlobalTrackerMuonAlignment.cc.
References TrajectoryStateOnSurface::cartesianError(), TrajectoryStateOnSurface::charge(), gather_cfg::cout, TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalParameters(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), PV3DBase< T, PVType, FrameType >::mag(), CartesianTrajectoryError::matrix(), LocalTrajectoryError::matrix(), PV3DBase< T, PVType, FrameType >::perp(), mathSSE::sqrt(), GlobalTrajectoryParameters::vector(), and LocalTrajectoryParameters::vector().
Referenced by analyzeTrackTrajectory(), muonFitter(), and trackFitter().
void GlobalTrackerMuonAlignment::debugTrajectorySOSv | ( | const std::string | title, |
TrajectoryStateOnSurface | trajSOS | ||
) |
Definition at line 3276 of file GlobalTrackerMuonAlignment.cc.
References TrajectoryStateOnSurface::cartesianError(), TrajectoryStateOnSurface::charge(), gather_cfg::cout, TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalParameters(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), PV3DBase< T, PVType, FrameType >::mag(), CartesianTrajectoryError::matrix(), LocalTrajectoryError::matrix(), PV3DBase< T, PVType, FrameType >::perp(), mathSSE::sqrt(), GlobalTrajectoryParameters::vector(), and LocalTrajectoryParameters::vector().
Referenced by debugTrajectory(), muonFitter(), and trackFitter().
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 361 of file GlobalTrackerMuonAlignment.cc.
References collectionCosmic, collectionIsolated, gather_cfg::cout, edmIntegrityCheck::d, debug_, file, fitHist(), Gfr, Grad, GradL, Hess, HessL, mps_fire::i, Inf, gen::k, MuGlAngle, MuGlShift, MuSelect, N_event, N_track, MillePedeFileConverter_cfg::out, OutGlobalTxt, smuonTags_, mathSSE::sqrt(), txtOutFile_, writeDB_, and writeGlPosRcd().
Referenced by o2olib.O2ORunMgr::executeJob().
void GlobalTrackerMuonAlignment::fitHist | ( | ) |
void GlobalTrackerMuonAlignment::gradientGlobal | ( | GlobalVector & | GRt, |
GlobalVector & | GPt, | ||
GlobalVector & | GRm, | ||
GlobalVector & | GPm, | ||
GlobalVector & | GNorm, | ||
AlgebraicSymMatrix66 & | GCov | ||
) |
Definition at line 2123 of file GlobalTrackerMuonAlignment.cc.
References patCaloMETCorrections_cff::A, a, TtFullHadDaughter::B, CLHEP_dot(), gather_cfg::cout, edmIntegrityCheck::d, debug_, delta, MillePedeFileConverter_cfg::e, Grad, Hess, mps_fire::i, cuy::ii, info(), AlCaHLTBitMon_ParallelJobs::p, reco::tau::disc::Pt(), alignCSCRings::r, alignCSCRings::s, mathSSE::sqrt(), w, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by analyzeTrackTrack(), and analyzeTrackTrajectory().
void GlobalTrackerMuonAlignment::gradientGlobalAlg | ( | GlobalVector & | Rt, |
GlobalVector & | Pt, | ||
GlobalVector & | Rm, | ||
GlobalVector & | Nl, | ||
AlgebraicSymMatrix66 & | Cm | ||
) |
Definition at line 2032 of file GlobalTrackerMuonAlignment.cc.
References gather_cfg::cout, debug_, MillePedeFileConverter_cfg::e, Gfr, mps_fire::i, Inf, gen::k, mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by analyzeTrackTrack(), and analyzeTrackTrajectory().
void GlobalTrackerMuonAlignment::gradientLocal | ( | GlobalVector & | GRt, |
GlobalVector & | GPt, | ||
GlobalVector & | GRm, | ||
GlobalVector & | GPm, | ||
GlobalVector & | GNorm, | ||
CLHEP::HepSymMatrix & | covLoc, | ||
CLHEP::HepMatrix & | rotLoc, | ||
CLHEP::HepVector & | R0, | ||
AlgebraicVector4 & | LPRm | ||
) |
Definition at line 2308 of file GlobalTrackerMuonAlignment.cc.
References CLHEP_dot(), gather_cfg::cout, debug_, delta, GradL, HessL, mps_fire::i, cuy::ii, info(), reco::tau::disc::Pt(), pfBoostedDoubleSVAK8TagInfos_cfi::R0, mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by analyzeTrackTrack(), and analyzeTrackTrajectory().
void GlobalTrackerMuonAlignment::misalignMuon | ( | GlobalVector & | GRm, |
GlobalVector & | GPm, | ||
GlobalVector & | Nl, | ||
GlobalVector & | Rt, | ||
GlobalVector & | Rm, | ||
GlobalVector & | Pm | ||
) |
Definition at line 2566 of file GlobalTrackerMuonAlignment.cc.
References patCaloMETCorrections_cff::A, a, TtFullHadDaughter::B, alignmentValidation::c1, CLHEP_dot(), funct::cos(), gather_cfg::cout, edmIntegrityCheck::d, debug_, MuGlAngle, MuGlShift, alignCSCRings::s, indexGen::s2, funct::sin(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
void GlobalTrackerMuonAlignment::misalignMuonL | ( | GlobalVector & | GRm, |
GlobalVector & | GPm, | ||
GlobalVector & | Nl, | ||
GlobalVector & | Rt, | ||
GlobalVector & | Rm, | ||
GlobalVector & | Pm, | ||
AlgebraicVector4 & | Vm, | ||
TrajectoryStateOnSurface & | tsosTrack, | ||
TrajectoryStateOnSurface & | tsosMuon | ||
) |
Definition at line 2715 of file GlobalTrackerMuonAlignment.cc.
References patCaloMETCorrections_cff::A, a, TtFullHadDaughter::B, alignmentValidation::c1, CLHEP_dot(), funct::cos(), gather_cfg::cout, edmIntegrityCheck::d, debug_, cuy::ii, TrajectoryStateOnSurface::localParameters(), MuGlAngle, MuGlShift, GloballyPositioned< T >::position(), LocalTrajectoryParameters::pzSign(), pfBoostedDoubleSVAK8TagInfos_cfi::R0, GloballyPositioned< T >::rotation(), alignCSCRings::s, indexGen::s2, funct::sin(), mathSSE::sqrt(), TrajectoryStateOnSurface::surface(), LocalTrajectoryParameters::vector(), PV3DBase< T, PVType, FrameType >::x(), TkRotation< T >::xx(), TkRotation< T >::xy(), TkRotation< T >::xz(), PV3DBase< T, PVType, FrameType >::y(), TkRotation< T >::yx(), TkRotation< T >::yy(), TkRotation< T >::yz(), PV3DBase< T, PVType, FrameType >::z(), TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().
Referenced by analyzeTrackTrack(), and