Fork me on GitHub

Changeset 7e83689 in git for classes/DelphesFormula.cc


Ignore:
Timestamp:
Mar 26, 2020, 4:01:20 PM (5 years ago)
Author:
Roberto Preghenella <preghenella@…>
Branches:
ImprovedOutputFile, master
Children:
36fb740
Parents:
f298e48
git-author:
Roberto Preghenella <preghenella@…> (03/23/20 15:43:15)
git-committer:
Roberto Preghenella <preghenella@…> (03/26/20 16:01:20)
Message:

Add particle density to formula parameterisations

also adds a new module that computes the particle density
in a eta-phi grid sets the ParticleDensity value of the
candidate, to be used in formula parameterisations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesFormula.cc

    rf298e48 r7e83689  
    6565  buffer.ReplaceAll("ctgTheta", "[2]");
    6666  buffer.ReplaceAll("radius", "[3]");
     67  buffer.ReplaceAll("density", "[4]");
    6768
    6869#if ROOT_VERSION_CODE < ROOT_VERSION(6, 3, 0)
     
    8283{
    8384
    84   Double_t d0 = 0., dz = 0., ctgTheta = 0., radius = 0.;
     85  Double_t d0 = 0., dz = 0., ctgTheta = 0., radius = 0., density = 0.;
    8586  if (candidate) {
    8687    d0 = candidate->D0;
     
    8889    ctgTheta = candidate->CtgTheta;
    8990    radius = candidate->Position.Pt();
     91    density = candidate->ParticleDensity;
    9092  }
    9193   
    9294  Double_t x[4] = {pt, eta, phi, energy};
    93   Double_t params[4] = {d0, dz, ctgTheta, radius};
     95  Double_t params[5] = {d0, dz, ctgTheta, radius, density};
    9496  return EvalPar(x, params);
    9597}
Note: See TracChangeset for help on using the changeset viewer.