Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

Function Documentation

G4int G4PhononPolarization::Get ( const G4ParticleDefinition aPD)

Definition at line 39 of file G4PhononPolarization.cc.

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

Here is the call graph for this function:

Here is the caller graph for this function:

G4ParticleDefinition * G4PhononPolarization::Get ( G4int  pol)

Definition at line 46 of file G4PhononPolarization.cc.

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

Here is the call graph for this function: