Go to the documentation of this file.
28 if (
fPt_.get()[i0] == 0) {
29 for (
int i1 = 0;
i1 < 5;
i1++)
41 tensorflow::Tensor
input(tensorflow::DT_FLOAT,
46 std::vector<tensorflow::Tensor>
outputs;
48 return outputs[0].matrix<
float>()(0, 0);
59 for (
unsigned int i0 = 0; i0 < iParts.size(); i0++) {
62 fPt_.get()[i0] = iParts[i0].pt();
63 fEta_.get()[i0] = iSeed.
eta() - iParts[i0].eta();
65 fId_.get()[i0] = iParts[i0].id();
Session * createSession(SessionOptions &sessionOptions)
static const std::string input
unique_ptr< float[]> fEta_
bool closeSession(Session *&session)
unique_ptr< float[]> fPhi_
double eta() const final
momentum pseudorapidity
TauNNId(const std::string &iInput, const TauNNTFCache *cache, const std::string &iWeightFile, int iNParticles)
static constexpr unsigned int n_particles_max
unique_ptr< float[]> fId_
std::vector< l1t::PFCandidate > PFCandidateCollection
tensorflow::Session * session_
double phi() const final
momentum azimuthal angle
void run(Session *session, const NamedTensorList &inputs, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs, const thread::ThreadPoolOptions &threadPoolOptions)
float compute(const l1t::PFCandidate &iSeed, l1t::PFCandidateCollection &iParts)
unique_ptr< float[]> fPt_
std::vector< float > NNvectorVar_