CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

PrimaryTransformer Class Reference

#include <PrimaryTransformer.h>

List of all members.

Public Member Functions

 PrimaryTransformer ()
virtual ~PrimaryTransformer ()

Protected Member Functions

virtual G4ParticleDefinition * GetDefinition (G4PrimaryParticle *pp)

Detailed Description

Definition at line 6 of file PrimaryTransformer.h.


Constructor & Destructor Documentation

PrimaryTransformer::PrimaryTransformer ( )

Definition at line 5 of file PrimaryTransformer.cc.

                                       : G4PrimaryTransformer()
{ unknownParticleDefined = false; }
PrimaryTransformer::~PrimaryTransformer ( ) [virtual]

Definition at line 8 of file PrimaryTransformer.cc.

{}

Member Function Documentation

G4ParticleDefinition * PrimaryTransformer::GetDefinition ( G4PrimaryParticle *  pp) [protected, virtual]

Definition at line 10 of file PrimaryTransformer.cc.

References susybsm::HSCParticleType::unknown.

{              
    G4ParticleDefinition * partDef = pp->GetG4code();
    if(!partDef) partDef = particleTable->FindParticle(pp->GetPDGcode());
    if(unknownParticleDefined && ((!partDef)||partDef->IsShortLived())) partDef = unknown;
    return partDef;
}