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
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) 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::EDGetTokenT
< reco::L2TauInfoAssociation
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 5 of file L2TauIsolationSelector.cc.

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

Definition at line 22 of file L2TauIsolationSelector.cc.

23 {
24 
25 
26 }

Member Function Documentation

void L2TauIsolationSelector::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 72 of file L2TauIsolationSelector.cc.

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

Reimplemented from edm::EDProducer.

Definition at line 78 of file L2TauIsolationSelector.cc.

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

Implements edm::EDProducer.

Definition at line 35 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::getByToken(), reco::L2TauIsolationInfo::hcalIsolEt(), metsig::jet, JetEt_, reco::L2TauIsolationInfo::nEcalHits(), AlCaHLTBitMon_ParallelJobs::p, edm::Event::put(), reco::L2TauIsolationInfo::seedHcalHitEt(), SeedTowerEt_, and TowerIsolEt_.

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

Member Data Documentation

edm::EDGetTokenT<reco::L2TauInfoAssociation> 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().