/
scheme.go
48 lines (40 loc) · 1.05 KB
/
scheme.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright 2017 The go-hep Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package fastjet
import "fmt"
// RecombinationScheme defines the recombination choice for the 4-momenta of
// pseudo-jets during the clustering procedure
type RecombinationScheme int
const (
EScheme RecombinationScheme = iota // summing the 4-momenta
PtScheme // pt-weighted recombination of y,phi
Pt2Scheme // pt^2 weighted recombination of y,phi
EtScheme
Et2Scheme
BIPtScheme
BIPt2Scheme
ExternalScheme RecombinationScheme = 99
)
func (s RecombinationScheme) String() string {
switch s {
case EScheme:
return "E"
case PtScheme:
return "Pt"
case Pt2Scheme:
return "Pt2"
case EtScheme:
return "Et"
case Et2Scheme:
return "Et2"
case BIPtScheme:
return "BIPt"
case BIPt2Scheme:
return "BIPt2"
case ExternalScheme:
return "External"
default:
panic(fmt.Errorf("fastjet: invalid RecombinationScheme (%d)", int(s)))
}
}