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() )
233 if ( !valid1 || !valid2 )
256 double deltaX = lp1.
x() - lp2.
x();
257 double deltaY = lp1.
y() - lp2.
y();
261 double varX = le.
xx();
262 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
virtual const ReferenceTrajectoryCollection trajectories(const edm::EventSetup &setup, const ConstTrajTrackPairCollection &tracks, const reco::BeamSpot &beamSpot) const
Produce the trajectories.
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
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
virtual TwoBodyDecayTrajectoryFactory * clone() const
T const * product() const
const GlobalError & globalError() const
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
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
TwoBodyDecayTrajectoryState::TsosContainer TsosContainer