Line data Source code
1 : //--------------------------------------------------------------------------
2 : //
3 : // Environment:
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.
7 : //
8 : // Copyright Information: See EvtGen/COPYRIGHT
9 : // Copyright (C) 1998 Caltech, UCSB
10 : //
11 : // Module: EvtPHOTOS.cc
12 : //
13 : // Description: This routine takes the particle *p and applies
14 : // the PHOTOS package to generate final state radiation
15 : // on the produced mesons.
16 : //
17 : // Modification history:
18 : //
19 : // RYD October 1, 1997 Module created
20 : // JJB May 2011 Modified to use new PHOTOS generator
21 : //
22 : //------------------------------------------------------------------------
23 : //
24 : #include "EvtGenBase/EvtPatches.hh"
25 :
26 : #include "EvtGenExternal/EvtPHOTOS.hh"
27 : #include "EvtGenExternal/EvtExternalGenFactory.hh"
28 :
29 0 : EvtPHOTOS::EvtPHOTOS() {
30 :
31 0 : _photosEngine = 0;
32 :
33 0 : }
34 :
35 0 : EvtPHOTOS::~EvtPHOTOS() {
36 :
37 0 : }
38 :
39 : void EvtPHOTOS::doRadCorr(EvtParticle *p) {
40 :
41 0 : if (_photosEngine == 0) {
42 0 : _photosEngine = EvtExternalGenFactory::getInstance()->getGenerator(EvtExternalGenFactory::PhotosGenId);
43 0 : }
44 :
45 0 : if (_photosEngine != 0) {
46 0 : _photosEngine->doDecay(p);
47 0 : }
48 :
49 0 : }
50 :
|