28 std::unique_ptr<TrajectoryFilter>
filter,
29 std::unique_ptr<TrajectoryFilter> inOutFilter)
30 : theSeedAs5DHit(conf.getParameter<
bool>(
"seedAs5DHit")),
32 theInOutFilter(
std::
move(inOutFilter)),
35 thePropagatorOppositeToken(
39 if (conf.
exists(
"clustersToSkip"))
41 <<
"ERROR: " <<
typeid(*this).name() <<
" has a clustersToSkip parameter set";
47 iDesc.
add<
bool>(
"seedAs5DHit",
false);
49 iDesc.
add<
std::string>(
"propagatorAlong",
"PropagatorWithMaterial");
50 iDesc.
add<
std::string>(
"propagatorOpposite",
"PropagatorWithMaterialOpposite");
69 TSOS invalidState(gdet->surface());
71 result.emplace(invalidState, outerState,
recHit, 0, hitLayer);
75 for (
auto ihit =
seed.recHits().begin(); ihit !=
seed.recHits().end(); ihit++) {
82 if (ihit ==
seed.recHits().end() - 1) {
84 if (&gdet->surface() != &hitGeomDet->
surface()) {
86 <<
"CkfTrajectoryBuilder error: the seed state is not on the surface of the detector of the last seed hit";
91 result.emplace(invalidState, outerState,
recHit, 0, hitLayer);
102 result.emplace(invalidState, innerUpdated,
recHit, 0, hitLayer);
124 LogTrace(
"BaseCkfTrajectoryBuilder_InfiniteLoop")
125 <<
"Cropping Track After 400 Measurements:\n" 128 <<
" Found hits: " << traj.
foundHits() <<
", lost hits: " << traj.
lostHits() <<
"\n\n";
164 LogDebug(
"CkfPattern") << inOut <<
"=inOut option. pushing a Trajectory with: " << traj.
foundHits() <<
" found hits. " 181 LogDebug(
"CkfPattern") << inOut <<
"=inOut option. pushing a TempTrajectory with: " << traj.
foundHits()
182 <<
" found hits. " << traj.
lostHits()
193 while (!traj.empty() && !traj.lastMeasurement().recHitR().isValid())
195 LogDebug(
"CkfPattern") << inOut <<
"=inOut option. pushing a TempTrajectory with: " << traj.foundHits()
196 <<
" found hits. " << traj.lostHits();
208 const Surface* surface = &
g->surface();
228 std::cerr <<
"ERROR SetEvent called on " <<
typeid(*this).name()
229 << (
theMeasurementTracker ?
" with valid " :
"witout any ") <<
"MeasurementTrackerEvent" << std::endl;
233 std::cerr <<
"ERROR unSet called on " <<
typeid(*this).name()
234 << (
theMeasurementTracker ?
" with valid " :
"witout any ") <<
"MeasurementTrackerEvent" << std::endl;
StateAndLayers findStateAndLayers(const TrajectorySeed &seed, const TempTrajectory &traj) const
PropagationDirection direction() const
~BaseCkfTrajectoryBuilder() override
TrajectoryStateOnSurface const & predictedState() const
void setData(const MeasurementTrackerEvent *data)
const edm::ESGetToken< Propagator, TrackingComponentsRecord > thePropagatorAlongToken
TempTrajectory createStartingTrajectory(const TrajectorySeed &seed) const
const DetLayer * detLayer(const DetId &id) const
obsolete method. Use idToLayer() instead.
bool exists(std::string const ¶meterName) const
checks if a parameter exists
bool toBeContinued(TempTrajectory &traj, bool inOut=false) const
const Propagator * backwardPropagator(const TrajectorySeed &seed) const
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
const TrajectoryStateUpdator * theUpdator
const Propagator * thePropagatorAlong
Log< level::Error, false > LogError
const DataContainer & measurements() const
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
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
TrajectoryMeasurement const & lastMeasurement() const
unsigned int detId() const
void seedMeasurements(const TrajectorySeed &seed, TempTrajectory &result, bool as5D) const
DataContainer const & measurements() const
virtual void setEvent_(const edm::Event &iEvent, const edm::EventSetup &iSetup)=0
virtual TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TrackingRecHit &) const =0
bool qualityFilter(const TempTrajectory &traj, bool inOut=false) const
const TransientTrackingRecHitBuilder * theTTRHBuilder
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > theEstimatorToken
const TrajectoryMeasurement & lastMeasurement() const
std::vector< const DetLayer * > nextLayers(const DetLayer &detLayer, Args &&... args) const
static std::unique_ptr< TrajectoryFilter > createTrajectoryFilter(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
std::unique_ptr< TrajectoryFilter > theInOutFilter
bool getData(T &iHolder) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillPSetDescription(edm::ParameterSetDescription &iDesc)
const TrackerGeomDet * idToDet(DetId) const override
static std::string dumpCandidate(const Candidate &candidate, bool showErrors=false)
std::shared_ptr< TrackingRecHit const > RecHitPointer
const MeasurementTrackerEvent * theMeasurementTracker
const edm::ESGetToken< Propagator, TrackingComponentsRecord > thePropagatorOppositeToken
void moveToResult(TempTrajectory &&traj, TempTrajectoryContainer &result, bool inOut=false) const
const Plane & surface() const
The nominal surface of the GeomDet.
Trajectory toTrajectory() const
Convert to a standard Trajectory.
std::pair< TSOS, std::vector< const DetLayer * > > StateAndLayers
std::vector< TempTrajectory > TempTrajectoryContainer
const DetLayer * lastLayer() const
Redundant method, returns the layer of lastMeasurement() .
bool empty() const
True if trajectory has no measurements.
void setSharedSeed(const std::shared_ptr< const TrajectorySeed > &seed)
TrajectoryStateOnSurface const & updatedState() const
const Propagator * thePropagatorOpposite
const GeometricSearchTracker * geometricSearchTracker() const
BaseCkfTrajectoryBuilder(const edm::ParameterSet &conf, edm::ConsumesCollector iC, std::unique_ptr< TrajectoryFilter > filter, std::unique_ptr< TrajectoryFilter > inOutFilter=nullptr)
virtual const MagneticField * magneticField() const =0
char data[epos_bytes_allocation]
void addToResult(std::shared_ptr< const TrajectorySeed > const &seed, TempTrajectory &traj, TrajectoryContainer &result, bool inOut=false) const
FreeTrajectoryState const * freeState(bool withErrors=true) const
const NavigationSchool * theNavigationSchool
const Propagator * forwardPropagator(const TrajectorySeed &seed) const
void unset() const override
const TrackerGeometry * geomTracker() const
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > theRecHitBuilderToken
void setEvent(const edm::Event &event) const override
const edm::ESGetToken< TrajectoryStateUpdator, TrackingComponentsRecord > theUpdatorToken
std::vector< Trajectory > TrajectoryContainer
const Chi2MeasurementEstimatorBase * theEstimator
std::unique_ptr< TrajectoryFilter > theFilter
ConstRecHitPointer const & recHit() const
bool empty() const
True if trajectory has no measurements.