CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Pythia8Hadronizer.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <sstream>
3 #include <string>
4 #include <memory>
5 #include <stdint.h>
6 
7 #include "HepMC/GenEvent.h"
8 #include "HepMC/GenParticle.h"
9 
10 #include "Pythia8/Pythia.h"
11 #include "Pythia8Plugins/HepMC2.h"
12 
14 
16 
17 // PS matchning prototype
18 //
20 #include "Pythia8Plugins/JetMatching.h"
21 #include "Pythia8Plugins/aMCatNLOHooks.h"
22 
23 // Emission Veto Hooks
24 //
25 #include "Pythia8Plugins/PowhegHooks.h"
27 
32 
35 
39 
41 
42 #include "HepPID/ParticleIDTranslations.hh"
43 
45 
46 using namespace gen;
47 using namespace Pythia8;
48 
50 
51  public:
52 
53  Pythia8Hadronizer(const edm::ParameterSet &params);
55 
56  bool initializeForInternalPartons();
57  bool initializeForExternalPartons();
58 
59  bool generatePartonsAndHadronize();
60  bool hadronize();
61 
62  virtual bool residualDecay();
63 
64  void finalizeEvent();
65 
66  void statistics();
67 
68  const char *classname() const { return "Pythia8Hadronizer"; }
69 
70  private:
71 
73  double comEnergy;
74 
76  std::auto_ptr<LHAupLesHouches> lhaUP;
77 
78  enum { PP, PPbar, ElectronPositron };
79  int fInitialState ; // pp, ppbar, or e-e+
80 
81  double fBeam1PZ;
82  double fBeam2PZ;
83 
84  // Reweight user hooks
85  //
86  UserHooks* fReweightUserHook;
87  UserHooks* fReweightRapUserHook;
89 
90  // PS matching prototype
91  //
93  Pythia8::JetMatchingMadgraph *fJetMatchingPy8InternalHook;
94  Pythia8::amcnlo_unitarised_interface *fMergingHook;
95 
96  // Emission Veto Hooks
97  //
98  PowhegHooks* fEmissionVetoHook;
100 
109 
110  std::string slhafile_;
111 
112  vector<float> DJR;
113  int nME;
115 
116  int nISRveto;
117  int nFSRveto;
118 
119  int NHooks;
120 };
121 
122 
124  BaseHadronizer(params), Py8InterfaceBase(params),
125  comEnergy(params.getParameter<double>("comEnergy")),
126  LHEInputFileName(params.getUntrackedParameter<string>("LHEInputFileName","")),
127  fInitialState(PP),
128  fReweightUserHook(0),fReweightRapUserHook(0),fReweightPtHatRapUserHook(0),
129  fJetMatchingHook(0),fJetMatchingPy8InternalHook(0), fMergingHook(0),
130  fEmissionVetoHook(0), fEmissionVetoHook1(0), nME(-1), nMEFiltered(-1), nISRveto(0), nFSRveto(0),
131  NHooks(0)
132 {
133 
134  // J.Y.: the following 3 parameters are hacked "for a reason"
135  //
136  if ( params.exists( "PPbarInitialState" ) )
137  {
138  if ( fInitialState == PP )
139  {
141  edm::LogImportant("GeneratorInterface|Pythia8Interface")
142  << "Pythia8 will be initialized for PROTON-ANTIPROTON INITIAL STATE. "
143  << "This is a user-request change from the DEFAULT PROTON-PROTON initial state.";
144  }
145  else
146  {
147  // probably need to throw on attempt to override ?
148  }
149  }
150  else if ( params.exists( "ElectronPositronInitialState" ) )
151  {
152  if ( fInitialState == PP )
153  {
155  edm::LogInfo("GeneratorInterface|Pythia8Interface")
156  << "Pythia8 will be initialized for ELECTRON-POSITRON INITIAL STATE. "
157  << "This is a user-request change from the DEFAULT PROTON-PROTON initial state.";
158  }
159  else
160  {
161  // probably need to throw on attempt to override ?
162  }
163  }
164  else if ( params.exists( "ElectronProtonInitialState" ) || params.exists( "PositronProtonInitialState" ) )
165  {
166  // throw on unknown initial state !
167  throw edm::Exception(edm::errors::Configuration,"Pythia8Interface")
168  <<" UNKNOWN INITIAL STATE. \n The allowed initial states are: PP, PPbar, ElectronPositron \n";
169  }
170 
171  if( params.exists( "SLHAFileForPythia8" ) ) {
172  std::string slhafilenameshort = params.getParameter<string>("SLHAFileForPythia8");
173  edm::FileInPath f1( slhafilenameshort );
174  slhafile_ = f1.fullPath();
175 
176  fMasterGen->settings.mode("SLHA:readFrom", 2);
177  fMasterGen->settings.word("SLHA:file", slhafile_);
178 
180  line != fParameters.end(); ++line ) {
181  if (line->find("SLHA:file") != std::string::npos)
182  throw cms::Exception("PythiaError") << "Attempted to set SLHA file name twice, "
183  << "using Pythia8 card SLHA:file and Pythia8Interface card SLHAFileForPythia8"
184  << std::endl;
185  }
186  }
187 
188  // Reweight user hook
189  //
190  if( params.exists( "reweightGen" ) )
192  if( params.exists( "reweightGenRap" ) )
193  {
194  edm::LogInfo("Pythia8Interface") << "Start setup for reweightGenRap";
195  edm::ParameterSet rgrParams =
196  params.getParameter<edm::ParameterSet>("reweightGenRap");
198  new RapReweightUserHook(rgrParams.getParameter<std::string>("yLabSigmaFunc"),
199  rgrParams.getParameter<double>("yLabPower"),
200  rgrParams.getParameter<std::string>("yCMSigmaFunc"),
201  rgrParams.getParameter<double>("yCMPower"),
202  rgrParams.getParameter<double>("pTHatMin"),
203  rgrParams.getParameter<double>("pTHatMax"));
204  edm::LogInfo("Pythia8Interface") << "End setup for reweightGenRap";
205  }
206  if( params.exists( "reweightGenPtHatRap" ) )
207  {
208  edm::LogInfo("Pythia8Interface") << "Start setup for reweightGenPtHatRap";
209  edm::ParameterSet rgrParams =
210  params.getParameter<edm::ParameterSet>("reweightGenPtHatRap");
212  new PtHatRapReweightUserHook(rgrParams.getParameter<std::string>("yLabSigmaFunc"),
213  rgrParams.getParameter<double>("yLabPower"),
214  rgrParams.getParameter<std::string>("yCMSigmaFunc"),
215  rgrParams.getParameter<double>("yCMPower"),
216  rgrParams.getParameter<double>("pTHatMin"),
217  rgrParams.getParameter<double>("pTHatMax"));
218  edm::LogInfo("Pythia8Interface") << "End setup for reweightGenPtHatRap";
219  }
220 
221  if( params.exists( "useUserHook" ) )
222  throw edm::Exception(edm::errors::Configuration,"Pythia8Interface")
223  <<" Obsolete parameter: useUserHook \n Please use the actual one instead \n";
224 
225  // PS matching prototype
226  //
227  if ( params.exists("jetMatching") )
228  {
229  edm::ParameterSet jmParams =
230  params.getUntrackedParameter<edm::ParameterSet>("jetMatching");
231  std::string scheme = jmParams.getParameter<std::string>("scheme");
232  if ( scheme == "Madgraph" || scheme == "MadgraphFastJet" )
233  {
234  fJetMatchingHook = new JetMatchingHook( jmParams, &fMasterGen->info );
235  }
236  }
237 
238  // Pythia8Interface emission veto
239  //
240  if ( params.exists("emissionVeto1") )
241  {
242  EV1_nFinal = -1;
243  if(params.exists("EV1_nFinal")) EV1_nFinal = params.getParameter<int>("EV1_nFinal");
244  EV1_vetoOn = true;
245  if(params.exists("EV1_vetoOn")) EV1_vetoOn = params.getParameter<bool>("EV1_vetoOn");
246  EV1_maxVetoCount = 10;
247  if(params.exists("EV1_maxVetoCount")) EV1_maxVetoCount = params.getParameter<int>("EV1_maxVetoCount");
248  EV1_pThardMode = 1;
249  if(params.exists("EV1_pThardMode")) EV1_pThardMode = params.getParameter<int>("EV1_pThardMode");
250  EV1_pTempMode = 0;
251  if(params.exists("EV1_pTempMode")) EV1_pTempMode = params.getParameter<int>("EV1_pTempMode");
252  if(EV1_pTempMode > 2 || EV1_pTempMode < 0)
253  throw edm::Exception(edm::errors::Configuration,"Pythia8Interface")
254  <<" Wrong value for EV1_pTempMode code\n";
255  EV1_emittedMode = 0;
256  if(params.exists("EV1_emittedMode")) EV1_emittedMode = params.getParameter<int>("EV1_emittedMode");
257  EV1_pTdefMode = 1;
258  if(params.exists("EV1_pTdefMode")) EV1_pTdefMode = params.getParameter<int>("EV1_pTdefMode");
259  EV1_MPIvetoOn = false;
260  if(params.exists("EV1_MPIvetoOn")) EV1_MPIvetoOn = params.getParameter<bool>("EV1_MPIvetoOn");
264  }
265 
269  if(fJetMatchingHook) NHooks++;
271  if(NHooks > 1)
272  throw edm::Exception(edm::errors::Configuration,"Pythia8Interface")
273  <<" Too many User Hooks. \n Please choose one from: reweightGen, reweightGenRap, reweightGenPtHatRap, jetMatching, emissionVeto1 \n";
274  if(fReweightUserHook) fMasterGen->setUserHooksPtr(fReweightUserHook);
277  if(fJetMatchingHook) fMasterGen->setUserHooksPtr(fJetMatchingHook);
278  if(fEmissionVetoHook1) {
279  edm::LogInfo("Pythia8Interface") << "Turning on Emission Veto Hook 1 from CMSSW Pythia8Interface";
280  fMasterGen->setUserHooksPtr(fEmissionVetoHook1);
281  }
282 
283 }
284 
285 
287 {
288 // do we need to delete UserHooks/JetMatchingHook here ???
291 }
292 
294 {
295 
296  bool status = true;
297 
298  if ( fInitialState == PP ) // default
299  {
300  //fMasterGen->init(2212, 2212, comEnergy);
301  fMasterGen->settings.mode("Beams:idA", 2212);
302  fMasterGen->settings.mode("Beams:idB", 2212);
303  fMasterGen->settings.parm("Beams:eCM", comEnergy);
304  status &= fMasterGen->init();
305  }
306  else if ( fInitialState == PPbar )
307  {
308  //fMasterGen->init(2212, -2212, comEnergy);
309  fMasterGen->settings.mode("Beams:idA", 2212);
310  fMasterGen->settings.mode("Beams:idB", -2212);
311  fMasterGen->settings.parm("Beams:eCM", comEnergy);
312  status &= fMasterGen->init();
313  }
314  else if ( fInitialState == ElectronPositron )
315  {
316  //fMasterGen->init(11, -11, comEnergy);
317  fMasterGen->settings.mode("Beams:idA", 11);
318  fMasterGen->settings.mode("Beams:idB", -11);
319  fMasterGen->settings.parm("Beams:eCM", comEnergy);
320  status &= fMasterGen->init();
321  }
322  else
323  {
324  // throw on unknown initial state !
325  throw edm::Exception(edm::errors::Configuration,"Pythia8Interface")
326  <<" UNKNOWN INITIAL STATE. \n The allowed initial states are: PP, PPbar, ElectronPositron \n";
327  }
328 
329  fMasterGen->settings.listChanged();
330 
331  if ( pythiaPylistVerbosity > 10 )
332  {
333  if ( pythiaPylistVerbosity == 11 || pythiaPylistVerbosity == 13 )
334  fMasterGen->settings.listAll();
335  if ( pythiaPylistVerbosity == 12 || pythiaPylistVerbosity == 13 )
336  fMasterGen->particleData.listAll();
337  }
338 
339  // init decayer
340  //fDecayer->readString("ProcessLevel:all = off"); // trick
341  //fDecayer->readString("ProcessLevel::resonanceDecays=on");
342  fDecayer->settings.flag("ProcessLevel:all", false ); // trick
343  fDecayer->settings.flag("ProcessLevel:resonanceDecays", true );
344  status &= fDecayer->init();
345 
346  return status;
347 }
348 
349 
351 {
352 
353  edm::LogInfo("Pythia8Interface") << "Initializing for external partons";
354 
355  bool status = true;
356 
357  if((fMasterGen->settings.mode("POWHEG:veto") > 0 || fMasterGen->settings.mode("POWHEG:MPIveto") > 0) && !fEmissionVetoHook) {
358 
360  throw edm::Exception(edm::errors::Configuration,"Pythia8Interface")
361  <<" Attempt to turn on PowhegHooks by pythia8 settings but there are incompatible hooks on \n Incompatible are : jetMatching, emissionVeto1 \n";
362 
363  fEmissionVetoHook = new PowhegHooks();
364 
365  edm::LogInfo("Pythia8Interface") << "Turning on Emission Veto Hook from pythia8 code";
366  fMasterGen->setUserHooksPtr(fEmissionVetoHook);
367 
368  }
369 
370  //adapted from main89.cc in pythia8 examples
371  bool internalMatching = fMasterGen->settings.flag("JetMatching:merge");
372  bool internalMerging = !(fMasterGen->settings.word("Merging:Process").compare("void")==0);
373 
374  if (internalMatching && internalMerging) {
375  throw edm::Exception(edm::errors::Configuration,"Pythia8Interface")
376  <<" Only one jet matching/merging scheme can be used at a time. \n";
377  }
378 
379  if (internalMatching && !fJetMatchingPy8InternalHook) {
380  fJetMatchingPy8InternalHook = new Pythia8::JetMatchingMadgraph;
381  fMasterGen->setUserHooksPtr(fJetMatchingPy8InternalHook);
382  }
383 
384  if (internalMerging && !fMergingHook) {
385  int scheme = ( fMasterGen->settings.flag("Merging:doUMEPSTree")
386  || fMasterGen->settings.flag("Merging:doUMEPSSubt")) ?
387  1 :
388  ( ( fMasterGen->settings.flag("Merging:doUNLOPSTree")
389  || fMasterGen->settings.flag("Merging:doUNLOPSSubt")
390  || fMasterGen->settings.flag("Merging:doUNLOPSLoop")
391  || fMasterGen->settings.flag("Merging:doUNLOPSSubtNLO")) ?
392  2 :
393  0 );
394  fMergingHook = new Pythia8::amcnlo_unitarised_interface(scheme);
395  fMasterGen->setUserHooksPtr(fMergingHook);
396  }
397 
398 
399  if(LHEInputFileName != string()) {
400 
401  edm::LogInfo("Pythia8Interface") << "Initialize direct pythia8 reading from LHE file "
402  << LHEInputFileName;
403  edm::LogInfo("Pythia8Interface") << "Some LHE information can be not stored";
404  //fMasterGen->init(LHEInputFileName);
405  fMasterGen->settings.mode("Beams:frameType", 4);
406  fMasterGen->settings.word("Beams:LHEF", LHEInputFileName);
407  status &= fMasterGen->init();
408 
409  } else {
410 
411  lhaUP.reset(new LHAupLesHouches());
412  lhaUP->setScalesFromLHEF(fMasterGen->settings.flag("Beams:setProductionScalesFromLHEF"));
413  lhaUP->loadRunInfo(lheRunInfo());
414 
415  if ( fJetMatchingHook )
416  {
418  }
419 
420  //fMasterGen->init(lhaUP.get());
421  fMasterGen->settings.mode("Beams:frameType", 5);
422  fMasterGen->setLHAupPtr(lhaUP.get());
423  status &= fMasterGen->init();
424  }
425 
426  if ( pythiaPylistVerbosity > 10 )
427  {
428  if ( pythiaPylistVerbosity == 11 || pythiaPylistVerbosity == 13 )
429  fMasterGen->settings.listAll();
430  if ( pythiaPylistVerbosity == 12 || pythiaPylistVerbosity == 13 )
431  fMasterGen->particleData.listAll();
432  }
433 
434  // init decayer
435  //fDecayer->readString("ProcessLevel:all = off"); // trick
436  //fDecayer->readString("ProcessLevel::resonanceDecays=on");
437  fDecayer->settings.flag("ProcessLevel:all", false ); // trick
438  fDecayer->settings.flag("ProcessLevel:resonanceDecays", true );
439  status &= fDecayer->init();
440 
441  return status;
442 }
443 
444 
446 {
447  fMasterGen->stat();
448 
449  if(fEmissionVetoHook) {
450  edm::LogPrint("Pythia8Interface") << "\n"
451  << "Number of ISR vetoed = " << nISRveto;
452  edm::LogPrint("Pythia8Interface")
453  << "Number of FSR vetoed = " << nFSRveto;
454  }
455 
456  double xsec = fMasterGen->info.sigmaGen(); // cross section in mb
457  xsec *= 1.0e9; // translate to pb (CMS/Gen "convention" as of May 2009)
458  runInfo().setInternalXSec(xsec);
459 }
460 
461 
463 {
464 
465  if (!fMasterGen->next()) return false;
466 
467  event().reset(new HepMC::GenEvent);
468  return toHepMC.fill_next_event( *(fMasterGen.get()), event().get());
469 
470 }
471 
472 
474 {
475  DJR.resize(0);
476  nME = -1;
477  nMEFiltered = -1;
478  if(LHEInputFileName == string()) lhaUP->loadEvent(lheEvent());
479 
480  if ( fJetMatchingHook )
481  {
484  }
485 
486  bool py8next = fMasterGen->next();
487 
488  double mergeweight = fMasterGen.get()->info.mergingWeightNLO();
489  if (fMergingHook) {
490  mergeweight *= fMergingHook->getNormFactor();
491  }
492 
493 
494  //protect against 0-weight from ckkw or similar
495  if (!py8next || std::abs(mergeweight)==0.)
496  {
497  lheEvent()->count( lhef::LHERunInfo::kSelected, 1.0, mergeweight );
498  event().reset();
499  return false;
500  }
501 
503  const std::vector<double> djrmatch = fJetMatchingPy8InternalHook->GetDJR();
504  //cap size of djr vector to save storage space (keep only up to first 6 elements)
505  unsigned int ndjr = std::min(djrmatch.size(), std::vector<double>::size_type(6));
506  for (unsigned int idjr=0; idjr<ndjr; ++idjr) {
507  DJR.push_back(djrmatch[idjr]);
508  }
509 
510  nME=fJetMatchingPy8InternalHook->nMEpartons().first;
511  nMEFiltered=fJetMatchingPy8InternalHook->nMEpartons().second;
512  }
513 
514  // update LHE matching statistics
515  //
516  lheEvent()->count( lhef::LHERunInfo::kAccepted, 1.0, mergeweight );
517 
518  event().reset(new HepMC::GenEvent);
519  bool py8hepmc = toHepMC.fill_next_event( *(fMasterGen.get()), event().get());
520  if (!py8hepmc) {
521  return false;
522  }
523 
524  //add ckkw/umeps/unlops merging weight
525  if (mergeweight!=1.) {
526  event()->weights()[0] *= mergeweight;
527  }
528 
529  if (fEmissionVetoHook) {
530  nISRveto += fEmissionVetoHook->getNISRveto();
531  nFSRveto += fEmissionVetoHook->getNFSRveto();
532  }
533 
534  return true;
535 
536 
537 }
538 
539 
541 {
542 
543  Event* pythiaEvent = &(fMasterGen->event);
544 
545  int NPartsBeforeDecays = pythiaEvent->size();
546  int NPartsAfterDecays = event().get()->particles_size();
547  int NewBarcode = NPartsAfterDecays;
548 
549  for ( int ipart=NPartsAfterDecays; ipart>NPartsBeforeDecays; ipart-- )
550  {
551 
552  HepMC::GenParticle* part = event().get()->barcode_to_particle( ipart );
553 
554  if ( part->status() == 1 )
555  {
556  fDecayer->event.reset();
557  Particle py8part( part->pdg_id(), 93, 0, 0, 0, 0, 0, 0,
558  part->momentum().x(),
559  part->momentum().y(),
560  part->momentum().z(),
561  part->momentum().t(),
562  part->generated_mass() );
563  HepMC::GenVertex* ProdVtx = part->production_vertex();
564  py8part.vProd( ProdVtx->position().x(), ProdVtx->position().y(),
565  ProdVtx->position().z(), ProdVtx->position().t() );
566  py8part.tau( (fDecayer->particleData).tau0( part->pdg_id() ) );
567  fDecayer->event.append( py8part );
568  int nentries = fDecayer->event.size();
569  if ( !fDecayer->event[nentries-1].mayDecay() ) continue;
570  fDecayer->next();
571  int nentries1 = fDecayer->event.size();
572  if ( nentries1 <= nentries ) continue; //same number of particles, no decays...
573 
574  part->set_status(2);
575 
576  Particle& py8daughter = fDecayer->event[nentries]; // the 1st daughter
577  HepMC::GenVertex* DecVtx = new HepMC::GenVertex( HepMC::FourVector(py8daughter.xProd(),
578  py8daughter.yProd(),
579  py8daughter.zProd(),
580  py8daughter.tProd()) );
581 
582  DecVtx->add_particle_in( part ); // this will cleanup end_vertex if exists, replace with the new one
583  // I presume (vtx) barcode will be given automatically
584 
585  HepMC::FourVector pmom( py8daughter.px(), py8daughter.py(), py8daughter.pz(), py8daughter.e() );
586 
587  HepMC::GenParticle* daughter =
588  new HepMC::GenParticle( pmom, py8daughter.id(), 1 );
589 
590  NewBarcode++;
591  daughter->suggest_barcode( NewBarcode );
592  DecVtx->add_particle_out( daughter );
593 
594  for ( int ipart1=nentries+1; ipart1<nentries1; ipart1++ )
595  {
596  py8daughter = fDecayer->event[ipart1];
597  HepMC::FourVector pmomN( py8daughter.px(), py8daughter.py(), py8daughter.pz(), py8daughter.e() );
598  HepMC::GenParticle* daughterN =
599  new HepMC::GenParticle( pmomN, py8daughter.id(), 1 );
600  NewBarcode++;
601  daughterN->suggest_barcode( NewBarcode );
602  DecVtx->add_particle_out( daughterN );
603  }
604 
605  event().get()->add_vertex( DecVtx );
606 
607  }
608  }
609  return true;
610 
611 }
612 
613 
615 {
616  bool lhe = lheEvent() != 0;
617 
618  // now create the GenEventInfo product from the GenEvent and fill
619  // the missing pieces
620  eventInfo().reset( new GenEventInfoProduct( event().get() ) );
621 
622  // in pythia pthat is used to subdivide samples into different bins
623  // in LHE mode the binning is done by the external ME generator
624  // which is likely not pthat, so only filling it for Py6 internal mode
625  if (!lhe) {
626  eventInfo()->setBinningValues(std::vector<double>(1, fMasterGen->info.pTHat()));
627  }
628 
629  eventInfo()->setDJR(DJR);
630  eventInfo()->setNMEPartons(nME);
631  eventInfo()->setNMEPartonsFiltered(nMEFiltered);
632 
633  //******** Verbosity ********
634 
635  if (maxEventsToPrint > 0 &&
638  if (pythiaPylistVerbosity) {
639  fMasterGen->info.list(std::cout);
640  fMasterGen->event.list(std::cout);
641  }
642 
643  if (pythiaHepMCVerbosity) {
644  std::cout << "Event process = "
645  << fMasterGen->info.code() << "\n"
646  << "----------------------" << std::endl;
647  event()->print();
648  }
649  }
650 }
651 
652 
655 
656 
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual bool residualDecay()
ParameterCollector fParameters
double comEnergy
Center-of-Mass energy.
std::auto_ptr< Pythia8::Pythia > fMasterGen
EmissionVetoHook1 * fEmissionVetoHook1
edm::GeneratorFilter< Pythia8Hadronizer, ExternalDecayDriver > Pythia8GeneratorFilter
UserHooks * fReweightUserHook
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
bool exists(std::string const &parameterName) const
checks if a parameter exists
#define abs(x)
Definition: mlp_lapack.h:159
Pythia8::JetMatchingMadgraph * fJetMatchingPy8InternalHook
void count(LHERunInfo::CountMode count, double weight=1.0, double matchWeight=1.0)
Definition: LHEEvent.cc:207
#define min(a, b)
Definition: mlp_lapack.h:161
void setInternalXSec(const XSec &xsec)
uint16_t size_type
PowhegHooks * fEmissionVetoHook
void beforeHadronization(lhef::LHEEvent *lhee)
std::auto_ptr< HepMC::GenEvent > & event()
GenRunInfoProduct & runInfo()
std::auto_ptr< LHAupLesHouches > lhaUP
lhef::LHEEvent * lheEvent()
UserHooks * fReweightPtHatRapUserHook
const char * classname() const
unsigned int pythiaPylistVerbosity
UserHooks * fReweightRapUserHook
std::auto_ptr< GenEventInfoProduct > & eventInfo()
lhef::LHERunInfo * lheRunInfo()
void init(lhef::LHERunInfo *runInfo)
Pythia8::amcnlo_unitarised_interface * fMergingHook
JetMatchingHook * fJetMatchingHook
part
Definition: HCALResponse.h:21
unsigned int maxEventsToPrint
std::auto_ptr< Pythia8::Pythia > fDecayer
Pythia8Hadronizer(const edm::ParameterSet &params)
vector< float > DJR
void resetMatchingStatus()
const_iterator end() const
const_iterator begin() const
HepMC::Pythia8ToHepMC toHepMC
tuple cout
Definition: gather_cfg.py:121
tuple status
Definition: ntuplemaker.py:245
edm::HadronizerFilter< Pythia8Hadronizer, ExternalDecayDriver > Pythia8HadronizerFilter