Fork me on GitHub

Changeset 536 in svn


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

bug in muon charge and electron charge: solved

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r533 r536  
    22  - track reconstruction efficiencies can now be floating numbers
    33  - minor addition in the $(SHARED) target rule of the Makefile
     4  - bug fix: the charge of the electrons in the Analysis.Electron collection
     5    was the opposite of what it should have been
     6  - bug fix: idem for muons in Analysis.Muon
    47
    58 /-----------------------------------------\
  • 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.