Fork me on GitHub

Changeset 288 in svn for trunk/src


Ignore:
Timestamp:
Mar 3, 2009, 12:45:22 AM (16 years ago)
Author:
Xavier Rouby
Message:

charge added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/LHCOConverter.cc

    r284 r288  
    179179        pmu.SetPtEtaPhiE(particle->PT, particle->Eta, particle->Phi, particle->E);
    180180        jmass = pmu.M();
    181         unsigned int ntrk = 0;
     181        float ntrk = 0.0;
     182        if(lhcoID == lhcoElectronID) { TRootElectron elec(*((TRootElectron*) branch->At(i))); ntrk = elec.Charge; }
     183        else if (lhcoID == lhcoMuonID) { TRootMuon muon(*((TRootMuon*) branch->At(i))); ntrk = muon.Charge; }
     184        else if (lhcoID == lhcoTauJetID) { TRootTauJet taujet(*((TRootTauJet*) branch->At(i))); ntrk = taujet.Charge; }
    182185        float btag =0;
    183186        double ratioE = 0;
Note: See TracChangeset for help on using the changeset viewer.