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: EvtPHOTOS.cc
13 // Description: This routine takes the particle *p and applies
14 // the PHOTOS package to generate final state radiation
15 // on the produced mesons.
17 // Modification history:
19 // RYD October 1, 1997 Module created
20 // JJB May 2011 Modified to use new PHOTOS generator
22 //------------------------------------------------------------------------
24 #include "EvtGenBase/EvtPatches.hh"
26 #include "EvtGenExternal/EvtPHOTOS.hh"
27 #include "EvtGenExternal/EvtExternalGenFactory.hh"
29 EvtPHOTOS::EvtPHOTOS() {
35 EvtPHOTOS::~EvtPHOTOS() {
39 void EvtPHOTOS::doRadCorr(EvtParticle *p) {
41 if (_photosEngine == 0) {
42 _photosEngine = EvtExternalGenFactory::getInstance()->getGenerator(EvtExternalGenFactory::PhotosGenId);
45 if (_photosEngine != 0) {
46 _photosEngine->doDecay(p);