Rev 329 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 329 | Rev 332 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | case D: return 1.86; |
32 | case D: return 1.86; |
33 | case DSTAR: return 2.01; |
33 | case DSTAR: return 2.01; |
34 | case B: return 5.27; |
34 | case B: return 5.27; |
35 | case PHI: return 1.02; |
35 | case PHI: return 1.02; |
36 | case LAMBDA0: return 1.115683; |
36 | case LAMBDA0: return 1.115683; |
- | 37 | case ALL: return -1; |
|
37 | default: return 0; |
38 | default: return 0; |
38 | } |
39 | } |
39 | 40 | ||
40 | } |
41 | } |
41 | 42 | ||
Line 46... | Line 47... | ||
46 | return sqrt(m2); |
47 | return sqrt(m2); |
47 | } |
48 | } |
48 | 49 | ||
49 | void BParticle::SetEnergyFromMass (float mass) |
50 | void BParticle::SetEnergyFromMass (float mass) |
50 | { |
51 | { |
- | 52 | if (mass<0) return; |
|
51 | m_e = sqrt( mass * mass + m_px * m_px +m_py * m_py +m_pz * m_pz ); |
53 | m_e = sqrt( mass * mass + m_px * m_px +m_py * m_py +m_pz * m_pz ); |
52 | 54 | ||
53 | } |
55 | } |
54 | 56 | ||
55 | void BParticle::SetEnergyFromPid(){ |
57 | void BParticle::SetEnergyFromPid(){ |