9 const tensorflow::Session *session,
30 if (
fPt_.get()[i0] == 0) {
31 for (
int i1 = 0;
i1 < 5;
i1++)
43 tensorflow::Tensor
input(tensorflow::DT_FLOAT,
48 std::vector<tensorflow::Tensor>
outputs;
50 return outputs[0].matrix<
float>()(0, 0);
61 for (
unsigned int i0 = 0; i0 < iParts.size(); i0++) {
64 fPt_.get()[i0] = iParts[i0].pt();
65 fEta_.get()[i0] = iSeed.
eta() - iParts[i0].eta();
67 fId_.get()[i0] = iParts[i0].id();
const tensorflow::Session * session_
unique_ptr< float[]> fPhi_
static constexpr unsigned int n_particles_max
std::vector< l1t::PFCandidate > PFCandidateCollection
TauNNId(const std::string &iInput, const tensorflow::Session *session, const std::string &iWeightFile, int iNParticles)
static std::string const input
std::vector< float > NNvectorVar_
void run(Session *session, const NamedTensorList &inputs, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs, const thread::ThreadPoolOptions &threadPoolOptions)
unique_ptr< float[]> fPt_
double phi() const final
momentum azimuthal angle
float compute(const l1t::PFCandidate &iSeed, l1t::PFCandidateCollection &iParts)
unique_ptr< float[]> fEta_
double eta() const final
momentum pseudorapidity