BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSpinType Class Reference

#include <EvtSpinType.hh>

Public Types

enum  spintype {
  SCALAR , VECTOR , TENSOR , DIRAC ,
  PHOTON , NEUTRINO , STRING , RARITASCHWINGER ,
  SPIN3 , SPIN4 , SPIN5HALF , SPIN7HALF
}
 

Static Public Member Functions

static int getSpin2 (spintype stype)
 
static int getSpinStates (spintype stype)
 

Detailed Description

Definition at line 27 of file EvtSpinType.hh.

Member Enumeration Documentation

◆ spintype

Enumerator
SCALAR 
VECTOR 
TENSOR 
DIRAC 
PHOTON 
NEUTRINO 
STRING 
RARITASCHWINGER 
SPIN3 
SPIN4 
SPIN5HALF 
SPIN7HALF 

Definition at line 31 of file EvtSpinType.hh.

Member Function Documentation

◆ getSpin2()

static int EvtSpinType::getSpin2 ( spintype  stype)
inlinestatic

Definition at line 34 of file EvtSpinType.hh.

34 {
35
36 switch (stype){
37 case SCALAR: case STRING:
38 return 0;
39 case DIRAC: case NEUTRINO:
40 return 1;
41 case VECTOR: case PHOTON:
42 return 2;
43 case RARITASCHWINGER:
44 return 3;
45 case TENSOR:
46 return 4;
47 case SPIN5HALF:
48 return 5;
49 case SPIN3:
50 return 6;
51 case SPIN7HALF:
52 return 7;
53 case SPIN4:
54 return 8;
55 default:
56 report(ERROR,"EvtGen")<<"Unknown spintype in EvtSpinType!"<<std::endl;
57 return 0;
58 }
59
60 }
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
@ ERROR
Definition: EvtReport.hh:49

Referenced by EvtPto3PAmp::angDep(), EvtMultibody::decay(), EvtEvalHelAmp::EvtEvalHelAmp(), EvtMHelAmp::EvtMHelAmp(), EvtMParticle::EvtMParticle(), EvtRelBreitWignerBarrierFact::getRandMass(), EvtHelAmp::init(), EvtHypNonLepton::init(), EvtPartWave::init(), and EvtHighSpinParticle::rotateToHelicityBasis().

◆ getSpinStates()

static int EvtSpinType::getSpinStates ( spintype  stype)
inlinestatic

Definition at line 64 of file EvtSpinType.hh.

64 {
65
66 switch (stype){
67 case SCALAR: case STRING: case NEUTRINO:
68 return 1;
69 case DIRAC: case PHOTON:
70 return 2;
71 case VECTOR:
72 return 3;
73 case RARITASCHWINGER:
74 return 4;
75 case TENSOR:
76 return 5;
77 case SPIN5HALF:
78 return 6;
79 case SPIN3:
80 return 7;
81 case SPIN7HALF:
82 return 8;
83 case SPIN4:
84 return 9;
85 default:
86 report(ERROR,"EvtGen")<<"Unknown spintype in EvtSpinType!"<<std::endl;
87 return 0;
88 }
89
90 }

Referenced by EvtEvalHelAmp::EvtEvalHelAmp(), EvtParticle::getSpinStates(), EvtHelAmp::init(), EvtPartWave::init(), EvtAmp::init(), EvtParticleFactory::particleFactory(), and EvtHighSpinParticle::rotateToHelicityBasis().


The documentation for this class was generated from the following file: