CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
gen::Pythia6PartonGun Class Reference

#include <Pythia6PartonGun.h>

Inheritance diagram for gen::Pythia6PartonGun:
gen::Pythia6Gun edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper gen::Pythia6PartonEGun gen::Pythia6PartonPtGun

Public Member Functions

 Pythia6PartonGun (const edm::ParameterSet &)
 
virtual ~Pythia6PartonGun ()
 
- Public Member Functions inherited from gen::Pythia6Gun
void beginJob ()
 
void beginRun (edm::Run &, edm::EventSetup const &)
 
void endJob ()
 
void endRun (edm::Run &, edm::EventSetup const &)
 
void produce (edm::Event &, const edm::EventSetup &)
 
 Pythia6Gun (const edm::ParameterSet &)
 
virtual ~Pythia6Gun ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Protected Member Functions

void joinPartons (double qmax)
 
- Protected Member Functions inherited from gen::Pythia6Gun
HepMC::GenParticle * addAntiParticle (int &, int &, double &, double &, double &)
 
void attachPy6DecaysToGenEvent ()
 
virtual void generateEvent ()=0
 
void loadEvent (edm::Event &)
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Protected Attributes

int fPartonID
 
- Protected Attributes inherited from gen::Pythia6Gun
HepMC::GenEvent * fEvt
 
bool fHepMCVerbosity
 
int fMaxEventsToPrint
 
double fMaxPhi
 
double fMinPhi
 
std::vector< int > fPartIDs
 
Pythia6ServicefPy6Service
 
int fPylistVerbosity
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 20 of file Pythia6PartonGun.h.

Constructor & Destructor Documentation

Pythia6PartonGun::Pythia6PartonGun ( const edm::ParameterSet pset)

Definition at line 16 of file Pythia6PartonGun.cc.

References fPartonID, and edm::ParameterSet::getParameter().

16  :
17  Pythia6Gun(pset)
18 {
19 
20  ParameterSet pgun_params =
21  pset.getParameter<ParameterSet>("PGunParameters");
22  fPartonID = pgun_params.getParameter< int >("PartonID");
23 
24 }
T getParameter(std::string const &) const
Pythia6Gun(const edm::ParameterSet &)
Definition: Pythia6Gun.cc:25
Pythia6PartonGun::~Pythia6PartonGun ( )
virtual

Definition at line 26 of file Pythia6PartonGun.cc.

27 {
28 }

Member Function Documentation

void Pythia6PartonGun::joinPartons ( double  qmax)
protected

Definition at line 30 of file Pythia6PartonGun.cc.

References gen::pyjoin_(), and gen::pyshow_().

Referenced by gen::Pythia6PartonEGun::generateEvent(), and gen::Pythia6PartonPtGun::generateEvent().

31 {
32 
33  int njoin=2;
34  int ijoin[]={1,2};
35  pyjoin_( njoin, ijoin );
36  int i1=1;
37  int i2=2;
38  pyshow_( i1, i2, qmax );
39 
40  return;
41 
42 }
void pyjoin_(int &njoin, int ijoin[])
void pyshow_(int &i1, int &i2, double &)

Member Data Documentation

int gen::Pythia6PartonGun::fPartonID
protected