Changeset 321 in svn for trunk/Delphes.cpp
- Timestamp:
- Mar 11, 2009, 12:53:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r319 r321 571 571 // sorts the vector and smears duplicates 572 572 list_of_towers_with_photon.mergeDuplicates(); 573 574 for(unsigned int i=0; i<list_of_towers_with_photon.size(); i++) 575 { 573 for(unsigned int i=0; i<list_of_towers_with_photon.size(); i++) { 576 574 float eta = list_of_towers_with_photon[i].getEta(); 577 575 float phi = list_of_towers_with_photon[i].getPhi(); … … 588 586 // 2.2.1 ********************* sorting collections by decreasing pt 589 587 DET->SortedVector(electron); 590 float iPhiEl=0,iEtaEl=0 ;588 float iPhiEl=0,iEtaEl=0,ptisoEl=0; 591 589 for(unsigned int i=0; i < electron.size(); i++) 592 590 { … … 596 594 elementElec->PhiCalo = electron[i].PhiCalo(); 597 595 elementElec->Charge = sign(electron[i].PID()); 598 elementElec->IsolFlag = DET->Isolation(electron[i].Phi(),electron[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone); 596 elementElec->IsolFlag = DET->Isolation(electron[i],TrackCentral,DET->ISOL_PT,DET->ISOL_Cone,ptisoEl); 597 elementElec->IsolPt = ptisoEl; 599 598 DET->BinEtaPhi(elementElec->PhiCalo,elementElec->EtaCalo,iPhiEl,iEtaEl); 600 599 D_CaloTower calElec(list_of_active_towers.getElement(iEtaEl,iPhiEl)); … … 603 602 604 603 DET->SortedVector(muon); 605 float iPhiMu=0,iEtaMu=0 ;604 float iPhiMu=0,iEtaMu=0,ptisoMu=0; 606 605 for(unsigned int i=0; i < muon.size(); i++) 607 606 { … … 611 610 elementMu->EtaCalo = muon[i].EtaCalo(); 612 611 elementMu->PhiCalo = muon[i].PhiCalo(); 613 elementMu->IsolFlag = DET->Isolation(muon[i].Phi(),muon[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone); 614 DET->BinEtaPhi(elementMu->PhiCalo,elementMu->EtaCalo,iPhiMu,iEtaMu); 612 elementMu->IsolFlag = DET->Isolation(muon[i],TrackCentral,DET->ISOL_PT,DET->ISOL_Cone,ptisoMu); 613 elementMu->IsolPt = ptisoMu; 614 DET->BinEtaPhi(elementMu->PhiCalo,elementMu->EtaCalo,iPhiMu,iEtaMu); 615 615 D_CaloTower calMuon(list_of_active_towers.getElement(iEtaMu,iPhiMu)); 616 elementMu->EHoverEE = calMuon.getEhad()/calMuon.getEem(); 616 if( calMuon.getEem() !=0 ) elementMu->EHoverEE = calMuon.getEhad()/calMuon.getEem(); 617 else elementMu->EHoverEE = UNDEFINED; 618 elementMu->EtRatio = DET->CaloIsolation(muon[i], list_of_active_towers); 617 619 } 618 620
Note:
See TracChangeset
for help on using the changeset viewer.