1 #ifndef RecoBTag_ONNXRuntime_tensor_fillers_h 2 #define RecoBTag_ONNXRuntime_tensor_fillers_h 33 template <
class parT_features>
36 const std::vector<parT_features>&
features,
37 const unsigned int max_n,
41 for (std::size_t
n = 0;
n < max_n;
n++) {
46 for (
unsigned int i = 0;
i <
inputs.size();
i++) {
56 template <
class parT_features>
59 const std::vector<parT_features>&
features,
60 const unsigned int target_n) {
69 vdata.insert(vdata.end(), (target_n -
n) * n_features, 0);
void npf_tensor_filler(float *&ptr, const btagbtvdeep::NeutralCandidateFeatures &n_pf_features)
constexpr std::array< unsigned int, kEnd > N_AcceptedFeatures
void cpf_tensor_filler(float *&ptr, const btagbtvdeep::ChargedCandidateFeatures &c_pf_features)
constexpr std::array< unsigned int, kEnd > N_InputFeatures
std::vector< std::vector< float > > FloatArrays
void sv_tensor_filler(float *&ptr, const btagbtvdeep::SecondaryVertexFeatures &sv_features)
std::vector< float > features(const reco::PreId &ecal, const reco::PreId &hcal, double rho, const reco::BeamSpot &spot, noZS::EcalClusterLazyTools &ecalTools)
void neighbourTrack_tensor_filler(float *&ptr, const btagbtvdeep::TrackPairFeatures &neighbourTrack_features)
void jet_tensor_filler(float *&ptr, const btagbtvdeep::DeepFlavourFeatures &features)
void parT_tensor_filler(cms::Ort::FloatArrays &data, const parT::InputFeatures ifeature, const std::vector< parT_features > &features, const unsigned int max_n, const float *&start, unsigned offset)
char data[epos_bytes_allocation]
void seedTrack_tensor_filler(float *&ptr, const btagbtvdeep::SeedingTrackFeatures &seed_features)
std::vector< float > inputs_parT(const btagbtvdeep::ChargedCandidateFeatures &c_pf_features, parT::InputFeatures ifeature)
void jet4vec_tensor_filler(float *&ptr, const btagbtvdeep::JetFeatures &jet_features)