Fork me on GitHub

Changeset 7429c6a in git for modules


Ignore:
Timestamp:
Mar 15, 2018, 3:33:18 PM (7 years ago)
Author:
Martin <martin.flechl@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
f25215c
Parents:
0203656
Message:

Adding TauWeight variable

Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/TauTagging.cc

    r0203656 r7429c6a  
    255255
    256256    // apply an efficency formula
    257     jet->TauTag |= (gRandom->Uniform() <= formula->Eval(pt, eta, phi, e)) << fBitNumber;
    258    
     257    Double_t 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

    r0203656 r7429c6a  
    650650
    651651    entry->TauTag = candidate->TauTag;
     652    entry->TauWeight = candidate->TauWeight;
    652653
    653654    entry->Charge = candidate->Charge;
Note: See TracChangeset for help on using the changeset viewer.