]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/EvtGenExternal/EvtPHOTOS.cpp
Added README for corrections
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenExternal / EvtPHOTOS.cpp
CommitLineData
0ca57c2f 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
29EvtPHOTOS::EvtPHOTOS() {
30
31 _photosEngine = 0;
32
33}
34
35EvtPHOTOS::~EvtPHOTOS() {
36
37}
38
39void EvtPHOTOS::doRadCorr(EvtParticle *p) {
40
41 if (_photosEngine == 0) {
42 _photosEngine = EvtExternalGenFactory::getInstance()->getGenerator(EvtExternalGenFactory::PhotosGenId);
43 }
44
45 if (_photosEngine != 0) {
46 _photosEngine->doDecay(p);
47 }
48
49}
50