58 bool setParameterErrors)
const;
110 if ( tracks.size() == 2 )
113 std::vector< reco::TransientTrack > transientTracks( 2 );
116 transientTracks[0].
setES( setup );
119 transientTracks[1].
setES( setup );
135 edm::LogInfo(
"ReferenceTrajectories" ) <<
"@SUB=TwoBodyDecayTrajectoryFactory::trajectories"
136 <<
"Need 2 tracks, got " << tracks.size() <<
".\n";
154 if ( tracks.size() == 2 && external.size() == 2 )
156 if ( external[0].isValid() && external[1].isValid() )
159 std::vector< reco::TransientTrack > transientTracks( 2 );
162 transientTracks[0].
setES( setup );
165 transientTracks[1].
setES( setup );
184 trajectories = this->
trajectories(setup, tracks, beamSpot);
189 edm::LogInfo(
"ReferenceTrajectories" ) <<
"@SUB=TwoBodyDecayTrajectoryFactory::trajectories"
190 <<
"Need 2 tracks, got " << tracks.size() <<
".\n";
202 bool setParameterErrors )
const
210 if ( !( input1.first.isValid() && input2.first.isValid() ) )
return trajectories;
217 if ( !trajectoryState.
isValid() )
238 if ( !valid1 || !valid2 )
261 double deltaX = lp1.
x() - lp2.
x();
262 double deltaY = lp1.
y() - lp2.
y();
266 double varX = le.
xx();
267 double varY = le.
yy();
T getParameter(std::string const &) const
bool hasError(void) const
bool theUseRefittedStateFlag
TwoBodyDecayFitter * theFitter
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
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)
virtual 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
std::pair< TrajectoryStateOnSurface, TrajectoryStateOnSurface > TsosContainer
void setES(const edm::EventSetup &es)
~TwoBodyDecayTrajectoryFactory()
virtual const TrajectoryInput innermostStateAndRecHits(const ConstTrajTrackPair &track) const
AlignmentAlgorithmBase::ConstTrajTrackPairCollection ConstTrajTrackPairCollection
std::vector< ReferenceTrajectoryPtr > ReferenceTrajectoryCollection
T const * product() const
TwoBodyDecayTrajectoryFactory(const edm::ParameterSet &config)
PropagationDirection propagationDirection(void) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
virtual TwoBodyDecayTrajectoryFactory * clone() const override
std::pair< TrajectoryStateOnSurface, TransientTrackingRecHit::ConstRecHitContainer > TrajectoryInput
volatile std::atomic< bool > shutdown_flag false
std::vector< TrajectoryStateOnSurface > ExternalPredictionCollection
ReferenceTrajectoryBase::ReferenceTrajectoryPtr ReferenceTrajectoryPtr
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
TwoBodyDecayTrajectoryState::TsosContainer TsosContainer