#include <ITransportedParticleFactory.h>
Public Member Functions | |
ITransportedParticleFactory () | |
~ITransportedParticleFactory () | |
Static Public Member Functions | |
static ITransportedParticle * | create (const HepMC::GenParticle *const &gen_particle, const std::vector< int > &) |
Definition at line 22 of file ITransportedParticleFactory.h.
Atlfast::ITransportedParticleFactory::ITransportedParticleFactory | ( | ) | [inline] |
Atlfast::ITransportedParticleFactory::~ITransportedParticleFactory | ( | ) | [inline] |
ITransportedParticle * Atlfast::ITransportedParticleFactory::create | ( | const HepMC::GenParticle *const & | gen_particle, | |
const std::vector< int > & | ||||
) | [static] |
Definition at line 10 of file ITransportedParticleFactory.cxx.
00011 { 00012 00013 //std::cout << "Particle ID = " << gen_particle->pdg_id() << std::flush; 00014 //if ( gen_particle->pdg_id() == monopoleID ){ 00015 IsThisAMonopole itam(gen_particle->pdg_id()); 00016 if ( find_if(monopoleIDs.begin(), monopoleIDs.end(),itam) != monopoleIDs.end() ){ 00017 //std::cout << ", making a TransportedMonopole " << std::endl; 00018 return new TransportedMonopole(gen_particle); 00019 00020 } else { 00021 00022 //std::cout << ", making a TransportedSMParticle" << std::endl; 00023 return new TransportedSMParticle(gen_particle); 00024 00025 } 00026 00027 }