56 bool setParameterErrors)
const;
101 if (tracks.size() == 2) {
103 std::vector<reco::TransientTrack> transientTracks(2);
106 transientTracks[0].setTrackingGeometry(trackingGeometry);
109 transientTracks[1].setTrackingGeometry(trackingGeometry);
122 edm::LogInfo(
"ReferenceTrajectories") <<
"@SUB=TwoBodyDecayTrajectoryFactory::trajectories"
123 <<
"Need 2 tracks, got " << tracks.size() <<
".\n";
140 if (tracks.size() == 2 && external.size() == 2) {
141 if (external[0].
isValid() && external[1].isValid())
144 std::vector<reco::TransientTrack> transientTracks(2);
147 transientTracks[0].setTrackingGeometry(trackingGeometry);
150 transientTracks[1].setTrackingGeometry(trackingGeometry);
166 trajectories = this->
trajectories(setup, tracks, beamSpot);
169 edm::LogInfo(
"ReferenceTrajectories") <<
"@SUB=TwoBodyDecayTrajectoryFactory::trajectories"
170 <<
"Need 2 tracks, got " << tracks.size() <<
".\n";
181 bool setParameterErrors)
const {
188 if (!(input1.first.isValid() && input2.first.isValid()))
196 if (!trajectoryState.
isValid()) {
213 if (!valid1 || !valid2) {
227 if (setParameterErrors && tbd.
hasError())
238 double deltaX = lp1.
x() - lp2.
x();
239 double deltaY = lp1.
y() - lp2.
y();
243 double varX = le.
xx();
244 double varY = le.
yy();
bool hasError(void) const
bool theUseRefittedStateFlag
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
~TwoBodyDecayTrajectoryFactory() override
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > m_globTackingToken
MaterialEffects materialEffects(void) const
TwoBodyDecayTrajectory::ConstRecHitCollection ConstRecHitCollection
LocalPoint localPosition() const
TwoBodyDecayVirtualMeasurement VirtualMeasurement
void setParameterErrors(const AlgebraicSymMatrix &error)
const ReferenceTrajectoryCollection constructTrajectories(const ConstTrajTrackPairCollection &tracks, const TwoBodyDecay &tbd, const MagneticField *magField, const reco::BeamSpot &beamSpot, bool setParameterErrors) const
TwoBodyDecayFitter theFitter
bool theConstructTsosWithErrorsFlag
auto const & tracks
cannot be loose
const TsosContainer & trajectoryStates(bool useRefittedState=true) const
bool match(const TrajectoryStateOnSurface &state, const TransientTrackingRecHit::ConstRecHitPointer &recHit) const
virtual const TwoBodyDecay estimate(const std::vector< reco::TransientTrack > &tracks, const TwoBodyDecayVirtualMeasurement &vm) const
bool getData(T &iHolder) const
U second(std::pair< T, U > const &p)
const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const override
Produce the trajectories.
const AlgebraicSymMatrix & covariance(void) const
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
const bool allowZeroMaterial_
bool constructTsosWithErrors
TwoBodyDecayTrajectoryFactory * clone() const override
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
Log< level::Info, false > LogInfo
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > m_MagFieldToken
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > TsosContainer
T getParameter(std::string const &) const
TwoBodyDecayTrajectoryFactory(const edm::ParameterSet &config, edm::ConsumesCollector &iC)
tuple config
parse the configuration file
PropagationDirection propagationDirection(void) const
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
#define DEFINE_EDM_PLUGIN(factory, type, name)
ReferenceTrajectoryBase::ReferenceTrajectoryPtr ReferenceTrajectoryPtr
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
TwoBodyDecayTrajectoryState::TsosContainer TsosContainer
std::pair< ConstRecHitContainer, ConstRecHitContainer > ConstRecHitCollection