Fork me on GitHub

Changeset 312 in svn


Ignore:
Timestamp:
Mar 10, 2009, 12:24:44 PM (16 years ago)
Author:
severine ovyn
Message:

now OK for elec and muon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Delphes.cpp

    r310 r312  
    588588      // 2.2.1 ********************* sorting collections by decreasing pt
    589589      DET->SortedVector(electron);
     590      float iPhiEl=0,iEtaEl=0;
    590591      for(unsigned int i=0; i < electron.size(); i++)
    591592        {
     
    595596          elementElec->PhiCalo = electron[i].PhiCalo();
    596597          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 tracks
    598          
    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));
    600601          elementElec->EHoverEE = calElec.getEhad()/calElec.getEem();
    601         }                                                                                       /////////////// HARDCODING
     602        }                       
    602603     
    603604      DET->SortedVector(muon);
     605      float iPhiMu=0,iEtaMu=0;
    604606      for(unsigned int i=0; i < muon.size(); i++)
    605607        {
     
    609611          elementMu->EtaCalo = muon[i].EtaCalo();
    610612          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));
    613616          elementMu->EHoverEE = calMuon.getEhad()/calMuon.getEem();
    614617        }
Note: See TracChangeset for help on using the changeset viewer.