Fork me on GitHub

Changeset 7e83689 in git


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.

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesClasses.cc

    rf298e48 r7e83689  
    172172  ExclYmerge45(0),
    173173  ExclYmerge56(0),
     174  ParticleDensity(0),
    174175  fFactory(0),
    175176  fArray(0)
  • classes/DelphesClasses.h

    rf298e48 r7e83689  
    733733  Double_t ExclYmerge56;
    734734
     735  // event characteristics variables
     736  Double_t ParticleDensity; // particle multiplicity density in the proximity of the particle
     737 
    735738  static CompBase *fgCompare; //!
    736739  const CompBase *GetCompare() const { return fgCompare; }
  • 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}
  • modules/ModulesLinkDef.h

    rf298e48 r7e83689  
    7474#include "modules/VertexFinderDA4D.h"
    7575#include "modules/DecayFilter.h"
     76#include "modules/ParticleDensity.h"
    7677#include "modules/ExampleModule.h"
    7778
     
    130131#pragma link C++ class VertexFinderDA4D+;
    131132#pragma link C++ class DecayFilter+;
     133#pragma link C++ class ParticleDensity+;
    132134#pragma link C++ class ExampleModule+;
    133135
Note: See TracChangeset for help on using the changeset viewer.