Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PhononPolarization Namespace Reference

Enumerations

enum  { Long =0 , TransSlow =1 , TransFast =2 , UNKNOWN =-1 }
 

Functions

G4int Get (const G4ParticleDefinition *aPD)
 
G4ParticleDefinitionGet (G4int pol)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
Long 
TransSlow 
TransFast 
UNKNOWN 

Definition at line 39 of file G4PhononPolarization.hh.

Function Documentation

◆ Get() [1/2]

G4int G4PhononPolarization::Get ( const G4ParticleDefinition aPD)

Definition at line 38 of file G4PhononPolarization.cc.

38 {
39 if (aPD == G4PhononLong::Definition()) return Long;
40 if (aPD == G4PhononTransSlow::Definition()) return TransSlow;
41 if (aPD == G4PhononTransFast::Definition()) return TransFast;
42 return UNKNOWN;
43}
static G4PhononLong * Definition()
Definition: G4PhononLong.cc:39
static G4PhononTransFast * Definition()
static G4PhononTransSlow * Definition()

Referenced by G4VPhononProcess::CreateSecondary(), and G4VPhononProcess::GetPolarization().

◆ Get() [2/2]

G4ParticleDefinition * G4PhononPolarization::Get ( G4int  pol)

Definition at line 45 of file G4PhononPolarization.cc.

45 {
46 switch (pol) {
47 case Long: return G4PhononLong::Definition(); break;
48 case TransSlow: return G4PhononTransSlow::Definition(); break;
49 case TransFast: return G4PhononTransFast::Definition(); break;
50 default: ;
51 }
52
53 return 0;
54}