HLTL1MuonNoL2Selector: Simple selector to output a subset of L1 muon collection
based on RecoMuon/L2MuonSeedGenerator
- Author
- D. Olivito
HLTL1MuonNoL2Selector: Simple selector to output a subset of L1 muon collection with no L2 link.
based on RecoMuon/L2MuonSeedGenerator
- Author
- S. Folgueras
Definition at line 37 of file HLTL1MuonNoL2Selector.h.
Definition at line 65 of file HLTL1MuonNoL2Selector.cc.
References BXVector< T >::begin(), SoftLeptonByDistance_cfi::distance, BXVector< T >::end(), spr::find(), edm::Event::getByToken(), BXVector< T >::getFirstBX(), BXVector< T >::getLastBX(), trigger::TriggerRefsCollections::getObjects(), LogTrace, metname, eostools::move(), muCollToken_, convertSQLitetoXML_cfg::output, edm::RefVector< C, T, F >::push_back(), edm::Event::put(), SurveyInfoScenario_cff::seed, seedMapToken_, BXVector< T >::size(), AlCaHLTBitMon_QueryRunRegistry::string, theL1CandToken_, theL2CandToken_, and trigger::TriggerL1Mu.
85 LogTrace(metname) <<
"Number of muons " << muColl->
size() << endl;
90 std::vector<l1t::MuonRef> firedL1Muons_;
96 if (ibx != 0)
continue;
97 for (
auto it = muColl->
begin(ibx); it != muColl->
end(ibx); it++){
101 if(
find(firedL1Muons_.begin(), firedL1Muons_.end(), l1muon) == firedL1Muons_.end())
continue;
104 bool isTriggeredByL1=
false;
105 for (
auto const &
cand : *L2cands) {
108 for(
auto const &
seed : seeds){
110 if(
find(firedL1Muons_.begin(), firedL1Muons_.end(),
seed->l1tParticle()) != firedL1Muons_.end()){
111 isTriggeredByL1 =
true;
115 if (!isTriggeredByL1) {
116 output->push_back( ibx, *it);
const_iterator end(int bx) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
unsigned size(int bx) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
enum start value shifted to 81 so as to avoid clashes with PDG codes
const std::string metname
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::EDGetTokenT< l1t::MuonBxCollection > muCollToken_
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > theL2CandToken_
BXVector< Muon > MuonBxCollection
edm::EDGetTokenT< SeedMap > seedMapToken_
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > theL1CandToken_
const_iterator begin(int bx) const