CMS 3D CMS Logo

MadGraphProducer.cc File Reference

#include "GeneratorInterface/MadGraphInterface/interface/MadGraphProducer.h"
#include "GeneratorInterface/MadGraphInterface/interface/PYR.h"
#include "SimDataFormats/GeneratorProducts/interface/LHERunInfoProduct.h"
#include "SimDataFormats/GeneratorProducts/interface/LHEEventProduct.h"
#include "SimDataFormats/GeneratorProducts/interface/LHECommonBlocks.h"
#include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Utilities/interface/RandomNumberGenerator.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <algorithm>
#include <iterator>
#include <iostream>
#include <fstream>
#include <cstring>
#include <cstdio>
#include <string>
#include "time.h"
#include "HepMC/PythiaWrapper6_2.h"
#include "HepMC/IO_HEPEVT.h"
#include "GeneratorInterface/MadGraphInterface/interface/MCDBInterface.h"

Go to the source code of this file.

Classes

struct  MEMAIN
struct  SOURCEPRS

Defines

#define PYGIVE   pygive_
 MadGraphProducer.
#define TXGIVE   txgive_
#define TXGIVE_INIT   txgive_init_

Functions

void eventtree_ ()
void mgclos_ ()
void mgopen_ (const char *fname, int len)
void PYGIVE (const char *, int length)
void pystop_ (int *mcod)
void TXGIVE (const char *, int length)
void TXGIVE_INIT ()

Variables

static const unsigned long kAveEventPerSec = 200
static const unsigned long kNanoSecPerSec = 1000000000
struct MEMAIN memain_
struct SOURCEPRS sourceprs_


Define Documentation

#define PYGIVE   pygive_

MadGraphProducer.

A modified version of the PythiaProducer by Filip Moorgat & Hector Naves, that generates events by reading in a file produced with MadGraph/MadEvent and shower them with Pythia.

July 2006 Maria Hansen, University of Bristol Hector Naves : added the MCDB Interface (25/10/06) Dorian Kcira : add automatic end of event processing when hitting the end of the lhe file (29/01/07) Dorian Kcira : added ME-PS matching (22/05/2007) Dorian Kcira : added reading of <slha> xml tags in the header (05/02/2008) Dorian Kcira : added flag to allow reading of generic LH files without MadGraph specifics (06/02/2008) Christophe Saout : read LHE data from EDM products and make MadGraphProducer an EDFilter the EDM products can be filled from a LHE file via a dedicated LHESource

Definition at line 50 of file MadGraphProducer.cc.

#define TXGIVE   txgive_

Definition at line 59 of file MadGraphProducer.cc.

#define TXGIVE_INIT   txgive_init_

Definition at line 64 of file MadGraphProducer.cc.


Function Documentation

void eventtree_ (  ) 

Referenced by edm::MadGraphProducer::filter(), and edm::MadGraphSource::produce().

void mgclos_ (  ) 

Referenced by edm::MadGraphProducer::endRun(), and edm::MadGraphSource::~MadGraphSource().

void mgopen_ ( const char *  fname,
int  len 
)

Referenced by edm::MadGraphProducer::beginRun(), and edm::MadGraphSource::MadGraphSource().

void PYGIVE ( const char *  ,
int  length 
)

void pystop_ ( int mcod  ) 

Definition at line 112 of file MadGraphProducer.cc.

References lat::endl(), and Exception.

00113   {
00114     throw cms::Exception("Generator|MadGraphProducer")
00115           << "PYSTOP called with code: " << *mcod << std::endl;
00116   }

void TXGIVE ( const char *  ,
int  length 
)

void TXGIVE_INIT (  ) 


Variable Documentation

const unsigned long kAveEventPerSec = 200 [static]

Definition at line 121 of file MadGraphProducer.cc.

const unsigned long kNanoSecPerSec = 1000000000 [static]

Definition at line 120 of file MadGraphProducer.cc.

struct MEMAIN memain_

Referenced by edm::MadGraphProducer::init(), edm::MadGraphProducer::MadGraphProducer(), and edm::MadGraphSource::MadGraphSource().

struct SOURCEPRS sourceprs_

Referenced by edm::MadGraphProducer::filter(), edm::MadGraphProducer::MadGraphProducer(), and edm::MadGraphSource::MadGraphSource().


Generated on Tue Jun 9 17:53:35 2009 for CMSSW by  doxygen 1.5.4