Fork me on GitHub

Changeset 7e227ae in git for modules/TauTagging.cc


Ignore:
Timestamp:
Dec 16, 2015, 3:15:15 PM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
59d6164
Parents:
437e999
Message:

added BitNumber to TauTagging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TauTagging.cc

    r437e999 r7e227ae  
    126126  Int_t i, size;
    127127
     128  fBitNumber = GetInt("BitNumber", 0);
     129
    128130  fDeltaR = GetDouble("DeltaR", 0.5);
    129131
     
    193195  Candidate *jet, *tau, *daughter;
    194196  TLorentzVector tauMomentum;
    195   Double_t pt, eta, phi;
     197  Double_t pt, eta, phi, e;
    196198  TObjArray *tauArray;
    197199  map< Int_t, DelphesFormula * >::iterator itEfficiencyMap;
     
    213215    phi = jetMomentum.Phi();
    214216    pt = jetMomentum.Pt();
     217    e = jetMomentum.E();
    215218
    216219    // loop over all input taus
     
    252255
    253256    // apply an efficency formula
    254     jet->TauTag = gRandom->Uniform() <= formula->Eval(pt, eta);
     257    jet->TauTag |= (gRandom->Uniform() <= formula->Eval(pt, eta, phi, e)) << fBitNumber;
     258   
    255259    // set tau charge
    256260    jet->Charge = charge;
Note: See TracChangeset for help on using the changeset viewer.