Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:23

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