58 bool setParameterErrors)
const;
109 if ( tracks.size() == 2 )
112 std::vector< reco::TransientTrack > transientTracks( 2 );
115 transientTracks[0].
setES( setup );
118 transientTracks[1].
setES( setup );
134 edm::LogInfo(
"ReferenceTrajectories" ) <<
"@SUB=TwoBodyDecayTrajectoryFactory::trajectories" 135 <<
"Need 2 tracks, got " << tracks.size() <<
".\n";
153 if ( tracks.size() == 2 && external.size() == 2 )
155 if ( external[0].isValid() && external[1].isValid() )
158 std::vector< reco::TransientTrack > transientTracks( 2 );
161 transientTracks[0].
setES( setup );
164 transientTracks[1].
setES( setup );
183 trajectories = this->
trajectories(setup, tracks, beamSpot);
188 edm::LogInfo(
"ReferenceTrajectories" ) <<
"@SUB=TwoBodyDecayTrajectoryFactory::trajectories" 189 <<
"Need 2 tracks, got " << tracks.size() <<
".\n";
201 bool setParameterErrors )
const 209 if ( !( input1.first.isValid() && input2.first.isValid() ) )
return trajectories;
216 if ( !trajectoryState.
isValid() )
237 if ( !valid1 || !valid2 )
268 double deltaX = lp1.
x() - lp2.
x();
269 double deltaY = lp1.
y() - lp2.
y();
273 double varX = le.
xx();
274 double varY = le.
yy();
T getParameter(std::string const &) const
bool hasError(void) const
bool theUseRefittedStateFlag
const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const override
Produce the trajectories.
~TwoBodyDecayTrajectoryFactory() override
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
def setup(process, global_tag, zero_tesla=False)
bool theConstructTsosWithErrorsFlag
std::pair< ConstRecHitContainer, ConstRecHitContainer > ConstRecHitCollection
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
U second(std::pair< T, U > const &p)
const AlgebraicSymMatrix & covariance(void) const
TwoBodyDecayTrajectoryFactory * clone() const override
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
const bool allowZeroMaterial_
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > TsosContainer
bool constructTsosWithErrors
void setES(const edm::EventSetup &es)
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
TwoBodyDecayTrajectoryFactory(const edm::ParameterSet &config)
PropagationDirection propagationDirection(void) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
ReferenceTrajectoryBase::ReferenceTrajectoryPtr ReferenceTrajectoryPtr
T const * product() const
TwoBodyDecayTrajectoryState::TsosContainer TsosContainer