35 template <
class T>
T sqr(
T t) {
return t*
t;}
41 produces<L3MuonTrajectorySeedCollection>();
73 auto result = std::make_unique<L3MuonTrajectorySeedCollection>();
82 LogDebug(
"TSGFromL1Muon")<<l1muon->size()<<
" l1 muons to seed from.";
84 L1MuonParticleCollection::const_iterator muItr = l1muon->begin();
85 L1MuonParticleCollection::const_iterator muEnd = l1muon->end();
86 for (
size_t iL1 = 0; muItr < muEnd; ++muItr, ++iL1) {
88 if (muItr->gmtMuonCand().empty())
continue;
96 typedef std::vector<std::unique_ptr<TrackingRegion> > Regions;
98 for (Regions::const_iterator ir=regions.begin(); ir != regions.end(); ++ir) {
104 unsigned int nSets = candidates.
size();
105 for (
unsigned int ic= 0; ic <nSets; ic++) {
108 std::vector<const TrackingRecHit *> trh;
109 for (
unsigned int i= 0, nHits = hits.
size();
i< nHits; ++
i) trh.push_back( hits[
i]->hit() );
113 if (!track)
continue;
115 if (!
filter(track, trh) ) {
delete track;
continue; }
120 for (L1MuonSeedsMerger::TracksAndHits::const_iterator it = tracks.begin();
121 it != tracks.end(); ++it) {
135 LogDebug(
"TSGFromL1Muon")<<
result->size()<<
" seeds to the event.";
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::ParameterSet theConfig
TSGFromL1Muon(const edm::ParameterSet &cfg)
~TSGFromL1Muon() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::pair< const reco::Track *, SeedingHitSet > TrackAndHits
void produce(edm::Event &ev, const edm::EventSetup &es) override
std::unique_ptr< L1MuonPixelTrackFitter > theFitter
OrderedHitsGenerator * theHitGenerator
TrajectorySeed trajectorySeed() const
std::unique_ptr< L1MuonRegionProducer > theRegionProducer
edm::EDGetTokenT< PixelTrackFilter > theFilterToken
virtual const OrderedSeedingHits & run(const TrackingRegion ®, const edm::Event &ev, const edm::EventSetup &es)=0
std::vector< TrackAndHits > TracksAndHits
L1MuonSeedsMerger * theMerger
edm::InputTag theSourceTag
virtual void resolve(TracksAndHits &) const
virtual unsigned int size() const =0
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
edm::EDGetTokenT< l1extra::L1MuonParticleCollection > theSourceToken
unsigned int size() const
T get(const Candidate &c)