File indexing completed on 2024-04-06 12:13:54
0001
0002 #include <iostream>
0003
0004 #include "Pythia6PartonGun.h"
0005
0006 #include "FWCore/Utilities/interface/Exception.h"
0007
0008 #include "FWCore/Framework/interface/EventSetup.h"
0009
0010 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0011
0012 using namespace edm;
0013 using namespace gen;
0014
0015 Pythia6PartonGun::Pythia6PartonGun(const ParameterSet& pset) : Pythia6Gun(pset) {
0016 ParameterSet pgun_params = pset.getParameter<ParameterSet>("PGunParameters");
0017 fPartonID = pgun_params.getParameter<int>("PartonID");
0018 }
0019
0020 Pythia6PartonGun::~Pythia6PartonGun() {}
0021
0022 void Pythia6PartonGun::joinPartons(double qmax) {
0023 int njoin = 2;
0024 int ijoin[] = {1, 2};
0025 pyjoin_(njoin, ijoin);
0026 int i1 = 1;
0027 int i2 = 2;
0028 pyshow_(i1, i2, qmax);
0029
0030 return;
0031 }