69 template <
typename Hand,
typename T>
72 const std::vector<T> &
values,
82 :
matcher_(iConfig, consumesCollector()),
89 produces<PATPrimitiveCollection>(
"propagatedReco");
90 produces<PATTriggerAssociation>(
"propagatedReco");
91 produces<PATTriggerAssociation>();
93 produces<edm::ValueMap<float> >(
"deltaR");
94 produces<edm::ValueMap<float> >(
"deltaPhi");
111 vector<int> propMatches(
reco->size(), -1);
112 vector<int> fullMatches(
reco->size(), -1);
115 for (
int i = 0,
n =
reco->size();
i <
n; ++
i) {
121 propMatches[
i] = propOut->size();
124 propOut->back().setCharge(mu.
charge());
137 propFiller.
insert(
reco, propMatches.begin(), propMatches.end());
143 fullFiller.
insert(
reco, fullMatches.begin(), fullMatches.end());
153 template <
typename Hand,
typename T>
156 const std::vector<T> &
values,
160 unique_ptr<ValueMap<T> > valMap(
new ValueMap<T>());
162 filler.
insert(handle, values.begin(), values.end());
void init(const edm::EventSetup &iSetup)
Call this method at the beginning of each run, to initialize geometry, magnetic field and propagators...
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
std::vector< TriggerObjectStandAlone > TriggerObjectStandAloneCollection
Collection of TriggerObjectStandAlone.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual double pt() const =0
transverse momentum
#define DEFINE_FWK_MODULE(type)
virtual double mass() const =0
mass
Geom::Phi< T > phi() const
void insert(const H &h, I begin, I end)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
GlobalPoint globalPosition() const
~HLTL1MuonMatcher() override
L1MuonMatcherAlgo matcher_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< const pat::TriggerObjectStandAlone * > lockedItems_
edm::EDGetTokenT< edm::View< reco::Candidate > > recoToken_
Tokens for input collections.
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
pat::TriggerObjectStandAlone PATPrimitive
pat::TriggerObjectStandAloneCollection PATPrimitiveCollection
virtual int charge() const =0
electric charge
bool writeExtraInfo_
Write out additional info as ValueMaps.
void storeExtraInfo(edm::Event &iEvent, const Hand &handle, const std::vector< T > &values, const std::string &label) const
Store extra information in a ValueMap.
StringCutObjectSelector< PATPrimitive > selector_
Select HLT objects.
T getParameter(std::string const &) const
int matchGeneric(const reco::Track &tk, const Collection &l1, const Selector &sel, float &deltaR, float &deltaPhi, TrajectoryStateOnSurface &propagated) const
HLTL1MuonMatcher(const edm::ParameterSet &iConfig)
Matcher of reconstructed objects to L1 Muons.
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
std::string labelProp_
Labels to set as filter names in the output.
bool operator()(const pat::TriggerObjectStandAlone &l1) const
select L1s with patName_ and filterLabel_ (public, so it can be used by L1MuonMatcherAlgo) ...
edm::EDGetTokenT< PATPrimitiveCollection > l1Token_
pat::TriggerObjectStandAloneMatch PATTriggerAssociation
Analysis-level trigger object class (stand-alone)