Fork me on GitHub

Changeset fbad4c7 in git for modules


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

Location:
modules
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • modules/StatusPidFilter.cc

    r4fd4f01 rfbad4c7  
    177177    pass = kFALSE;
    178178
     179    // Store all SUSY particles
     180    if(pdgCode >= 1000001 && pdgCode <= 1000039) pass = kTRUE;
     181
    179182    // hard scattering particles (first condition for Py6, second for Py8)
    180183    if(status == 3) pass = kTRUE;
  • 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;
  • modules/TreeWriter.cc

    r4fd4f01 rfbad4c7  
    652652
    653653    entry->TauTag = candidate->TauTag;
     654    entry->TauWeight = candidate->TauWeight;
    654655
    655656    entry->Charge = candidate->Charge;
Note: See TracChangeset for help on using the changeset viewer.