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