117 std::vector<l1t::Muon> l1ts;
118 std::vector<size_t> bxIdxs;
127 l1size = l1tBX->
size();
136 bxIdxs.push_back(l1tBX->
end(ibx) - l1tBX->
begin());
140 l1size =
l1s->size();
145 std::vector<edm::Ptr<reco::Candidate> > l1rawMatches(
reco->size());
147 std::vector<edm::Ptr<reco::Candidate> > whichRecoMatch(l1size);
148 vector<int> propMatches(
reco->size(), -1);
149 vector<int> fullMatches(
reco->size(), -1);
152 vector<int> iPhi(
reco->size(), 0), tfIndex(
reco->size(), -999);
153 for (
int i = 0,
n =
reco->size();
i <
n; ++
i) {
160 propMatches[
i] = propOut->size();
163 propOut->back().setCharge(
mu.charge());
188 l1Out->back().addFilterLabel(
labelL1_);
189 l1Out->back().setCharge(
charge);
198 isolated[
i] =
l1t.hwIso();
200 iPhi[
i] =
l1t.hwPhi();
201 tfIndex[
i] =
l1t.tfMuonIndex();
206 isolated[
i] = gmt.
isol();
217 propFiller.insert(
reco, propMatches.begin(), propMatches.end());
223 fullFiller.insert(
reco, fullMatches.begin(), fullMatches.end());
bool isol() const
get isolation
bool writeExtraInfo_
Write out additional info as ValueMaps.
pat::TriggerObjectStandAloneCollection PATPrimitiveCollection
L1MuonMatcherAlgo matcher_
int bx() const
get bunch crossing identifier
pat::TriggerObjectStandAlone PATPrimitive
const_iterator begin(int bx) const
unsigned size(int bx) const
unsigned int quality() const
get quality
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
edm::EDGetTokenT< std::vector< l1extra::L1MuonParticle > > l1Token_
std::string labelL1_
Labels to set as filter names in the output.
GlobalPoint globalPosition() const
pat::TriggerObjectStandAloneMatch PATTriggerAssociation
const PolarLorentzVector & polarP4() const final
four-momentum Lorentz vector
edm::EDGetTokenT< l1t::MuonBxCollection > l1tToken_
bool useStage2L1_
Allow to run both on legacy or stage2 (2016) L1 Muon trigger output.
helper::Filler< ValueMap< int > > Filler
int firstBX_
Skim stage2 BX vector.
bool isSelected(const std::vector< L1HPSPFTauQualityCut > &qualityCuts, const l1t::PFCandidate &pfCand, float_t primaryVertexZ)
edm::EDGetTokenT< edm::View< reco::Candidate > > recoToken_
Tokens for input collections.
const_iterator end(int bx) const
void storeExtraInfo(edm::Event &iEvent, const Hand &handle, const std::vector< T > &values, const std::string &label) const
Store extra information in a ValueMap.
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
int charge() const final
electric charge