Atlfast::ITransportedParticleFactory Class Reference

#include <ITransportedParticleFactory.h>

List of all members.

Public Member Functions

 ITransportedParticleFactory ()
 ~ITransportedParticleFactory ()

Static Public Member Functions

static ITransportedParticlecreate (const HepMC::GenParticle *const &gen_particle, const std::vector< int > &)


Detailed Description

Definition at line 22 of file ITransportedParticleFactory.h.


Constructor & Destructor Documentation

Atlfast::ITransportedParticleFactory::ITransportedParticleFactory (  )  [inline]

Definition at line 24 of file ITransportedParticleFactory.h.

00024 {};

Atlfast::ITransportedParticleFactory::~ITransportedParticleFactory (  )  [inline]

Definition at line 25 of file ITransportedParticleFactory.h.

00025 {};


Member Function Documentation

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   }


The documentation for this class was generated from the following files:
Generated on Fri Sep 21 13:00:22 2007 for AtlfastEvent by  doxygen 1.5.1