#include <RecoTauTag/HLTProducers/interface/L2TauIsolationSelector.h>
Public Member Functions | |
L2TauIsolationSelector (const edm::ParameterSet &) | |
~L2TauIsolationSelector () | |
Private Member Functions | |
virtual void | beginJob (const edm::EventSetup &) |
virtual void | endJob () |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
Private Attributes | |
edm::InputTag | associationInput_ |
double | Cluster_drRMS_ |
double | Cluster_etaRMS_ |
int | Cluster_nClusters_ |
double | Cluster_phiRMS_ |
double | ECALIsolEt_ |
double | JetEt_ |
double | SeedTowerEt_ |
double | TowerIsolEt_ |
Definition at line 21 of file L2TauIsolationSelector.h.
L2TauIsolationSelector::L2TauIsolationSelector | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 6 of file L2TauIsolationSelector.cc.
00006 : 00007 associationInput_(iConfig.getParameter<edm::InputTag>("L2InfoAssociation")), 00008 ECALIsolEt_(iConfig.getParameter<double>("ECALIsolEt")), 00009 TowerIsolEt_(iConfig.getParameter<double>("TowerIsolEt")), 00010 Cluster_etaRMS_(iConfig.getParameter<double>("ClusterEtaRMS")), 00011 Cluster_phiRMS_(iConfig.getParameter<double>("ClusterPhiRMS")), 00012 Cluster_drRMS_(iConfig.getParameter<double>("ClusterDRRMS")), 00013 Cluster_nClusters_(iConfig.getParameter<int>("ClusterNClusters")), 00014 JetEt_(iConfig.getParameter<double>("MinJetEt")), 00015 SeedTowerEt_(iConfig.getParameter<double>("SeedTowerEt")) 00016 00017 { 00018 00019 produces<CaloJetCollection>("Isolated"); 00020 }
L2TauIsolationSelector::~L2TauIsolationSelector | ( | ) |
void L2TauIsolationSelector::beginJob | ( | const edm::EventSetup & | ) | [private, virtual] |
void L2TauIsolationSelector::produce | ( | edm::Event & | iEvent, | |
const edm::EventSetup & | iSetup | |||
) | [private, virtual] |
Implements edm::EDProducer.
Definition at line 36 of file L2TauIsolationSelector.cc.
References associationInput_, Cluster_drRMS_, Cluster_etaRMS_, Cluster_nClusters_, Cluster_phiRMS_, reco::L2TauIsolationInfo::ECALClusterDRRMS, reco::L2TauIsolationInfo::ECALClusterEtaRMS, reco::L2TauIsolationInfo::ECALClusterNClusters, reco::L2TauIsolationInfo::ECALClusterPhiRMS, reco::L2TauIsolationInfo::ECALIsolConeCut, ECALIsolEt_, reco::Particle::et(), edm::Event::getByLabel(), metsig::jet, JetEt_, p, edm::Event::put(), reco::L2TauIsolationInfo::SeedTowerEt, SeedTowerEt_, reco::L2TauIsolationInfo::TowerIsolConeCut, and TowerIsolEt_.
00037 { 00038 using namespace edm; 00039 Handle<L2TauInfoAssociation> Imap; 00040 00041 iEvent.getByLabel(associationInput_ ,Imap); 00042 std::auto_ptr<CaloJetCollection> l2IsolCaloJets( new CaloJetCollection ); 00043 00044 if(Imap->size()>0) 00045 for(L2TauInfoAssociation::const_iterator p = Imap->begin();p!=Imap->end();++p) 00046 { 00047 //Retrieve The L2TauIsolationInfo Class from the AssociationMap 00048 const L2TauIsolationInfo l2info = p->val; 00049 //Retrieve the Jet 00050 const CaloJet jet =*(p->key); 00051 00052 //If The Cuts are Satisfied 00053 if(jet.et()>JetEt_) 00054 if(l2info.ECALIsolConeCut< ECALIsolEt_) 00055 if(l2info.SeedTowerEt>SeedTowerEt_) 00056 if(l2info.ECALClusterNClusters <Cluster_nClusters_) 00057 if(l2info.ECALClusterEtaRMS <Cluster_etaRMS_) 00058 if(l2info.ECALClusterPhiRMS <Cluster_phiRMS_) 00059 if(l2info.ECALClusterDRRMS <Cluster_drRMS_) 00060 if(l2info.TowerIsolConeCut<TowerIsolEt_) 00061 { 00062 //Retrieve the Jet From the AssociationMap 00063 l2IsolCaloJets->push_back(jet); 00064 } 00065 00066 } 00067 00068 iEvent.put(l2IsolCaloJets, "Isolated"); 00069 }
double L2TauIsolationSelector::Cluster_drRMS_ [private] |
double L2TauIsolationSelector::Cluster_etaRMS_ [private] |
double L2TauIsolationSelector::Cluster_phiRMS_ [private] |
double L2TauIsolationSelector::ECALIsolEt_ [private] |
double L2TauIsolationSelector::JetEt_ [private] |
double L2TauIsolationSelector::SeedTowerEt_ [private] |
double L2TauIsolationSelector::TowerIsolEt_ [private] |