src
SimG4Core
Application
src
PrimaryTransformer.cc
Go to the documentation of this file.
1
#include "
SimG4Core/Application/interface/PrimaryTransformer.h
"
2
3
#include "G4ParticleDefinition.hh"
4
5
PrimaryTransformer::PrimaryTransformer
() : G4PrimaryTransformer() { unknownParticleDefined =
false
; }
6
7
PrimaryTransformer::~PrimaryTransformer
() {}
8
9
G4ParticleDefinition*
PrimaryTransformer::GetDefinition
(G4PrimaryParticle*
pp
) {
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
}
susybsm::HSCParticleType::unknown
Definition:
HSCParticle.h:20
PrimaryTransformer.h
PrimaryTransformer::PrimaryTransformer
PrimaryTransformer()
Definition:
PrimaryTransformer.cc:5
PrimaryTransformer::GetDefinition
G4ParticleDefinition * GetDefinition(G4PrimaryParticle *pp) override
Definition:
PrimaryTransformer.cc:9
createTree.pp
pp
Definition:
createTree.py:17
PrimaryTransformer::~PrimaryTransformer
~PrimaryTransformer() override
Definition:
PrimaryTransformer.cc:7
Generated for CMSSW Reference Manual by
1.8.14