1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtGen/EvtGen.hh
13 // Description:Main class to provide user interface to EvtGen.
15 // Modification history:
17 // RYD March 24, 1998 Module created
19 // DJL August 10, 1998 Additional Event member function added
21 // RYD December 25, 1999 Any application using EvtGen will need
22 // to instantiate an instance of this class
23 // and hold on to it untill done generating
24 // events. This class will now hold data used
25 // for the lifetime of the generator.
26 // JBack June 2011 Added HepMC event interface.
28 //------------------------------------------------------------------------
33 #include "EvtGenBase/EvtPDL.hh"
38 class EvtRandomEngine;
50 EvtGen(const char* const decayName,const char* const pdtTableName,
51 EvtRandomEngine* randomEngine=0, EvtAbsRadCorr *isrEngine=0,
52 const std::list<EvtDecayBase*>* extraModels=0,
53 int mixingType = 1, bool useXml = false);
57 void readUDecay(const char* const udecay_name, bool useXml = false);
59 EvtHepMCEvent* generateDecay(int PDGid, EvtVector4R refFrameP4,
60 EvtVector4R translation,
61 EvtSpinDensity* spinDensity = 0);
63 void generateDecay(EvtParticle *p);