Fork me on GitHub

Changeset 7c5b8f3 in git for modules/Efficiency.cc


Ignore:
Timestamp:
Mar 27, 2020, 9:21:22 AM (5 years ago)
Author:
GitHub <noreply@…>
Branches:
ImprovedOutputFile, master
Children:
354b7f3
Parents:
288a5fc (diff), 36fb740 (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@…> (03/27/20 09:21:22)
git-committer:
GitHub <noreply@…> (03/27/20 09:21:22)
Message:

Merge pull request #71 from preghenella/rdev

Radius and particle-density dependence of formula parameterisations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/Efficiency.cc

    r288a5fc r7c5b8f3  
    9595{
    9696  Candidate *candidate;
    97   Double_t pt, eta, phi, e, d0, dz, ctgTheta;
     97  Double_t pt, eta, phi, e;
    9898
    9999  fItInputArray->Reset();
     
    106106    pt = candidateMomentum.Pt();
    107107    e = candidateMomentum.E();
    108     d0 = candidate->D0;
    109     dz = candidate->DZ;
    110     ctgTheta = candidate->CtgTheta;
    111 
     108   
    112109    // apply an efficency formula
    113     if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e, d0, dz, ctgTheta)) continue;
     110    if(gRandom->Uniform() > fFormula->Eval(pt, eta, phi, e, candidate)) continue;
    114111
    115112    fOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.