134 auto out = std::make_unique<std::vector<TrajectorySeed>>();
136 for (
auto const &
mu : *
src) {
139 if (
debug_ &&
mu.innerTrack().isNonnull())
145 std::unique_ptr<Propagator> pmuon_cloned =
149 int sizeBefore =
out->size();
151 LogDebug(
"OutsideInMuonSeeder") <<
"\n\n\nSeeding for muon of pt " <<
mu.pt() <<
", eta " <<
mu.eta() <<
", phi " 152 <<
mu.phi() << std::endl;
160 std::vector<BarrelDetLayer const *>
const &tob =
measurementTracker->geometricSearchTracker()->tobLayers();
162 int iLayer = tob.size();
164 LogError(
"OutsideInMuonSeeder") <<
"TOB has no layers.";
166 for (
auto it = tob.rbegin(), ed = tob.rend(); it != ed; ++it, --iLayer) {
168 LogDebug(
"OutsideInMuonSeeder") <<
"\n ==== Trying TOB " << iLayer <<
" ====" << std::endl;
180 LogDebug(
"OutsideInMuonSeeder") <<
"\n We are using the Phase2 Outer Tracker (defined as a TID+). ";
182 LogTrace(
"OutsideInMuonSeeder") <<
"\n ==== TEC+ tot layers " << forwLayers.size() <<
" ====" << std::endl;
184 int iLayer = forwLayers.size();
186 LogError(
"OutsideInMuonSeeder") <<
"TEC+ has no layers.";
189 LogDebug(
"OutsideInMuonSeeder") <<
"\n ==== Tot layers " << forwLayers.size() <<
" ====" << std::endl;
190 for (
auto it = forwLayers.rbegin(), ed = forwLayers.rend(); it != ed; ++it, --iLayer) {
192 LogDebug(
"OutsideInMuonSeeder") <<
"\n ==== Trying Forward Layer +" << +iLayer <<
" ====" << std::endl;
204 LogDebug(
"OutsideInMuonSeeder") <<
"\n We are using the Phase2 Outer Tracker (defined as a TID-). ";
206 LogTrace(
"OutsideInMuonSeeder") <<
"\n ==== TEC- tot layers " << forwLayers.size() <<
" ====" << std::endl;
208 int iLayer = forwLayers.size();
210 LogError(
"OutsideInMuonSeeder") <<
"TEC- has no layers.";
213 LogDebug(
"OutsideInMuonSeeder") <<
"\n ==== Tot layers " << forwLayers.size() <<
" ====" << std::endl;
214 for (
auto it = forwLayers.rbegin(), ed = forwLayers.rend(); it != ed; ++it, --iLayer) {
216 LogDebug(
"OutsideInMuonSeeder") <<
"\n ==== Trying Forward Layer -" << -iLayer <<
" ====" << std::endl;
224 LogDebug(
"OutsideInMuonSeeder") <<
"Outcome of seeding for muon of pt " <<
mu.pt() <<
", eta " <<
mu.eta()
225 <<
", phi " <<
mu.phi() <<
": found " << (
out->size() - sizeBefore) <<
" seeds." T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
const TrajectoryStateUpdator * updator_
const Chi2MeasurementEstimatorBase * estimator_
float const maxEtaForTOB_
const bool fromVertex_
Do inside-out.
trackerPropagator
Propagator used searching for hits.
Log< level::Error, false > LogError
const edm::ESGetToken< Propagator, TrackingComponentsRecord > muonPropagatorToken_
const MagneticField * magfield_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magfieldToken_
std::unique_ptr< Propagator > SetPropagationDirection(Propagator const &iprop, PropagationDirection dir)
const bool debug_
Dump deug information.
void doDebug(const reco::Track &tk) const
Abs< T >::type abs(const T &t)
const Propagator * muonPropagator_
const edm::ESGetToken< TrajectoryStateUpdator, TrackingComponentsRecord > updatorToken_
double eta() const
pseudorapidity of momentum vector
const edm::EDGetTokenT< MeasurementTrackerEvent > measurementTrackerTag_
const GlobalTrackingGeometry * geometry_
StringCutObjectSelector< reco::Muon > selector_
Muon selection.
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geometryToken_
edm::EDGetTokenT< edm::View< reco::Muon > > src_
Labels for input collections.
const int layersToTry_
How many layers to try.
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > estimatorToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeometryToken_
float const minEtaForTEC_
int doLayer(const GeometricSearchDet &layer, const TrajectoryStateOnSurface &state, std::vector< TrajectorySeed > &out, const Propagator &muon_propagator, const Propagator &tracker_propagator, const MeasurementTrackerEvent &mte) const
const edm::ESGetToken< Propagator, TrackingComponentsRecord > trackerPropagatorToken_