66 desc.
add<
bool>(
"AlsoNonIsolatedFirst",
false);
67 desc.
add<
bool>(
"AlsoNonIsolatedSecond",
false);
68 desc.
add<
double>(
"region_eta_size",0.522);
69 desc.
add<
double>(
"region_eta_size_ecap",1.0);
70 desc.
add<
double>(
"region_phi_size",1.044);
71 desc.
add<
double>(
"barrel_end",1.4791);
72 desc.
add<
double>(
"endcap_end",2.65);
73 descriptions.
add(
"hltEgammaL1MatchFilterPairs",desc);
93 for (
auto recoecalcand1= recoIsolecalcands->begin(); recoecalcand1!=recoIsolecalcands->end(); recoecalcand1++) {
95 for (
auto recoecalcand2= recoIsolecalcands->begin(); recoecalcand2!=recoIsolecalcands->end(); recoecalcand2++) {
100 for (
auto recoecalcand2= recoNonIsolecalcands->begin(); recoecalcand2!=recoNonIsolecalcands->end(); recoecalcand2++) {
110 for (
auto recoecalcand1= recoNonIsolecalcands->begin(); recoecalcand1!=recoNonIsolecalcands->end(); recoecalcand1++) {
112 for (
auto recoecalcand2= recoIsolecalcands->begin(); recoecalcand2!=recoIsolecalcands->end(); recoecalcand2++) {
117 for (
auto recoecalcand2= recoNonIsolecalcands->begin(); recoecalcand2!=recoNonIsolecalcands->end(); recoecalcand2++) {
137 std::vector<l1extra::L1EmParticleRef > l1EGIso;
139 std::vector<l1extra::L1EmParticleRef > l1EGNonIso;
149 for (pairsIt = thePairs.begin(); pairsIt != thePairs.end(); pairsIt++){
171 for (
auto &
i : l1EGIso) {
173 double etaBinLow = 0.;
174 double etaBinHigh = 0.;
184 float deltaphi=fabs(ref->phi() -
i->phi());
186 if(deltaphi>
M_PI) deltaphi=
TWOPI-deltaphi;
188 if(ref->eta() < etaBinHigh && ref->eta() > etaBinLow && deltaphi <
region_phi_size_/2. ) {
return true;}
192 for (
auto &
i : l1EGNonIso) {
194 double etaBinLow = 0.;
195 double etaBinHigh = 0.;
205 float deltaphi=fabs(ref->phi() -
i->phi());
207 if(deltaphi>
M_PI) deltaphi=
TWOPI-deltaphi;
209 if(ref->eta() < etaBinHigh && ref->eta() > etaBinLow && deltaphi <
region_phi_size_/2. ) {
return true;}
T getParameter(std::string const &) const
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::InputTag candIsolatedTag_
double region_eta_size_ecap_
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > L1SeedFilterToken_
edm::InputTag L1SeedFilterTag_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
edm::InputTag l1IsolatedTag_
#define DEFINE_FWK_MODULE(type)
bool AlsoNonIsolatedSecond_
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool AlsoNonIsolatedFirst_
~HLTEgammaL1MatchFilterPairs() override
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > candNonIsolatedToken_
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
edm::InputTag candNonIsolatedTag_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > candIsolatedToken_
bool CheckL1Matching(edm::Ref< reco::RecoEcalCandidateCollection >ref, std::vector< l1extra::L1EmParticleRef > &l1EGIso, std::vector< l1extra::L1EmParticleRef > &l1EGNonIso) const
edm::InputTag l1NonIsolatedTag_
HLTEgammaL1MatchFilterPairs(const edm::ParameterSet &)