#include <KalmanAlignmentAlgorithm.h>
Public Types | |
typedef KalmanAlignmentSetup | AlignmentSetup |
typedef std::vector < AlignmentSetup * > | AlignmentSetupCollection |
typedef TrajectoryFactoryBase::ExternalPredictionCollection | ExternalPredictionCollection |
typedef TrajectoryFactoryBase::ReferenceTrajectoryCollection | ReferenceTrajectoryCollection |
typedef TrajectoryFactoryBase::ReferenceTrajectoryPtr | ReferenceTrajectoryPtr |
typedef std::vector< TrackletPtr > | TrackletCollection |
typedef KalmanAlignmentTracklet::TrackletPtr | TrackletPtr |
Public Types inherited from AlignmentAlgorithmBase | |
typedef std::pair< const Trajectory *, const reco::Track * > | ConstTrajTrackPair |
typedef std::vector < ConstTrajTrackPair > | ConstTrajTrackPairCollection |
typedef cond::RealTimeType < cond::runnumber >::type | RunNumber |
typedef std::pair< RunNumber, RunNumber > | RunRange |
Public Member Functions | |
virtual void | initialize (const edm::EventSetup &setup, AlignableTracker *tracker, AlignableMuon *muon, AlignableExtras *extras, AlignmentParameterStore *store) |
Call at beginning of job (must be implemented in derived class) More... | |
KalmanAlignmentAlgorithm (const edm::ParameterSet &config) | |
bool | operator() (const Alignable *a1, const Alignable *a2) const |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
virtual void | run (const edm::EventSetup &setup, const EventInfo &eventInfo) |
Run the algorithm (must be implemented in derived class) More... | |
virtual void | terminate (const edm::EventSetup &setup) |
Call at end of each loop (must be implemented in derived class) More... | |
virtual | ~KalmanAlignmentAlgorithm (void) |
Public Member Functions inherited from AlignmentAlgorithmBase | |
virtual bool | addCalibrations (const std::vector< IntegratedCalibrationBase * > &iCals) |
AlignmentAlgorithmBase (const edm::ParameterSet &cfg) | |
Constructor. More... | |
virtual void | beginLuminosityBlock (const edm::EventSetup &setup) |
called at begin of luminosity block (no lumi block info passed yet) More... | |
virtual void | beginRun (const edm::EventSetup &setup) |
called at begin of run More... | |
virtual void | endLuminosityBlock (const edm::EventSetup &setup) |
called at end of luminosity block (no lumi block info passed yet) More... | |
virtual void | endRun (const EndRunInfo &runInfo, const edm::EventSetup &setup) |
called at end of run - order of arguments like in EDProducer etc. More... | |
virtual bool | setParametersForRunRange (const RunRange &rr) |
virtual void | startNewLoop () |
virtual | ~AlignmentAlgorithmBase () |
Destructor. More... | |
Private Member Functions | |
void | applyAlignmentParameters (Alignable *ali, AlignmentParameters *par, bool applyPar, bool applyCov) const |
void | getComponents (Alignable *ali, std::vector< Alignable * > &comps) const |
const PropagationDirection | getDirection (const std::string &dir) const |
const KalmanAlignmentSetup::SortingDirection | getSortingDirection (const std::string &sortDir) const |
void | initializeAlignmentParameters (const edm::EventSetup &setup) |
void | initializeAlignmentSetups (const edm::EventSetup &setup) |
void | mergeResults (void) const |
const PropagationDirection | oppositeDirection (const PropagationDirection dir) const |
void | setAPEToZero (void) |
Definition at line 24 of file KalmanAlignmentAlgorithm.h.
Definition at line 36 of file KalmanAlignmentAlgorithm.h.
typedef std::vector< AlignmentSetup* > KalmanAlignmentAlgorithm::AlignmentSetupCollection |
Definition at line 37 of file KalmanAlignmentAlgorithm.h.
typedef TrajectoryFactoryBase::ExternalPredictionCollection KalmanAlignmentAlgorithm::ExternalPredictionCollection |
Definition at line 31 of file KalmanAlignmentAlgorithm.h.
typedef TrajectoryFactoryBase::ReferenceTrajectoryCollection KalmanAlignmentAlgorithm::ReferenceTrajectoryCollection |
Definition at line 30 of file KalmanAlignmentAlgorithm.h.
typedef TrajectoryFactoryBase::ReferenceTrajectoryPtr KalmanAlignmentAlgorithm::ReferenceTrajectoryPtr |
Definition at line 29 of file KalmanAlignmentAlgorithm.h.
typedef std::vector< TrackletPtr > KalmanAlignmentAlgorithm::TrackletCollection |
Definition at line 34 of file KalmanAlignmentAlgorithm.h.
Definition at line 33 of file KalmanAlignmentAlgorithm.h.
KalmanAlignmentAlgorithm::KalmanAlignmentAlgorithm | ( | const edm::ParameterSet & | config | ) |
Definition at line 46 of file KalmanAlignmentAlgorithm.cc.
|
virtual |
Definition at line 52 of file KalmanAlignmentAlgorithm.cc.
|
private |
Definition at line 648 of file KalmanAlignmentAlgorithm.cc.
References AlignmentParameters::covariance(), alignCSCRings::e, edm::hlt::Exception, Alignable::move(), Alignable::rotateInLocalFrame(), RigidBodyAlignmentParameters::rotation(), Alignable::setAlignmentPositionError(), edm::shift, mathSSE::sqrt(), Alignable::surface(), AlignableSurface::toGlobal(), align::toMatrix(), RigidBodyAlignmentParameters::translation(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by initializeAlignmentParameters(), and mergeResults().
|
private |
Definition at line 678 of file KalmanAlignmentAlgorithm.cc.
References Alignable::components().
Referenced by mergeResults().
|
inlineprivate |
Definition at line 73 of file KalmanAlignmentAlgorithm.h.
References alongMomentum, and oppositeToMomentum.
Referenced by initializeAlignmentSetups().
|
private |
Definition at line 635 of file KalmanAlignmentAlgorithm.cc.
References edm::hlt::Exception, KalmanAlignmentSetup::sortDownsideUp, KalmanAlignmentSetup::sortInsideOut, KalmanAlignmentSetup::sortOutsideIn, and KalmanAlignmentSetup::sortUpsideDown.
Referenced by initializeAlignmentSetups().
|
virtual |
Call at beginning of job (must be implemented in derived class)
Implements AlignmentAlgorithmBase.
Definition at line 55 of file KalmanAlignmentAlgorithm.cc.
References AlignableComposite::components(), KalmanAlignmentDataCollector::configure(), edm::ParameterSet::getParameter(), initializeAlignmentParameters(), initializeAlignmentSetups(), mergeResults(), theConfiguration, theMergerFlag, theNavigator, theParameterStore, theRefitter, theSelector, theTracker, and patCandidatesForDimuonsSequences_cff::tracker.
|
private |
Definition at line 212 of file KalmanAlignmentAlgorithm.cc.
References AlignmentParameterSelector::addSelection(), applyAlignmentParameters(), AlignmentParameterSelector::clear(), AlignmentParameters::clone(), HDQMDatabaseProducer::config, gather_cfg::cout, AlignmentParameters::covariance(), alignCSCRings::e, funct::false, mergeVDriftHistosByStation::file, edm::EventSetup::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), AlignmentParametersFactory::kRigidBody, Parameters::parameters, AlignmentParameters::parameters(), edm::ESHandle< class >::product(), CosmicsPD_Skims::radius, AlignmentIORoot::readAlignmentParameters(), AlignmentParameterSelector::selectedAlignables(), KalmanAlignmentUserVariables::setAlignmentFlag(), setAPEToZero(), AlignmentParameters::setUserVariables(), AlignmentParameters::setValid(), python.multivaluedict::sort(), mathSSE::sqrt(), theConfiguration, theSelector, align::toMatrix(), KalmanAlignmentUserVariables::update(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by initialize().
|
private |
Definition at line 499 of file KalmanAlignmentAlgorithm.cc.
References AnalyticalPropagator_cfi::AnalyticalPropagator, HDQMDatabaseProducer::config, gather_cfg::cout, edm::hlt::Exception, edm::EventSetup::get(), reco::get(), getDirection(), edm::ParameterSet::getParameter(), getSortingDirection(), edm::ParameterSet::getUntrackedParameter(), KFFittingSmootherESProducer_cfi::KFFittingSmoother, KFTrajectoryFitterESProducer_cfi::KFTrajectoryFitter, KFTrajectorySmootherESProducer_cfi::KFTrajectorySmoother, oppositeDirection(), LargeD0_PixelPairStep_cff::propagator, theAlignmentSetups, theConfiguration, and theNavigator.
Referenced by initialize().
|
private |
Definition at line 688 of file KalmanAlignmentAlgorithm.cc.
References applyAlignmentParameters(), AlignmentParameters::clone(), gather_cfg::cout, getComponents(), edm::ParameterSet::getParameter(), AlignmentIORoot::readAlignmentParameters(), theConfiguration, theTracker, and AlignmentIORoot::writeAlignmentParameters().
Referenced by initialize().
|
inline |
Definition at line 57 of file KalmanAlignmentAlgorithm.h.
References Alignable::id().
|
inlineprivate |
Definition at line 76 of file KalmanAlignmentAlgorithm.h.
References alongMomentum, and oppositeToMomentum.
Referenced by initializeAlignmentSetups().
|
inlinevirtual |
Dummy implementation. Needed for inheritance of TrackProducerBase, but we don't produce anything.
Definition at line 45 of file KalmanAlignmentAlgorithm.h.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
virtual |
Run the algorithm (must be implemented in derived class)
Implements AlignmentAlgorithmBase.
Definition at line 149 of file KalmanAlignmentAlgorithm.cc.
References SiPixelRawToDigiRegional_cfi::beamSpot, AlignmentAlgorithmBase::EventInfo::beamSpot_, gather_cfg::cout, cppFunctionSkipper::exception, KalmanAlignmentDataCollector::fillHistogram(), edm::EventSetup::get(), iEvent, edm::ESHandle< class >::product(), KalmanAlignmentTrackRefitter::refitTracks(), terminate(), theAlignmentSetups, theMergerFlag, theNavigator, theParameterStore, theRefitter, testEve_cfg::tracks, AlignmentAlgorithmBase::EventInfo::trajTrackPairs_, and cms::Exception::what().
Referenced by Types.LuminosityBlockID::cppID().
|
private |
Definition at line 771 of file KalmanAlignmentAlgorithm.cc.
References AlignableComposite::setAlignmentPositionError(), and theTracker.
Referenced by initializeAlignmentParameters().
|
virtual |
Call at end of each loop (must be implemented in derived class)
Implements AlignmentAlgorithmBase.
Definition at line 83 of file KalmanAlignmentAlgorithm.cc.
References gather_cfg::cout, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), KalmanAlignmentUserVariables::histogramParameters(), KalmanAlignmentUserVariables::numberOfUpdates(), convertSQLitetoXML_cfg::output, theAlignmentSetups, theConfiguration, theMergerFlag, theNavigator, KalmanAlignmentUserVariables::update(), AlignmentParameters::userVariables(), KalmanAlignmentDataCollector::write(), and AlignmentIORoot::writeAlignmentParameters().
Referenced by run().
|
private |
Definition at line 83 of file KalmanAlignmentAlgorithm.h.
Referenced by initializeAlignmentSetups(), run(), and terminate().
|
private |
Definition at line 81 of file KalmanAlignmentAlgorithm.h.
Referenced by initialize(), initializeAlignmentParameters(), initializeAlignmentSetups(), mergeResults(), and terminate().
|
private |
Definition at line 93 of file KalmanAlignmentAlgorithm.h.
Referenced by initialize(), run(), and terminate().
|
private |
Definition at line 88 of file KalmanAlignmentAlgorithm.h.
Referenced by initialize(), initializeAlignmentSetups(), run(), and terminate().
|
private |
Definition at line 87 of file KalmanAlignmentAlgorithm.h.
Referenced by initialize(), and run().
|
private |
Definition at line 85 of file KalmanAlignmentAlgorithm.h.
Referenced by initialize(), and run().
|
private |
Definition at line 89 of file KalmanAlignmentAlgorithm.h.
Referenced by initialize(), and initializeAlignmentParameters().
|
private |
Definition at line 91 of file KalmanAlignmentAlgorithm.h.
Referenced by initialize(), mergeResults(), and setAPEToZero().