CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
L2TauIsolationSelector Class Reference

#include <L2TauIsolationSelector.h>

Inheritance diagram for L2TauIsolationSelector:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 L2TauIsolationSelector (const edm::ParameterSet &)
 
 ~L2TauIsolationSelector ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

virtual void beginJob ()
 
virtual void endJob ()
 
virtual void produce (edm::Event &, const edm::EventSetup &) override
 

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_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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.

6  :
7  associationInput_(iConfig.getParameter<edm::InputTag>("L2InfoAssociation")),
8  ECALIsolEt_(iConfig.getParameter<double>("ECALIsolEt")),
9  TowerIsolEt_(iConfig.getParameter<double>("TowerIsolEt")),
10  Cluster_etaRMS_(iConfig.getParameter<double>("ClusterEtaRMS")),
11  Cluster_phiRMS_(iConfig.getParameter<double>("ClusterPhiRMS")),
12  Cluster_drRMS_(iConfig.getParameter<double>("ClusterDRRMS")),
13  Cluster_nClusters_(iConfig.getParameter<int>("ClusterNClusters")),
14  JetEt_(iConfig.getParameter<double>("MinJetEt")),
15  SeedTowerEt_(iConfig.getParameter<double>("SeedTowerEt"))
16 
17 {
18 
19  produces<CaloJetCollection>("Isolated");
20 }
T getParameter(std::string const &) const
L2TauIsolationSelector::~L2TauIsolationSelector ( )

Definition at line 23 of file L2TauIsolationSelector.cc.

24 {
25 
26 
27 }

Member Function Documentation

void L2TauIsolationSelector::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 73 of file L2TauIsolationSelector.cc.

74 {
75 }
void L2TauIsolationSelector::endJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 79 of file L2TauIsolationSelector.cc.

79  {
80 }
void L2TauIsolationSelector::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

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(), AlCaHLTBitMon_ParallelJobs::p, edm::Event::put(), reco::L2TauIsolationInfo::seedHcalHitEt(), SeedTowerEt_, and TowerIsolEt_.

37 {
38  using namespace edm;
40 
41  iEvent.getByLabel(associationInput_ ,Imap);
42  std::auto_ptr<CaloJetCollection> l2IsolCaloJets( new CaloJetCollection );
43 
44  if(Imap->size()>0)
45  for(L2TauInfoAssociation::const_iterator p = Imap->begin();p!=Imap->end();++p)
46  {
47  //Retrieve The L2TauIsolationInfo Class from the AssociationMap
48  const L2TauIsolationInfo l2info = p->val;
49  //Retrieve the Jet
50  const CaloJet jet =*(p->key);
51 
52  //If The Cuts are Satisfied
53  if(jet.et()>JetEt_)
54  if(l2info.ecalIsolEt()< ECALIsolEt_)
55  if(l2info.seedHcalHitEt()>SeedTowerEt_)
56  if(l2info.nEcalHits() <Cluster_nClusters_)
57  if(l2info.ecalClusterShape()[0] <Cluster_etaRMS_)
58  if(l2info.ecalClusterShape()[1] <Cluster_phiRMS_)
59  if(l2info.ecalClusterShape()[2] <Cluster_drRMS_)
60  if(l2info.hcalIsolEt()<TowerIsolEt_)
61  {
62  //Retrieve the Jet From the AssociationMap
63  l2IsolCaloJets->push_back(jet);
64  }
65 
66  }
67 
68  iEvent.put(l2IsolCaloJets, "Isolated");
69 }
virtual double et() const GCC11_FINAL
transverse energy
Jets made from CaloTowers.
Definition: CaloJet.h:29
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:116
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:390
std::vector< double > ecalClusterShape() const
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects

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