CMS 3D CMS Logo

tensor_configs.h
Go to the documentation of this file.
1 #ifndef RecoBTag_ONNXRuntime_tensor_configs_h
2 #define RecoBTag_ONNXRuntime_tensor_configs_h
3 
4 #include <array>
5 namespace deepflavour {
6 
7  constexpr unsigned n_features_global = 15;
8 
9  constexpr unsigned n_cpf = 25;
10  constexpr unsigned n_features_cpf = 16;
11 
12  constexpr unsigned n_npf = 25;
13  constexpr unsigned n_features_npf = 6;
14 
15  constexpr unsigned n_sv = 4;
16  constexpr unsigned n_features_sv = 12;
17 
18 } // namespace deepflavour
19 
20 namespace deepvertex {
21 
23 
24  constexpr unsigned n_seed = 10;
25  constexpr unsigned n_features_seed = 21;
26 
27  constexpr unsigned n_neighbor = 20;
29 
30 } // namespace deepvertex
31 
32 namespace parT {
33 
35  kBegin = 0,
38  kVertices = 2,
42  kEnd = 6
43  };
44 
45  inline constexpr unsigned n_cpf_accept = 25;
46  inline constexpr unsigned n_npf_accept = 25;
47  inline constexpr unsigned n_sv_accept = 5;
48 
49  constexpr std::array<unsigned int, kEnd> N_InputFeatures{{
50  16, // kChargedCandidates
51  8, // kNeutralCandidates
52  14, // kVertices
53  4, // kChargedCandidates4Vec
54  4, // kNeutralCandidates4Vec
55  4, // kVertices4Vec
56  }};
57 
58  constexpr std::array<unsigned int, kEnd> N_AcceptedFeatures{{
59  n_cpf_accept, // kChargedCandidates
60  n_npf_accept, // kNeutralCandidates
61  n_sv_accept, // kVertices
62  n_cpf_accept, // kChargedCandidates4Vec
63  n_npf_accept, // kNeutralCandidates4Vec
64  n_sv_accept, // kVertices4Vec
65  }};
66 
67 } // namespace parT
68 
69 #endif
constexpr std::array< unsigned int, kEnd > N_AcceptedFeatures
constexpr std::array< unsigned int, kEnd > N_InputFeatures
constexpr unsigned n_features_cpf
constexpr unsigned n_neighbor
constexpr unsigned n_features_global
constexpr unsigned n_sv_accept
constexpr unsigned n_sv
constexpr unsigned n_npf_accept
constexpr unsigned n_features_sv
constexpr unsigned n_features_npf
constexpr unsigned n_features_neighbor
constexpr unsigned n_features_global
Definition: tensor_configs.h:7
constexpr unsigned n_features_seed
constexpr unsigned n_cpf
Definition: tensor_configs.h:9
constexpr unsigned n_cpf_accept
constexpr unsigned n_seed
constexpr unsigned n_npf