30 #define TWOPI 6.283185308
63 using namespace trigger;
64 using namespace l1extra;
91 std::vector<l1extra::L1EmParticleRef > l1EGIso;
94 std::vector<l1extra::L1EmParticleRef > l1EGNonIso;
98 for (reco::RecoEcalCandidateCollection::const_iterator recoecalcand= recoIsolecalcands->begin(); recoecalcand!=recoIsolecalcands->end(); recoecalcand++) {
104 bool matchedSCIso =
matchedToL1Cand(l1EGIso,recoecalcand->eta(),recoecalcand->phi());
110 bool matchedSCNonIso=
false;
112 matchedSCNonIso =
matchedToL1Cand(l1EGNonIso,recoecalcand->eta(),recoecalcand->phi());
116 if(matchedSCIso || matchedSCNonIso) {
136 for (reco::RecoEcalCandidateCollection::const_iterator recoecalcand= recoNonIsolecalcands->begin(); recoecalcand!=recoNonIsolecalcands->end(); recoecalcand++) {
138 bool matchedSCNonIso =
matchedToL1Cand(l1EGNonIso,recoecalcand->eta(),recoecalcand->phi());
140 if(matchedSCNonIso) {
162 for (
unsigned int i=0;
i<l1Cands.size();
i++) {
164 double etaBinLow = 0.;
165 double etaBinHigh = 0.;
175 float deltaphi=fabs(scPhi -l1Cands[
i]->
phi());
177 if(deltaphi>
TWOPI/2.) deltaphi=
TWOPI-deltaphi;
179 if(scEta < etaBinHigh && scEta > etaBinLow && deltaphi <
region_phi_size_/2. ) {
T getParameter(std::string const &) const
edm::InputTag l1IsolatedTag_
HLTEgammaL1MatchFilterRegional(const edm::ParameterSet &)
virtual bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct)
edm::InputTag candIsolatedTag_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
edm::InputTag L1SeedFilterTag_
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
bool matchedToL1Cand(const std::vector< l1extra::L1EmParticleRef > &l1Cands, const float scEta, const float scPhi)
edm::InputTag candNonIsolatedTag_
edm::InputTag l1NonIsolatedTag_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
~HLTEgammaL1MatchFilterRegional()
double region_eta_size_ecap_