34 thePropagatorAlong(propagatorAlong),thePropagatorOpposite(propagatorOpposite),
35 theEstimator(estimator),theTTRHBuilder(recHitBuilder),
36 theMeasurementTracker(measurementTracker),
38 theForwardPropagator(0),theBackwardPropagator(0),
40 theInOutFilter(inOutFilter)
55 ihit != hitRange.second; ihit++) {
64 if (ihit == hitRange.second - 1) {
68 if (&gdet->surface() != &hitGeomDet->
surface()) {
69 edm::LogError(
"CkfPattern") <<
"CkfTrajectoryBuilder error: the seed state is not on the surface of the detector of the last seed hit";
75 result.push_back(
TM( invalidState, updatedState, recHit, 0, hitLayer));
82 (hitRange.second - 1)->geographicalId()))->surface()),
87 result.push_back(
TM( invalidState, innerUpdated, recHit, 0, hitLayer));
111 std::vector<TM> seedMeas;
113 for (std::vector<TM>::const_iterator
i=seedMeas.begin();
i!=seedMeas.end();
i++)
127 LogTrace(
"BaseCkfTrajectoryBuilder_InfiniteLoop") <<
128 "Cropping Track After 400 Measurements:\n" <<
131 " Found hits: " << traj.
foundHits() <<
", lost hits: " << traj.
lostHits() <<
"\n\n";
137 if (
theInOutFilter == 0)
edm::LogError(
"CkfPattern") <<
"CkfTrajectoryBuilder error: trying to use dedicated filter for in-out tracking phase, when none specified";
150 if (
theInOutFilter == 0)
edm::LogError(
"CkfPattern") <<
"CkfTrajectoryBuilder error: trying to use dedicated filter for in-out tracking phase, when none specified";
168 LogDebug(
"CkfPattern")<<inOut<<
"=inOut option. pushing a Trajectory with: "<<traj.
foundHits()<<
" found hits. "<<traj.
lostHits()
170 result.push_back( traj);
182 LogDebug(
"CkfPattern")<<inOut<<
"=inOut option. pushing a TempTrajectory with: "<<traj.
foundHits()<<
" found hits. "<<traj.
lostHits()
184 result.push_back( traj );
198 const Surface * surface=&g->surface();
PropagationDirection direction() const
bool empty() const
True if trajectory has no measurements.
const TrajectorySeed & seed() const
Access to the seed used to reconstruct the Trajectory.
const Propagator * theBackwardPropagator
bool empty() const
True if trajectory has no measurements.
virtual TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const =0
void addToResult(TempTrajectory &traj, TrajectoryContainer &result, bool inOut=false) const
const DataContainer & measurements() const
virtual std::vector< const DetLayer * > nextLayers(NavigationDirection direction) const
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
const TrajectoryStateUpdator * theUpdator
ConstRecHitPointer recHit() const
int foundHits() const
obsolete name, use measurements() instead.
BaseCkfTrajectoryBuilder(const edm::ParameterSet &conf, const TrajectoryStateUpdator *updator, const Propagator *propagatorAlong, const Propagator *propagatorOpposite, const Chi2MeasurementEstimatorBase *estimator, const TransientTrackingRecHitBuilder *RecHitBuilder, const MeasurementTracker *measurementTracker, const TrajectoryFilter *filter, const TrajectoryFilter *inOutFilter=0)
const TrajectoryFilter * theFilter
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
void seedMeasurements(const TrajectorySeed &seed, std::vector< TrajectoryMeasurement > &result) const
const TrajectoryMeasurement & lastMeasurement() const
bool qualityFilter(const TempTrajectory &traj, bool inOut=false) const
const LayerMeasurements * theLayerMeasurements
PropagationDirection direction() const
DataContainer const & measurements() const
FreeTrajectoryState * freeState(bool withErrors=true) const
Trajectory toTrajectory() const
Convert to a standard Trajectory.
recHitContainer::const_iterator const_iterator
virtual RecHitPointer build(const TrackingRecHit *p) const =0
build a tracking rechit from an existing rechit
TrajectoryMeasurement const & lastMeasurement() const
const TransientTrackingRecHitBuilder * theTTRHBuilder
const DetLayer * detLayer(const DetId &id) const
obsolete method. Use idToLayer() instead.
std::pair< const_iterator, const_iterator > range
const TrackingGeometry * geomTracker() const
TrajectoryStateOnSurface updatedState() const
virtual bool qualityFilter(const TempTrajectory &) const =0
TrajectoryStateOnSurface predictedState() const
static std::string dumpCandidate(const Candidate &candidate, bool showErrors=false)
virtual TrajectoryStateOnSurface propagate(const FreeTrajectoryState &, const Surface &) const
const MeasurementTracker * theMeasurementTracker
PTrajectoryStateOnDet const & startingState() const
tuple filter
USE THIS FOR SKIMMED TRACKS process.p = cms.Path(process.hltLevel1GTSeed*process.skimming*process.offlineBeamSpot*process.TrackRefitter2) OTHERWISE USE THIS.
virtual const GeomDet * idToDet(DetId) const =0
virtual ~BaseCkfTrajectoryBuilder()
std::vector< TempTrajectory > TempTrajectoryContainer
const unsigned int detId() const
virtual const MagneticField * magneticField() const =0
bool toBeContinued(TempTrajectory &traj, bool inOut=false) const
std::pair< TSOS, std::vector< const DetLayer * > > StateAndLayers
StateAndLayers findStateAndLayers(const TempTrajectory &traj) const
virtual bool toBeContinued(TempTrajectory &) const =0
const TrajectoryFilter * theInOutFilter
const DetLayer * lastLayer() const
Redundant method, returns the layer of lastMeasurement() .
const GeometricSearchTracker * geometricSearchTracker() const
virtual void fillSeedHistoDebugger(std::vector< TrajectoryMeasurement >::iterator begin, std::vector< TrajectoryMeasurement >::iterator end) const
virtual const BoundPlane & surface() const
The nominal surface of the GeomDet.
std::vector< Trajectory > TrajectoryContainer
TempTrajectory createStartingTrajectory(const TrajectorySeed &seed) const
const Propagator * theForwardPropagator