CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/GeneratorInterface/Pythia6Interface/plugins/Pythia6PartonGun.cc

Go to the documentation of this file.
00001 
00002 #include <iostream>
00003 
00004 #include "Pythia6PartonGun.h"
00005 
00006 #include "FWCore/Utilities/interface/Exception.h"
00007 
00008 #include "FWCore/Framework/interface/EDProducer.h"
00009 #include "FWCore/Framework/interface/EventSetup.h"
00010 
00011 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00012 
00013 using namespace edm;
00014 using namespace gen;
00015 
00016 Pythia6PartonGun::Pythia6PartonGun( const ParameterSet& pset ) :
00017    Pythia6Gun(pset)
00018 {
00019    
00020    ParameterSet pgun_params = 
00021       pset.getParameter<ParameterSet>("PGunParameters"); 
00022    fPartonID = pgun_params.getParameter< int >("PartonID");
00023    
00024 }
00025 
00026 Pythia6PartonGun::~Pythia6PartonGun()
00027 {
00028 }
00029 
00030 void Pythia6PartonGun::joinPartons( double qmax )
00031 {
00032 
00033    int njoin=2;
00034    int ijoin[]={1,2};
00035    pyjoin_( njoin, ijoin );
00036    int i1=1;
00037    int i2=2;
00038    pyshow_( i1, i2, qmax );
00039 
00040    return;
00041 
00042 }