CMS 3D CMS Logo

ZToMuMuIsolationSelector< Isolator > Class Template Reference

List of all members.

Public Member Functions

void newEvent (const edm::Event &, const edm::EventSetup &)
bool operator() (const reco::Candidate &) const
 ZToMuMuIsolationSelector (const edm::ParameterSet &)

Public Attributes

edm::Handle< IsolationCollectionhMuIso1_
edm::Handle< IsolationCollectionhMuIso2_
double isoCut_
Isolator isolator_
edm::InputTag muIso1_
edm::InputTag muIso2_


Detailed Description

template<typename Isolator>
class ZToMuMuIsolationSelector< Isolator >

Definition at line 35 of file ZToMuMuIsolationSelector.cc.


Constructor & Destructor Documentation

template<typename Isolator>
ZToMuMuIsolationSelector< Isolator >::ZToMuMuIsolationSelector ( const edm::ParameterSet cfg  )  [inline]

Definition at line 47 of file ZToMuMuIsolationSelector.cc.

00047                                                                                         :
00048   muIso1_(cfg.template getParameter<edm::InputTag>("muonIsolations1")),
00049   muIso2_(cfg.template getParameter<edm::InputTag>("muonIsolations2")),
00050   isolator_(cfg.template getParameter<double>("isoCut")) {
00051 }


Member Function Documentation

template<typename Isolator>
void ZToMuMuIsolationSelector< Isolator >::newEvent ( const edm::Event ev,
const edm::EventSetup  
) [inline]

Definition at line 54 of file ZToMuMuIsolationSelector.cc.

References edm::Event::getByLabel(), ZToMuMuIsolationSelector< Isolator >::hMuIso1_, ZToMuMuIsolationSelector< Isolator >::hMuIso2_, ZToMuMuIsolationSelector< Isolator >::muIso1_, and ZToMuMuIsolationSelector< Isolator >::muIso2_.

00054                                                                                           {
00055   ev.getByLabel(muIso1_, hMuIso1_);
00056   ev.getByLabel(muIso2_, hMuIso2_);
00057 }

template<typename Isolator>
bool ZToMuMuIsolationSelector< Isolator >::operator() ( const reco::Candidate z  )  const [inline]

Definition at line 60 of file ZToMuMuIsolationSelector.cc.

References reco::Candidate::daughter(), iso1, ZToMuMuIsolationSelector< Isolator >::isolator_, reco::Candidate::masterClone(), and reco::Candidate::numberOfDaughters().

00060                                                                                  {
00061   if(z.numberOfDaughters()!=2) return false;
00062   const reco::Candidate * dau0 = z.daughter(0);
00063   const reco::Candidate * dau1 = z.daughter(1);
00064   reco::CandidateBaseRef mu0 = dau0->masterClone();
00065   reco::CandidateBaseRef mu1 = dau1->masterClone();
00066   double iso0 = (*hMuIso1_)[mu0];
00067   double iso1 = (*hMuIso2_)[mu1];
00068   return isolator_(iso0, iso1);
00069 }


Member Data Documentation

template<typename Isolator>
edm::Handle<IsolationCollection> ZToMuMuIsolationSelector< Isolator >::hMuIso1_

Definition at line 43 of file ZToMuMuIsolationSelector.cc.

Referenced by ZToMuMuIsolationSelector< Isolator >::newEvent().

template<typename Isolator>
edm::Handle<IsolationCollection> ZToMuMuIsolationSelector< Isolator >::hMuIso2_

Definition at line 43 of file ZToMuMuIsolationSelector.cc.

Referenced by ZToMuMuIsolationSelector< Isolator >::newEvent().

template<typename Isolator>
double ZToMuMuIsolationSelector< Isolator >::isoCut_

Definition at line 41 of file ZToMuMuIsolationSelector.cc.

template<typename Isolator>
Isolator ZToMuMuIsolationSelector< Isolator >::isolator_

Definition at line 42 of file ZToMuMuIsolationSelector.cc.

Referenced by ZToMuMuIsolationSelector< Isolator >::operator()().

template<typename Isolator>
edm::InputTag ZToMuMuIsolationSelector< Isolator >::muIso1_

Definition at line 40 of file ZToMuMuIsolationSelector.cc.

Referenced by ZToMuMuIsolationSelector< Isolator >::newEvent().

template<typename Isolator>
edm::InputTag ZToMuMuIsolationSelector< Isolator >::muIso2_

Definition at line 40 of file ZToMuMuIsolationSelector.cc.

Referenced by ZToMuMuIsolationSelector< Isolator >::newEvent().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:36:11 2009 for CMSSW by  doxygen 1.5.4