CMS 3D CMS Logo

L2TauIsolationSelector Class Reference

#include <RecoTauTag/HLTProducers/interface/L2TauIsolationSelector.h>

Inheritance diagram for L2TauIsolationSelector:

edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

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_


Detailed Description

Definition at line 21 of file L2TauIsolationSelector.h.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 23 of file L2TauIsolationSelector.cc.

00024 {
00025  
00026 
00027 }


Member Function Documentation

void L2TauIsolationSelector::beginJob ( const edm::EventSetup  )  [private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 73 of file L2TauIsolationSelector.cc.

00074 {
00075 }

void L2TauIsolationSelector::endJob ( void   )  [private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 79 of file L2TauIsolationSelector.cc.

00079                                {
00080 }

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 }


Member Data Documentation

edm::InputTag L2TauIsolationSelector::associationInput_ [private]

Definition at line 31 of file L2TauIsolationSelector.h.

Referenced by produce().

double L2TauIsolationSelector::Cluster_drRMS_ [private]

Definition at line 38 of file L2TauIsolationSelector.h.

Referenced by produce().

double L2TauIsolationSelector::Cluster_etaRMS_ [private]

Definition at line 36 of file L2TauIsolationSelector.h.

Referenced by produce().

int L2TauIsolationSelector::Cluster_nClusters_ [private]

Definition at line 39 of file L2TauIsolationSelector.h.

Referenced by produce().

double L2TauIsolationSelector::Cluster_phiRMS_ [private]

Definition at line 37 of file L2TauIsolationSelector.h.

Referenced by produce().

double L2TauIsolationSelector::ECALIsolEt_ [private]

Definition at line 34 of file L2TauIsolationSelector.h.

Referenced by produce().

double L2TauIsolationSelector::JetEt_ [private]

Definition at line 40 of file L2TauIsolationSelector.h.

Referenced by produce().

double L2TauIsolationSelector::SeedTowerEt_ [private]

Definition at line 41 of file L2TauIsolationSelector.h.

Referenced by produce().

double L2TauIsolationSelector::TowerIsolEt_ [private]

Definition at line 35 of file L2TauIsolationSelector.h.

Referenced by produce().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:27:10 2009 for CMSSW by  doxygen 1.5.4