Fork me on GitHub

Changeset 550 in svn for trunk/Delphes.cpp


Ignore:
Timestamp:
Feb 22, 2010, 7:38:15 PM (15 years ago)
Author:
severine ovyn
Message:

changements pour EtRatio muons et electrons. Bugge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Delphes.cpp

    r547 r550  
    628628          elementElec->IsolFlag = DET->Isolation(electron[i],TrackCentral,DET->ISOL_PT,DET->ISOL_Cone,ptisoEl);
    629629          elementElec->IsolPt = ptisoEl;
    630           DET->BinEtaPhi(elementElec->PhiCalo,elementElec->EtaCalo,iPhiEl,iEtaEl);
     630
     631cout << "\nC'est un electron\n";
     632          int electron_tower_index = DET->BinEtaPhi(elementElec->PhiCalo,elementElec->EtaCalo,iPhiEl,iEtaEl);
    631633          D_CaloTower calElec(list_of_active_towers.getElement(iEtaEl,iPhiEl));
    632634          elementElec->EHoverEE = calElec.getEhad()/calElec.getEem();
     635          elementElec->EtRatio =  DET->CaloIsolation(muon[i], list_of_active_towers,iPhiEl,iEtaEl,electron_tower_index);
    633636        }                       
    634637     
     
    644647          elementMu->IsolFlag = DET->Isolation(muon[i],TrackCentral,DET->ISOL_PT,DET->ISOL_Cone,ptisoMu);
    645648          elementMu->IsolPt = ptisoMu;
    646           DET->BinEtaPhi(elementMu->PhiCalo,elementMu->EtaCalo,iPhiMu,iEtaMu);
     649
     650cout << "\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);
    647653          D_CaloTower calMuon(list_of_active_towers.getElement(iEtaMu,iPhiMu));
    648654          if( calMuon.getEem() !=0 ) elementMu->EHoverEE = calMuon.getEhad()/calMuon.getEem();
    649655          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);
    651657        }
    652658
Note: See TracChangeset for help on using the changeset viewer.