Fork me on GitHub

Changeset f319c1d in git for modules/FastJetFinder.cc


Ignore:
Timestamp:
Nov 29, 2017, 5:13:29 PM (7 years ago)
Author:
Ulrike Schnoor <schnooru@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
67b86c2
Parents:
5107603
Message:

added Valencia jet algorithm as fastjet/contribs and exclusive jet clustering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/FastJetFinder.cc

    r5107603 rf319c1d  
    6666#include "fastjet/contribs/Nsubjettiness/ExtraRecombiners.hh"
    6767
     68#include "fastjet/contribs/ValenciaPlugin/ValenciaPlugin.hh"
     69
    6870#include "fastjet/tools/Filter.hh"
    6971#include "fastjet/tools/Pruner.hh"
     
    7981FastJetFinder::FastJetFinder() :
    8082  fPlugin(0), fRecomb(0), fAxesDef(0), fMeasureDef(0), fNjettinessPlugin(0),
    81   fDefinition(0), fAreaDefinition(0), fItInputArray(0)
     83  fDefinition(0), fAreaDefinition(0), fItInputArray(0), fValenciaPlugin(0)
    8284{
    8385
     
    118120  fJetPTMin = GetDouble("JetPTMin", 10.0);
    119121
     122 
    120123  //-- N(sub)jettiness parameters --
    121124
     
    125128  fRcutOff = GetDouble("RcutOff", 0.8); // used only if Njettiness is used as jet clustering algo (case 8)
    126129  fN = GetInt("N", 2);                  // used only if Njettiness is used as jet clustering algo (case 8)
    127      
     130
     131  //-- Exclusive clustering for e+e- collisions --
     132 
     133  fNJets = GetInt("NJets",2);
     134  fExclusiveClustering = GetBool("ExclusiveClustering", false);
     135
     136  //-- Valencia Linear Collider algorithm
     137  fGamma = GetDouble("Gamma", 1.0);
     138  //fBeta parameter see above
     139 
    128140  fMeasureDef = new NormalizedMeasure(fBeta, fParameterR);
    129141   
     
    236248      fDefinition = new JetDefinition(fNjettinessPlugin);
    237249      break;
     250  case 9:
     251      fValenciaPlugin = new ValenciaPlugin(fParameterR, fBeta, fGamma);
     252      fDefinition = new JetDefinition(fValenciaPlugin);
     253      break;
     254
    238255  }
    239256
     
    294311  if(fAxesDef) delete fAxesDef;
    295312  if(fMeasureDef) delete fMeasureDef;
     313  if(fValenciaPlugin) delete static_cast<JetDefinition::Plugin*>(fValenciaPlugin);
     314
    296315}
    297316
     
    357376
    358377  outputList.clear();
    359   outputList = sorted_by_pt(sequence->inclusive_jets(fJetPTMin));
    360 
     378
     379  if(fExclusiveClustering)
     380    {
     381      outputList = sorted_by_pt(sequence->exclusive_jets( fNJets ));
     382    }
     383  else
     384    {
     385      outputList = sorted_by_pt(sequence->inclusive_jets(fJetPTMin));
     386    }
    361387
    362388  // loop over all jets and export them
Note: See TracChangeset for help on using the changeset viewer.