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::ProductRegistryHelper

Public Member Functions

 L2TauModularIsolationSelector (const edm::ParameterSet &)
 
 ~L2TauModularIsolationSelector ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Member Functions

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

Private Attributes

edm::InputTag 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
 
typedef WorkerT< EDProducerWorkerType
 
- 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::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Detailed Description

Definition at line 21 of file L2TauModularIsolationSelector.h.

Constructor & Destructor Documentation

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

Definition at line 7 of file L2TauModularIsolationSelector.cc.

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

Definition at line 27 of file L2TauModularIsolationSelector.cc.

28 {
29 
30 }

Member Function Documentation

void L2TauModularIsolationSelector::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 78 of file L2TauModularIsolationSelector.cc.

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

Reimplemented from edm::EDProducer.

Definition at line 84 of file L2TauModularIsolationSelector.cc.

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

Implements edm::EDProducer.

Definition at line 38 of file L2TauModularIsolationSelector.cc.

References associationInput_, ecalClusterDrRMS_, ecalClusterEtaRMS_, ecalClusterPhiRMS_, reco::L2TauIsolationInfo::ecalClusterShape(), reco::L2TauIsolationInfo::ecalIsolEt(), ecalIsolEt_, reco::LeafCandidate::et(), et_, edm::Event::getByLabel(), 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_.

39 {
40  using namespace edm;
42 
43  std::auto_ptr<CaloJetCollection> l2IsolCaloJets( new CaloJetCollection );
44  iEvent.getByLabel(associationInput_ ,Imap);
45 
46  if(Imap->size()>0)
47  for(L2TauInfoAssociation::const_iterator p = Imap->begin();p!=Imap->end();++p)
48  {
49  //Retrieve The L2TauIsolationInfo Class from the AssociationMap
50  const L2TauIsolationInfo l2info = p->val;
51  //Retrieve the Jet
52  const CaloJet jet =*(p->key);
53 
54  //If The Cuts are Satisfied
55  if(jet.et()>et_)
56  if(l2info.seedHcalHitEt()>seedTowerEt_)
57  if(l2info.ecalIsolEt()< ecalIsolEt_[0]+ecalIsolEt_[1]*jet.et()+ecalIsolEt_[2]*jet.et()*jet.et())
58  if(l2info.nEcalHits() <(int)(nEcalClusters_[0]+nEcalClusters_[1]*jet.et()+nEcalClusters_[2]*jet.et()*jet.et()))
59  if(l2info.ecalClusterShape()[0] <ecalClusterEtaRMS_[0]+ecalClusterEtaRMS_[1]*jet.et()+ecalClusterEtaRMS_[2]*jet.et()*jet.et())
60  if(l2info.ecalClusterShape()[1] <ecalClusterPhiRMS_[0]+ecalClusterPhiRMS_[1]*jet.et()+ecalClusterPhiRMS_[2]*jet.et()*jet.et())
61  if(l2info.ecalClusterShape()[2] <ecalClusterDrRMS_[0]+ecalClusterDrRMS_[1]*jet.et()+ecalClusterDrRMS_[2]*jet.et()*jet.et())
62  if(l2info.hcalIsolEt()<hcalIsolEt_[0]+hcalIsolEt_[1]*jet.et()+hcalIsolEt_[2]*jet.et()*jet.et())
63  if(l2info.nHcalHits() <(int)(nHcalClusters_[0]+nHcalClusters_[1]*jet.et()+nHcalClusters_[2]*jet.et()*jet.et()))
64  if(l2info.hcalClusterShape()[0] <hcalClusterEtaRMS_[0]+hcalClusterEtaRMS_[1]*jet.et()+hcalClusterEtaRMS_[2]*jet.et()*jet.et())
65  if(l2info.hcalClusterShape()[1] <hcalClusterPhiRMS_[0]+hcalClusterPhiRMS_[1]*jet.et()+hcalClusterPhiRMS_[2]*jet.et()*jet.et())
66  if(l2info.hcalClusterShape()[2] <hcalClusterDrRMS_[0]+hcalClusterDrRMS_[1]*jet.et()+hcalClusterDrRMS_[2]*jet.et()*jet.et())
67  {
68  l2IsolCaloJets->push_back(jet);
69  }
70 
71  }
72 
73  iEvent.put(l2IsolCaloJets, "Isolated");
74 }
Jets made from CaloTowers.
Definition: CaloJet.h:30
virtual double et() const
transverse energy
std::vector< double > hcalClusterShape() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
std::vector< double > ecalClusterShape() const
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects

Member Data Documentation

edm::InputTag L2TauModularIsolationSelector::associationInput_
private

Definition at line 33 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 42 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 41 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 40 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 37 of file L2TauModularIsolationSelector.h.

Referenced by produce().

double L2TauModularIsolationSelector::et_
private

Definition at line 55 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 51 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 50 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 49 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 46 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 39 of file L2TauModularIsolationSelector.h.

Referenced by produce().

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

Definition at line 48 of file L2TauModularIsolationSelector.h.

Referenced by produce().

double L2TauModularIsolationSelector::seedTowerEt_
private

Definition at line 56 of file L2TauModularIsolationSelector.h.

Referenced by produce().