Fork me on GitHub

Changeset 4acf2fd in git for modules/ClusterCounting.cc


Ignore:
Timestamp:
May 17, 2021, 6:05:38 PM (3 years ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
7dac4ea
Parents:
46d3442 (diff), 4afb18d (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:
Michele Selvaggi <michele.selvaggi@…> (05/17/21 18:05:38)
git-committer:
GitHub <noreply@…> (05/17/21 18:05:38)
Message:

Merge branch 'master' into master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/ClusterCounting.cc

    r46d3442 r4acf2fd  
    1   /*
     1   /*
    22 *  Delphes: a framework for fast simulation of a generic collider experiment
    33 *  Copyright (C) 2020  Universite catholique de Louvain (UCLouvain), Belgium
     
    2828 */
    2929
    30 //FIXME add reference to Bedeschi-code
    31 //FIXME make sure about units of P, X
    32 //FIXME fix pt > 200 GeV issue and angle > 6.41
    33 
    3430#include "modules/ClusterCounting.h"
    35 
    3631#include "classes/DelphesClasses.h"
    3732#include "TrackCovariance/TrkUtil.h"
     
    108103{
    109104  Candidate *candidate, *mother, *particle;
    110   Double_t mass, Ncl;
     105  Double_t mass, trackLength, Ncl;
    111106
    112107  fItInputArray->Reset();
     
    124119    mass = candidateMomentum.M();
    125120
     121    trackLength = fTrackUtil->TrkLen(Par);
     122
    126123    mother    = candidate;
    127124    candidate = static_cast<Candidate*>(candidate->Clone());
    128125
    129     Ncl = -999;
    130     // computation of Nclusters is not supported for electrons
    131     if (TMath::Abs(particle->PID) == 11)
     126    Ncl = 0.;
     127    if (fTrackUtil->IonClusters(Ncl, mass, Par))
    132128    {
    133129      candidate->Nclusters = Ncl;
     130      candidate->dNdx = (trackLength > 0.) ? Ncl/trackLength : -1;
    134131    }
    135     else if (fTrackUtil->IonClusters(Ncl, mass, Par))
    136     {
    137       candidate->Nclusters = Ncl;
    138     }
    139     //cout<<candidate->PID<<", "<<mass<<", "<<candidate->Nclusters<<endl;
    140132
    141133    candidate->AddCandidate(mother);
Note: See TracChangeset for help on using the changeset viewer.