Changeset 550 in svn for trunk/Delphes.cpp
- Timestamp:
- Feb 22, 2010, 7:38:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r547 r550 628 628 elementElec->IsolFlag = DET->Isolation(electron[i],TrackCentral,DET->ISOL_PT,DET->ISOL_Cone,ptisoEl); 629 629 elementElec->IsolPt = ptisoEl; 630 DET->BinEtaPhi(elementElec->PhiCalo,elementElec->EtaCalo,iPhiEl,iEtaEl); 630 631 cout << "\nC'est un electron\n"; 632 int electron_tower_index = DET->BinEtaPhi(elementElec->PhiCalo,elementElec->EtaCalo,iPhiEl,iEtaEl); 631 633 D_CaloTower calElec(list_of_active_towers.getElement(iEtaEl,iPhiEl)); 632 634 elementElec->EHoverEE = calElec.getEhad()/calElec.getEem(); 635 elementElec->EtRatio = DET->CaloIsolation(muon[i], list_of_active_towers,iPhiEl,iEtaEl,electron_tower_index); 633 636 } 634 637 … … 644 647 elementMu->IsolFlag = DET->Isolation(muon[i],TrackCentral,DET->ISOL_PT,DET->ISOL_Cone,ptisoMu); 645 648 elementMu->IsolPt = ptisoMu; 646 DET->BinEtaPhi(elementMu->PhiCalo,elementMu->EtaCalo,iPhiMu,iEtaMu); 649 650 cout << "\nC'est un muon\n"; 651 // binning of the muon position in calo 652 int muon_tower_index = DET->BinEtaPhi(elementMu->PhiCalo,elementMu->EtaCalo,iPhiMu,iEtaMu); 647 653 D_CaloTower calMuon(list_of_active_towers.getElement(iEtaMu,iPhiMu)); 648 654 if( calMuon.getEem() !=0 ) elementMu->EHoverEE = calMuon.getEhad()/calMuon.getEem(); 649 655 else elementMu->EHoverEE = UNDEFINED; 650 elementMu->EtRatio = DET->CaloIsolation(muon[i], list_of_active_towers,iPhiMu,iEtaMu );656 elementMu->EtRatio = DET->CaloIsolation(muon[i], list_of_active_towers,iPhiMu,iEtaMu,muon_tower_index); 651 657 } 652 658
Note:
See TracChangeset
for help on using the changeset viewer.