Fork me on GitHub

Changeset f25215c in git


Ignore:
Timestamp:
May 23, 2018, 11:48:25 AM (6 years ago)
Author:
GitHub <noreply@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
95fbe30
Parents:
5528bfe (diff), 7429c6a (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.
git-author:
Pavel Demin <pavel-demin@…> (05/23/18 11:48:25)
git-committer:
GitHub <noreply@…> (05/23/18 11:48:25)
Message:

Merge pull request #51 from mflechl/master

Adding TauWeight variable

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesClasses.cc

    r5528bfe rf25215c  
    125125  Flavor(0), FlavorAlgo(0), FlavorPhys(0),
    126126  BTag(0), BTagAlgo(0), BTagPhys(0),
    127   TauTag(0), Eem(0.0), Ehad(0.0),
     127  TauTag(0), TauWeight(0.0), Eem(0.0), Ehad(0.0),
    128128  DeltaEta(0.0), DeltaPhi(0.0),
    129129  Momentum(0.0, 0.0, 0.0, 0.0),
     
    280280  object.BTagPhys = BTagPhys;
    281281  object.TauTag = TauTag;
     282  object.TauWeight = TauWeight;
    282283  object.Eem = Eem;
    283284  object.Ehad = Ehad;
     
    404405  BTagPhys = 0;
    405406  TauTag = 0;
     407  TauWeight = 0.0;
    406408  Eem = 0.0;
    407409  Ehad = 0.0;
  • classes/DelphesClasses.h

    r5528bfe rf25215c  
    373373
    374374  UInt_t TauTag; // 0 or 1 for a jet that has been tagged as a tau
     375  Float_t TauWeight; // probability for jet to be identified as tau
    375376
    376377  Int_t Charge; // tau charge
     
    562563
    563564  UInt_t TauTag;
     565  Float_t TauWeight;
    564566
    565567  Float_t Eem;
  • modules/TauTagging.cc

    r5528bfe rf25215c  
    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

    r5528bfe rf25215c  
    651651
    652652    entry->TauTag = candidate->TauTag;
     653    entry->TauWeight = candidate->TauWeight;
    653654
    654655    entry->Charge = candidate->Charge;
Note: See TracChangeset for help on using the changeset viewer.