Changeset 312 in svn
- Timestamp:
- Mar 10, 2009, 12:24:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r310 r312 588 588 // 2.2.1 ********************* sorting collections by decreasing pt 589 589 DET->SortedVector(electron); 590 float iPhiEl=0,iEtaEl=0; 590 591 for(unsigned int i=0; i < electron.size(); i++) 591 592 { … … 595 596 elementElec->PhiCalo = electron[i].PhiCalo(); 596 597 elementElec->Charge = sign(electron[i].PID()); 597 elementElec->IsolFlag = DET->Isolation(electron[i].Phi(),electron[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone); //isolation based on tracks598 599 D_CaloTower calElec(list_of_active_towers.getElement(electron[i].EtaCalo(),electron[i].PhiCalo()));598 elementElec->IsolFlag = DET->Isolation(electron[i].Phi(),electron[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone); 599 DET->BinEtaPhi(elementElec->PhiCalo,elementElec->EtaCalo,iPhiEl,iEtaEl); 600 D_CaloTower calElec(list_of_active_towers.getElement(iEtaEl,iPhiEl)); 600 601 elementElec->EHoverEE = calElec.getEhad()/calElec.getEem(); 601 } /////////////// HARDCODING602 } 602 603 603 604 DET->SortedVector(muon); 605 float iPhiMu=0,iEtaMu=0; 604 606 for(unsigned int i=0; i < muon.size(); i++) 605 607 { … … 609 611 elementMu->EtaCalo = muon[i].EtaCalo(); 610 612 elementMu->PhiCalo = muon[i].PhiCalo(); 611 elementMu->IsolFlag = DET->Isolation(muon[i].Phi(),muon[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone); /////////////// HARDCODING 612 D_CaloTower calMuon(list_of_active_towers.getElement(muon[i].EtaCalo(),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); 615 D_CaloTower calMuon(list_of_active_towers.getElement(iEtaMu,iPhiMu)); 613 616 elementMu->EHoverEE = calMuon.getEhad()/calMuon.getEem(); 614 617 }
Note:
See TracChangeset
for help on using the changeset viewer.