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
L2TauRelaxingIsolationSelector Class Reference

#include <L2TauRelaxingIsolationSelector.h>

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

Public Member Functions

 L2TauRelaxingIsolationSelector (const edm::ParameterSet &)
 
 ~L2TauRelaxingIsolationSelector ()
 
- 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_
 
std::vector< double > drRMS_
 
std::vector< double > ecalIsolEt_
 
double et_
 
std::vector< double > etaRMS_
 
std::vector< double > nClusters_
 
std::vector< double > phiRMS_
 
double seedTowerEt_
 
std::vector< 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 22 of file L2TauRelaxingIsolationSelector.h.

Constructor & Destructor Documentation

L2TauRelaxingIsolationSelector::L2TauRelaxingIsolationSelector ( const edm::ParameterSet iConfig)
explicit

Definition at line 7 of file L2TauRelaxingIsolationSelector.cc.

7  :
8  associationInput_(consumes<L2TauInfoAssociation>(iConfig.getParameter<edm::InputTag>("L2InfoAssociation"))),
9  ecalIsolEt_(iConfig.getParameter<std::vector<double> >("EcalIsolationEt")),
10  towerIsolEt_(iConfig.getParameter<std::vector<double> >("TowerIsolationEt")),
11  nClusters_(iConfig.getParameter<std::vector<double> >("NumberOfClusters")),
12  phiRMS_(iConfig.getParameter<std::vector<double> >("ClusterPhiRMS")),
13  etaRMS_(iConfig.getParameter<std::vector<double> >("ClusterEtaRMS")),
14  drRMS_(iConfig.getParameter<std::vector<double> >("ClusterDRRMS")),
15  et_(iConfig.getParameter<double>("MinJetEt")),
16  seedTowerEt_(iConfig.getParameter<double>("SeedTowerEt"))
17 {
18  produces<CaloJetCollection>("Isolated");
19 }
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::L2TauInfoAssociation > associationInput_
L2TauRelaxingIsolationSelector::~L2TauRelaxingIsolationSelector ( )

Definition at line 22 of file L2TauRelaxingIsolationSelector.cc.

23 {
24 
25 }

Member Function Documentation

void L2TauRelaxingIsolationSelector::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 69 of file L2TauRelaxingIsolationSelector.cc.

70 {
71 }
void L2TauRelaxingIsolationSelector::endJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 75 of file L2TauRelaxingIsolationSelector.cc.

75  {
76 }
void L2TauRelaxingIsolationSelector::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDProducer.

Definition at line 33 of file L2TauRelaxingIsolationSelector.cc.

References associationInput_, drRMS_, reco::L2TauIsolationInfo::ecalClusterShape(), reco::L2TauIsolationInfo::ecalIsolEt(), ecalIsolEt_, reco::LeafCandidate::et(), et_, etaRMS_, edm::Event::getByToken(), reco::L2TauIsolationInfo::hcalIsolEt(), metsig::jet, nClusters_, reco::L2TauIsolationInfo::nEcalHits(), AlCaHLTBitMon_ParallelJobs::p, phiRMS_, edm::Event::put(), reco::L2TauIsolationInfo::seedHcalHitEt(), seedTowerEt_, and towerIsolEt_.

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

Member Data Documentation

edm::EDGetTokenT<reco::L2TauInfoAssociation> L2TauRelaxingIsolationSelector::associationInput_
private

Definition at line 34 of file L2TauRelaxingIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauRelaxingIsolationSelector::drRMS_
private

Definition at line 42 of file L2TauRelaxingIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauRelaxingIsolationSelector::ecalIsolEt_
private

Definition at line 37 of file L2TauRelaxingIsolationSelector.h.

Referenced by produce().

double L2TauRelaxingIsolationSelector::et_
private

Definition at line 45 of file L2TauRelaxingIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauRelaxingIsolationSelector::etaRMS_
private

Definition at line 41 of file L2TauRelaxingIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauRelaxingIsolationSelector::nClusters_
private

Definition at line 39 of file L2TauRelaxingIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauRelaxingIsolationSelector::phiRMS_
private

Definition at line 40 of file L2TauRelaxingIsolationSelector.h.

Referenced by produce().

double L2TauRelaxingIsolationSelector::seedTowerEt_
private

Definition at line 46 of file L2TauRelaxingIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauRelaxingIsolationSelector::towerIsolEt_
private

Definition at line 38 of file L2TauRelaxingIsolationSelector.h.

Referenced by produce().