Fork me on GitHub

Changeset 264bf40 in git for modules/BTagging.cc


Ignore:
Timestamp:
Apr 26, 2013, 12:39:14 PM (12 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
f8d08bb
Parents:
a817a22
Message:

define BTag and TauTag as UInt_t and use them as a set of bits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/BTagging.cc

    ra817a22 r264bf40  
    9292  DelphesFormula *formula;
    9393  Int_t i, size;
     94
     95  fBitNumber = GetInt("BitNumber", 0);
    9496
    9597  fDeltaR = GetDouble("DeltaR", 0.5);
     
    202204
    203205    // apply an efficency formula
    204     jet->BTag = gRandom->Uniform() <= formula->Eval(pt, eta);
    205   }
    206 }
    207 
    208 //------------------------------------------------------------------------------
     206    jet->BTag |= (gRandom->Uniform() <= formula->Eval(pt, eta)) << fBitNumber;
     207  }
     208}
     209
     210//------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.