72 produces<TrajectorySeedCollection>();
83 auto result = std::make_unique<TrajectorySeedCollection>();
102 if(
muon->innerTrack().isNull() )
continue;
107 if( (!track->innerOk()) || (!track->recHit(0)->isValid()))
continue;
108 GlobalPoint innerPosition(track->innerPosition().x(), track->innerPosition().y(), track->innerPosition().z());
109 GlobalVector innerMomentum(track->innerMomentum().x(), track->innerMomentum().y(), track->innerMomentum().z());
110 int charge = track->charge();
112 DetId innerDetId =
DetId(track->innerDetId());
117 LogTrace(
"MuonIdentification") <<
"Track Inner FTS: "<<tracker_state;
123 trackHits.
push_back(track->recHit(0)->clone() );
128 LogTrace(
"MuonIdentification")<<
"Trajectory Seed Direction: "<< trajectorySeed.direction()<<endl;
129 result->push_back(trajectorySeed);
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > trackCollectionToken_
edm::InputTag trackCollectionTag_
virtual void produce(edm::Event &, const edm::EventSetup &) override
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
reco::TrackRef findOppositeTrack(const edm::Handle< reco::TrackCollection > &collection, const reco::Track &muon, double angleMatch=0.01, double momentumMatch=0.05)
bool isNonnull() const
Checks for non-null.
edm::EDGetTokenT< edm::View< reco::Muon > > muonCollectionToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::InputTag muonCollectionTag_
uint32_t rawId() const
get the raw id
TrajectorySeedFromMuonProducer(const edm::ParameterSet &)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
math::Error< dimension >::type CovarianceMatrix
5 parameter covariance matrix