Fork me on GitHub

Changeset fbad4c7 in git for modules/TauTagging.cc


Ignore:
Timestamp:
May 24, 2018, 9:12:31 PM (6 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
4689481
Parents:
4fd4f01 (diff), 792092a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into photonId

Conflicts:

cards/CMS_PhaseII/CMS_PhaseII_200PU_v03.tcl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TauTagging.cc

    r4fd4f01 rfbad4c7  
    195195  Candidate *jet, *tau, *daughter;
    196196  TLorentzVector tauMomentum;
    197   Double_t pt, eta, phi, e;
     197  Double_t pt, eta, phi, e, eff;
    198198  TObjArray *tauArray;
    199199  map< Int_t, DelphesFormula * >::iterator itEfficiencyMap;
     
    255255
    256256    // apply an efficency formula
    257     jet->TauTag |= (gRandom->Uniform() <= formula->Eval(pt, eta, phi, e)) << fBitNumber;
    258    
     257    eff = formula->Eval(pt, eta, phi, e);
     258    jet->TauTag |= (gRandom->Uniform() <= eff) << fBitNumber;
     259    jet->TauWeight = eff;     
     260
    259261    // set tau charge
    260262    jet->Charge = charge;
Note: See TracChangeset for help on using the changeset viewer.