00001 #include "FastShowerUtils/Acceptors/SoftPhotonBarAcceptor.h" 00002 00003 #include "FastShowerUtils/ParticleParameters.h" 00004 00005 #include <iostream> 00006 namespace FastShower{ 00007 00008 SoftPhotonBarAcceptor::SoftPhotonBarAcceptor(): 00009 IAcceptor(), DebugBase("SoftPhotonBarAcceptor"){} 00010 00011 IAcceptor* SoftPhotonBarAcceptor::clone() const{ 00012 return new SoftPhotonBarAcceptor(*this); 00013 } 00014 00015 bool SoftPhotonBarAcceptor::accept(const ParticleParameters& pp) const { 00016 return (pp.isPhoton() && pp.rawEnergy()<1.5 && pp.region()==0); 00017 } 00018 00019 }//namespace 00020