Fork me on GitHub

Changeset 536 in svn for trunk/Delphes.cpp


Ignore:
Timestamp:
Nov 18, 2009, 11:38:05 AM (15 years ago)
Author:
Xavier Rouby
Message:

bug in muon charge and electron charge: solved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Delphes.cpp

    r530 r536  
    621621          elementElec->EtaCalo = electron[i].EtaCalo();
    622622          elementElec->PhiCalo = electron[i].PhiCalo();
    623           elementElec->Charge = sign(electron[i].PID());
     623          elementElec->Charge = - sign(electron[i].PID());
    624624          elementElec->IsolFlag = DET->Isolation(electron[i],TrackCentral,DET->ISOL_PT,DET->ISOL_Cone,ptisoEl);
    625625          elementElec->IsolPt = ptisoEl;
     
    634634        {
    635635          elementMu = (TRootMuon*) branchMuon->NewEntry();
    636           elementMu->Charge = sign(muon[i].PID());
     636          elementMu->Charge = - sign(muon[i].PID());
    637637          elementMu->Set(muon[i].Px(),muon[i].Py(),muon[i].Pz(),muon[i].E());
    638638          elementMu->EtaCalo = muon[i].EtaCalo();
Note: See TracChangeset for help on using the changeset viewer.