Fork me on GitHub

Changeset c008923 in git


Ignore:
Timestamp:
Jun 21, 2016, 3:55:27 PM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
659c7b6, 9ad08ca
Parents:
239e1d0
Message:

added matching in Pythia8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • readers/DelphesPythia8.cpp

    r239e1d0 rc008923  
    2525
    2626#include "Pythia.h"
     27#include "Pythia8Plugins/CombineMatchingInput.h"
    2728
    2829#include "TROOT.h"
     
    224225
    225226  Pythia8::Pythia *pythia = 0;
     227 
     228  // for matching
     229  Pythia8::CombineMatchingInput *combined = 0;
     230  Pythia8::UserHooks* matching = 0;
    226231
    227232  if(argc != 4)
     
    270275    // Initialize Pythia
    271276    pythia = new Pythia8::Pythia;
    272     //Pythia8::Event& event = pythia->event;
    273     //Pythia8::ParticleData& pdt = pythia->particleData;
     277 
     278    // jet matching
     279    matching = combined->getHook(*pythia);
     280    if (!matching)
     281    {
     282      throw runtime_error("can't do matching");
     283    }
     284    pythia->setUserHooksPtr(matching);
     285 
    274286
    275287    if(pythia == NULL)
Note: See TracChangeset for help on using the changeset viewer.