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< IsolationCollection > | hMuIso1_ |
edm::Handle< IsolationCollection > | hMuIso2_ |
double | isoCut_ |
Isolator | isolator_ |
edm::InputTag | muIso1_ |
edm::InputTag | muIso2_ |
Definition at line 35 of file ZToMuMuIsolationSelector.cc.
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 }
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 }
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 }
edm::Handle<IsolationCollection> ZToMuMuIsolationSelector< Isolator >::hMuIso1_ |
Definition at line 43 of file ZToMuMuIsolationSelector.cc.
Referenced by ZToMuMuIsolationSelector< Isolator >::newEvent().
edm::Handle<IsolationCollection> ZToMuMuIsolationSelector< Isolator >::hMuIso2_ |
Definition at line 43 of file ZToMuMuIsolationSelector.cc.
Referenced by ZToMuMuIsolationSelector< Isolator >::newEvent().
double ZToMuMuIsolationSelector< Isolator >::isoCut_ |
Definition at line 41 of file ZToMuMuIsolationSelector.cc.
Isolator ZToMuMuIsolationSelector< Isolator >::isolator_ |
Definition at line 42 of file ZToMuMuIsolationSelector.cc.
Referenced by ZToMuMuIsolationSelector< Isolator >::operator()().
edm::InputTag ZToMuMuIsolationSelector< Isolator >::muIso1_ |
Definition at line 40 of file ZToMuMuIsolationSelector.cc.
Referenced by ZToMuMuIsolationSelector< Isolator >::newEvent().
edm::InputTag ZToMuMuIsolationSelector< Isolator >::muIso2_ |
Definition at line 40 of file ZToMuMuIsolationSelector.cc.
Referenced by ZToMuMuIsolationSelector< Isolator >::newEvent().