LCOV - code coverage report
Current view: top level - TEvtGen/EvtGenExternal - EvtPHOTOS.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 12 0.0 %
Date: 2016-06-14 17:26:59 Functions: 0 6 0.0 %

          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             : 

Generated by: LCOV version 1.11