Fork me on GitHub

Changeset 7e227ae in git for modules


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

Location:
modules
Files:
4 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;
  • modules/TauTagging.h

    r437e999 r7e227ae  
    5555
    5656private:
    57 
     57 
     58  Int_t fBitNumber;
     59 
    5860  Double_t fDeltaR;
    5961
  • modules/TrackCountingTauTagging.cc

    r437e999 r7e227ae  
    130130  Int_t i, size;
    131131
     132  fBitNumber = GetInt("BitNumber", 0);
     133
    132134  fDeltaR = GetDouble("DeltaR", 0.5);
    133135  fDeltaRTrack = GetDouble("DeltaRTrack", 0.2);
     
    203205  Candidate *jet, *tau, *track, *daughter;
    204206  TLorentzVector tauMomentum;
    205   Double_t pt, eta, phi;
     207  Double_t pt, eta, phi, e;
    206208  TObjArray *tauArray;
    207209  map< Int_t, DelphesFormula * >::iterator itEfficiencyMap;
     
    228230    phi = jetMomentum.Phi();
    229231    pt = jetMomentum.Pt();
     232    e = jetMomentum.E();
     233
    230234
    231235// loop over all input tracks
     
    288292
    289293    // apply an efficency formula
    290     jet->TauTag = gRandom->Uniform() <= formula->Eval(pt, eta);
     294    jet->TauTag |= (gRandom->Uniform() <= formula->Eval(pt, eta, phi, e)) << fBitNumber;
     295   
     296   
    291297    // set tau charge
    292298    jet->Charge = charge;
  • modules/TrackCountingTauTagging.h

    r437e999 r7e227ae  
    3939private:
    4040
     41  Int_t fBitNumber;
     42
    4143  Double_t fDeltaR;
    4244  Double_t fDeltaRTrack;
Note: See TracChangeset for help on using the changeset viewer.