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 ()
 
 ~PrimaryTransformer () override
 

Protected Member Functions

G4ParticleDefinition * GetDefinition (G4PrimaryParticle *pp) override
 

Detailed Description

Definition at line 6 of file PrimaryTransformer.h.

Constructor & Destructor Documentation

◆ PrimaryTransformer()

PrimaryTransformer::PrimaryTransformer ( )

Definition at line 5 of file PrimaryTransformer.cc.

5 : G4PrimaryTransformer() { unknownParticleDefined = false; }

◆ ~PrimaryTransformer()

PrimaryTransformer::~PrimaryTransformer ( )
override

Definition at line 7 of file PrimaryTransformer.cc.

7 {}

Member Function Documentation

◆ GetDefinition()

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

Definition at line 9 of file PrimaryTransformer.cc.

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

References createTree::pp, and susybsm::HSCParticleType::unknown.

createTree.pp
pp
Definition: createTree.py:17
susybsm::HSCParticleType::unknown
Definition: HSCParticle.h:20