59 bool setParameterErrors)
const;
111 if ( tracks.size() == 2 )
114 std::vector< reco::TransientTrack > transientTracks( 2 );
117 transientTracks[0].
setES( setup );
120 transientTracks[1].
setES( setup );
136 edm::LogInfo(
"ReferenceTrajectories" ) <<
"@SUB=TwoBodyDecayTrajectoryFactory::trajectories"
137 <<
"Need 2 tracks, got " << tracks.size() <<
".\n";
155 if ( tracks.size() == 2 && external.size() == 2 )
157 if ( external[0].isValid() && external[1].isValid() )
160 std::vector< reco::TransientTrack > transientTracks( 2 );
163 transientTracks[0].
setES( setup );
166 transientTracks[1].
setES( setup );
185 trajectories = this->
trajectories(setup, tracks, beamSpot);
190 edm::LogInfo(
"ReferenceTrajectories" ) <<
"@SUB=TwoBodyDecayTrajectoryFactory::trajectories"
191 <<
"Need 2 tracks, got " << tracks.size() <<
".\n";
203 bool setParameterErrors )
const
211 if ( !( input1.first.isValid() && input2.first.isValid() ) )
return trajectories;
218 if ( !trajectoryState.
isValid() )
239 if ( !valid1 || !valid2 )
262 double deltaX = lp1.
x() - lp2.
x();
263 double deltaY = lp1.
y() - lp2.
y();
267 double varX = le.
xx();
268 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
const GlobalError & globalError() 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