CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/GeneratorInterface/Pythia6Interface/plugins/Pythia6ParticleGun.cc

Go to the documentation of this file.
00001 
00002 #include <iostream>
00003 
00004 #include "Pythia6ParticleGun.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 //#include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
00014 
00015 //#include "FWCore/Framework/interface/MakerMacros.h"
00016 
00017 using namespace edm;
00018 using namespace gen;
00019 
00020 Pythia6ParticleGun::Pythia6ParticleGun( const ParameterSet& pset ) :
00021    Pythia6Gun(pset)
00022 {
00023    
00024    ParameterSet pgun_params = 
00025       pset.getParameter<ParameterSet>("PGunParameters"); 
00026    fPartIDs    = pgun_params.getParameter< std::vector<int> >("ParticleID");
00027 
00028 }
00029 
00030 Pythia6ParticleGun::~Pythia6ParticleGun()
00031 {
00032 }
00033