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

#include <L2TauModularIsolationSelector.h>

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

Public Member Functions

 L2TauModularIsolationSelector (const edm::ParameterSet &)
 
 ~L2TauModularIsolationSelector ()
 
- 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 > ecalClusterDrRMS_
 
std::vector< double > ecalClusterEtaRMS_
 
std::vector< double > ecalClusterPhiRMS_
 
std::vector< double > ecalIsolEt_
 
double et_
 
std::vector< double > hcalClusterDrRMS_
 
std::vector< double > hcalClusterEtaRMS_
 
std::vector< double > hcalClusterPhiRMS_
 
std::vector< double > hcalIsolEt_
 
std::vector< double > nEcalClusters_
 
std::vector< double > nHcalClusters_
 
double seedTowerEt_
 

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 L2TauModularIsolationSelector.h.

Constructor & Destructor Documentation

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

Definition at line 6 of file L2TauModularIsolationSelector.cc.

6  :
7  associationInput_(consumes<L2TauInfoAssociation>(iConfig.getParameter<edm::InputTag>("L2InfoAssociation"))),
8 
9  ecalIsolEt_(iConfig.getParameter<std::vector<double> >("EcalIsolationEt")),
10  nEcalClusters_(iConfig.getParameter<std::vector<double> >("NumberOfECALClusters")),
11  ecalClusterPhiRMS_(iConfig.getParameter<std::vector<double> >("ECALClusterPhiRMS")),
12  ecalClusterEtaRMS_(iConfig.getParameter<std::vector<double> >("ECALClusterEtaRMS")),
13  ecalClusterDrRMS_(iConfig.getParameter<std::vector<double> >("ECALClusterDRRMS")),
14  hcalIsolEt_(iConfig.getParameter<std::vector<double> >("HcalIsolationEt")),
15  nHcalClusters_(iConfig.getParameter<std::vector<double> >("NumberOfHCALClusters")),
16  hcalClusterPhiRMS_(iConfig.getParameter<std::vector<double> >("HCALClusterPhiRMS")),
17  hcalClusterEtaRMS_(iConfig.getParameter<std::vector<double> >("HCALClusterEtaRMS")),
18  hcalClusterDrRMS_(iConfig.getParameter<std::vector<double> >("HCALClusterDRRMS")),
19  et_(iConfig.getParameter<double>("MinJetEt")),
20  seedTowerEt_(iConfig.getParameter<double>("SeedTowerEt"))
21 {
22  produces<CaloJetCollection>("Isolated");
23 }
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::L2TauInfoAssociation > associationInput_
L2TauModularIsolationSelector::~L2TauModularIsolationSelector ( )

Definition at line 26 of file L2TauModularIsolationSelector.cc.

27 {
28 
29 }

Member Function Documentation

void L2TauModularIsolationSelector::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 77 of file L2TauModularIsolationSelector.cc.

78 {
79 }
void L2TauModularIsolationSelector::endJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 83 of file L2TauModularIsolationSelector.cc.

83  {
84 }
void L2TauModularIsolationSelector::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDProducer.

Definition at line 37 of file L2TauModularIsolationSelector.cc.

References associationInput_, ecalClusterDrRMS_, ecalClusterEtaRMS_, ecalClusterPhiRMS_, reco::L2TauIsolationInfo::ecalClusterShape(), reco::L2TauIsolationInfo::ecalIsolEt(), ecalIsolEt_, reco::LeafCandidate::et(), et_, edm::Event::getByToken(), hcalClusterDrRMS_, hcalClusterEtaRMS_, hcalClusterPhiRMS_, reco::L2TauIsolationInfo::hcalClusterShape(), reco::L2TauIsolationInfo::hcalIsolEt(), hcalIsolEt_, metsig::jet, nEcalClusters_, reco::L2TauIsolationInfo::nEcalHits(), nHcalClusters_, reco::L2TauIsolationInfo::nHcalHits(), AlCaHLTBitMon_ParallelJobs::p, edm::Event::put(), reco::L2TauIsolationInfo::seedHcalHitEt(), and seedTowerEt_.

38 {
39  using namespace edm;
41 
42  std::auto_ptr<CaloJetCollection> l2IsolCaloJets( new CaloJetCollection );
43  iEvent.getByToken(associationInput_ ,Imap);
44 
45  if(Imap->size()>0)
46  for(L2TauInfoAssociation::const_iterator p = Imap->begin();p!=Imap->end();++p)
47  {
48  //Retrieve The L2TauIsolationInfo Class from the AssociationMap
49  const L2TauIsolationInfo l2info = p->val;
50  //Retrieve the Jet
51  const CaloJet jet =*(p->key);
52 
53  //If The Cuts are Satisfied
54  if(jet.et()>et_)
55  if(l2info.seedHcalHitEt()>seedTowerEt_)
56  if(l2info.ecalIsolEt()< ecalIsolEt_[0]+ecalIsolEt_[1]*jet.et()+ecalIsolEt_[2]*jet.et()*jet.et())
57  if(l2info.nEcalHits() <(int)(nEcalClusters_[0]+nEcalClusters_[1]*jet.et()+nEcalClusters_[2]*jet.et()*jet.et()))
58  if(l2info.ecalClusterShape()[0] <ecalClusterEtaRMS_[0]+ecalClusterEtaRMS_[1]*jet.et()+ecalClusterEtaRMS_[2]*jet.et()*jet.et())
59  if(l2info.ecalClusterShape()[1] <ecalClusterPhiRMS_[0]+ecalClusterPhiRMS_[1]*jet.et()+ecalClusterPhiRMS_[2]*jet.et()*jet.et())
60  if(l2info.ecalClusterShape()[2] <ecalClusterDrRMS_[0]+ecalClusterDrRMS_[1]*jet.et()+ecalClusterDrRMS_[2]*jet.et()*jet.et())
61  if(l2info.hcalIsolEt()<hcalIsolEt_[0]+hcalIsolEt_[1]*jet.et()+hcalIsolEt_[2]*jet.et()*jet.et())
62  if(l2info.nHcalHits() <(int)(nHcalClusters_[0]+nHcalClusters_[1]*jet.et()+nHcalClusters_[2]*jet.et()*jet.et()))
63  if(l2info.hcalClusterShape()[0] <hcalClusterEtaRMS_[0]+hcalClusterEtaRMS_[1]*jet.et()+hcalClusterEtaRMS_[2]*jet.et()*jet.et())
64  if(l2info.hcalClusterShape()[1] <hcalClusterPhiRMS_[0]+hcalClusterPhiRMS_[1]*jet.et()+hcalClusterPhiRMS_[2]*jet.et()*jet.et())
65  if(l2info.hcalClusterShape()[2] <hcalClusterDrRMS_[0]+hcalClusterDrRMS_[1]*jet.et()+hcalClusterDrRMS_[2]*jet.et()*jet.et())
66  {
67  l2IsolCaloJets->push_back(jet);
68  }
69 
70  }
71 
72  iEvent.put(l2IsolCaloJets, "Isolated");
73 }
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
std::vector< double > hcalClusterShape() const
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> L2TauModularIsolationSelector::associationInput_
private

Definition at line 34 of file L2TauModularIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauModularIsolationSelector::ecalClusterDrRMS_
private

Definition at line 43 of file L2TauModularIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauModularIsolationSelector::ecalClusterEtaRMS_
private

Definition at line 42 of file L2TauModularIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauModularIsolationSelector::ecalClusterPhiRMS_
private

Definition at line 41 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 38 of file L2TauModularIsolationSelector.h.

Referenced by produce().

double L2TauModularIsolationSelector::et_
private

Definition at line 56 of file L2TauModularIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauModularIsolationSelector::hcalClusterDrRMS_
private

Definition at line 52 of file L2TauModularIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauModularIsolationSelector::hcalClusterEtaRMS_
private

Definition at line 51 of file L2TauModularIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauModularIsolationSelector::hcalClusterPhiRMS_
private

Definition at line 50 of file L2TauModularIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauModularIsolationSelector::hcalIsolEt_
private

Definition at line 47 of file L2TauModularIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauModularIsolationSelector::nEcalClusters_
private

Definition at line 40 of file L2TauModularIsolationSelector.h.

Referenced by produce().

std::vector<double> L2TauModularIsolationSelector::nHcalClusters_
private

Definition at line 49 of file L2TauModularIsolationSelector.h.

Referenced by produce().

double L2TauModularIsolationSelector::seedTowerEt_
private

Definition at line 57 of file L2TauModularIsolationSelector.h.

Referenced by produce().