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."
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const TrajectoryStateUpdator * updator_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const Chi2MeasurementEstimatorBase * estimator_
float const maxEtaForTOB_
const bool fromVertex_
Do inside-out.
Log< level::Error, false > LogError
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 > muonPropagatorToken_
const MagneticField * magfield_
bool getData(T &iHolder) const
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magfieldToken_
std::unique_ptr< Propagator > SetPropagationDirection(Propagator const &iprop, PropagationDirection dir)
const bool debug_
Dump deug information.
double eta() const
pseudorapidity of momentum vector
Abs< T >::type abs(const T &t)
const Propagator * muonPropagator_
const edm::ESGetToken< TrajectoryStateUpdator, TrackingComponentsRecord > updatorToken_
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.
void doDebug(const reco::Track &tk) const
const int layersToTry_
How many layers to try.
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > estimatorToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeometryToken_
float const minEtaForTEC_
const edm::ESGetToken< Propagator, TrackingComponentsRecord > trackerPropagatorToken_