FCCAnalyses
Loading...
Searching...
No Matches
FCCAnalyses::WeaverUtils Namespace Reference

Functions

ROOT::VecOps::RVec< ROOT::VecOps::RVec< float > > compute_weights (const ROOT::VecOps::RVec< ROOT::VecOps::RVec< ROOT::VecOps::RVec< float > > > &)
 Compute all weights given a collection of input variables.
 
void setup_weaver (const std::string &, const std::string &, const ROOT::VecOps::RVec< std::string > &)
 Setup the ONNXRuntime instance using Weaver-provided parameters.
 
template<typename... Args>
ROOT::VecOps::RVec< ROOT::VecOps::RVec< float > > get_weights (Args &&... args)
 Compute all weights given an unspecified collection of input variables.
 
ROOT::VecOps::RVec< float > get_weight (const ROOT::VecOps::RVec< ROOT::VecOps::RVec< float > > &, int)
 Get one specific weight previously computed.
 
void setup_weaver (const std::string &onnx_filename, const std::string &json_filename, const rv::RVec< std::string > &vars)
 

Function Documentation

◆ compute_weights()

ROOT::VecOps::RVec< ROOT::VecOps::RVec< float > > FCCAnalyses::WeaverUtils::compute_weights ( const ROOT::VecOps::RVec< ROOT::VecOps::RVec< ROOT::VecOps::RVec< float > > > & vars)

Compute all weights given a collection of input variables.

Note
This helper should not be used directly in RDataFrame examples

◆ get_weight()

ROOT::VecOps::RVec< float > FCCAnalyses::WeaverUtils::get_weight ( const ROOT::VecOps::RVec< ROOT::VecOps::RVec< float > > & objects_weights,
int weight )

Get one specific weight previously computed.

◆ get_weights()

template<typename... Args>
ROOT::VecOps::RVec< ROOT::VecOps::RVec< float > > FCCAnalyses::WeaverUtils::get_weights ( Args &&... args)

Compute all weights given an unspecified collection of input variables.

◆ setup_weaver() [1/2]

void FCCAnalyses::WeaverUtils::setup_weaver ( const std::string & ,
const std::string & ,
const ROOT::VecOps::RVec< std::string > &  )

Setup the ONNXRuntime instance using Weaver-provided parameters.

◆ setup_weaver() [2/2]

void FCCAnalyses::WeaverUtils::setup_weaver ( const std::string & onnx_filename,
const std::string & json_filename,
const rv::RVec< std::string > & vars )