CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

L2TauIsolationSelector Class Reference

#include <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 ()
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.

                                                                            :
  associationInput_(iConfig.getParameter<edm::InputTag>("L2InfoAssociation")),
  ECALIsolEt_(iConfig.getParameter<double>("ECALIsolEt")),
  TowerIsolEt_(iConfig.getParameter<double>("TowerIsolEt")),
  Cluster_etaRMS_(iConfig.getParameter<double>("ClusterEtaRMS")),
  Cluster_phiRMS_(iConfig.getParameter<double>("ClusterPhiRMS")),
  Cluster_drRMS_(iConfig.getParameter<double>("ClusterDRRMS")),
  Cluster_nClusters_(iConfig.getParameter<int>("ClusterNClusters")),
  JetEt_(iConfig.getParameter<double>("MinJetEt")),
  SeedTowerEt_(iConfig.getParameter<double>("SeedTowerEt"))

{

  produces<CaloJetCollection>("Isolated");
}
L2TauIsolationSelector::~L2TauIsolationSelector ( )

Definition at line 23 of file L2TauIsolationSelector.cc.

{
 

}

Member Function Documentation

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

Reimplemented from edm::EDProducer.

Definition at line 73 of file L2TauIsolationSelector.cc.

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

Reimplemented from edm::EDProducer.

Definition at line 79 of file L2TauIsolationSelector.cc.

                               {
}
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::ecalClusterShape(), reco::L2TauIsolationInfo::ecalIsolEt(), ECALIsolEt_, reco::LeafCandidate::et(), edm::Event::getByLabel(), reco::L2TauIsolationInfo::hcalIsolEt(), metsig::jet, JetEt_, reco::L2TauIsolationInfo::nEcalHits(), L1TEmulatorMonitor_cff::p, edm::Event::put(), reco::L2TauIsolationInfo::seedHcalHitEt(), SeedTowerEt_, and TowerIsolEt_.

{
   using namespace edm;
   edm::Handle<L2TauInfoAssociation> Imap;

   iEvent.getByLabel(associationInput_ ,Imap);
   std::auto_ptr<CaloJetCollection> l2IsolCaloJets( new CaloJetCollection );

   if(Imap->size()>0)
         for(L2TauInfoAssociation::const_iterator p = Imap->begin();p!=Imap->end();++p)
           {
             //Retrieve The L2TauIsolationInfo Class from the AssociationMap
             const L2TauIsolationInfo l2info = p->val;
             //Retrieve the Jet
             const CaloJet jet =*(p->key);
             
             //If The Cuts are Satisfied
           if(jet.et()>JetEt_) 
             if(l2info.ecalIsolEt()< ECALIsolEt_)
               if(l2info.seedHcalHitEt()>SeedTowerEt_)
                if(l2info.nEcalHits() <Cluster_nClusters_)
                    if(l2info.ecalClusterShape()[0] <Cluster_etaRMS_)
                       if(l2info.ecalClusterShape()[1] <Cluster_phiRMS_)
                         if(l2info.ecalClusterShape()[2] <Cluster_drRMS_)
                           if(l2info.hcalIsolEt()<TowerIsolEt_)
                             {
                                 //Retrieve the Jet From the AssociationMap
                               l2IsolCaloJets->push_back(jet);
                             }

           }
 
        iEvent.put(l2IsolCaloJets, "Isolated");
}

Member Data Documentation

Definition at line 31 of file L2TauIsolationSelector.h.

Referenced by produce().

Definition at line 38 of file L2TauIsolationSelector.h.

Referenced by produce().

Definition at line 36 of file L2TauIsolationSelector.h.

Referenced by produce().

Definition at line 39 of file L2TauIsolationSelector.h.

Referenced by produce().

Definition at line 37 of file L2TauIsolationSelector.h.

Referenced by produce().

Definition at line 34 of file L2TauIsolationSelector.h.

Referenced by produce().

Definition at line 40 of file L2TauIsolationSelector.h.

Referenced by produce().

Definition at line 41 of file L2TauIsolationSelector.h.

Referenced by produce().

Definition at line 35 of file L2TauIsolationSelector.h.

Referenced by produce().