CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions
PrimaryTransformer Class Reference

#include <PrimaryTransformer.h>

Inheritance diagram for PrimaryTransformer:

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.

5  : G4PrimaryTransformer()
6 { unknownParticleDefined = false; }
PrimaryTransformer::~PrimaryTransformer ( )
virtual

Definition at line 8 of file PrimaryTransformer.cc.

8 {}

Member Function Documentation

G4ParticleDefinition * PrimaryTransformer::GetDefinition ( G4PrimaryParticle *  pp)
protectedvirtual

Definition at line 10 of file PrimaryTransformer.cc.

References susybsm::HSCParticleType::unknown.

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