CMS 3D CMS Logo

TauNNId.h
Go to the documentation of this file.
1 #ifndef L1TRIGGER_PHASE2L1PARTICLEFLOWS_TAUNNID_H
2 #define L1TRIGGER_PHASE2L1PARTICLEFLOWS_TAUNNID_H
3 
4 #include <string>
7 
8 class TauNNId {
9 public:
10  TauNNId(const std::string &iInput,
11  const tensorflow::Session *session,
12  const std::string &iWeightFile,
13  int iNParticles);
14  ~TauNNId(){};
15 
16  void setNNVectorVar();
17  float EvaluateNN();
18  float *NNVectorVar() { return NNvectorVar_.data(); }
19  float compute(const l1t::PFCandidate &iSeed, l1t::PFCandidateCollection &iParts);
20 
21 private:
22  const tensorflow::Session *session_;
23  std::vector<float> NNvectorVar_;
26  unique_ptr<float[]> fPt_;
27  unique_ptr<float[]> fEta_;
28  unique_ptr<float[]> fPhi_;
29  unique_ptr<float[]> fId_;
30 };
31 #endif
~TauNNId()
Definition: TauNNId.h:14
const tensorflow::Session * session_
Definition: TauNNId.h:22
unique_ptr< float[]> fPhi_
Definition: TauNNId.h:28
std::vector< l1t::PFCandidate > PFCandidateCollection
Definition: PFCandidate.h:86
TauNNId(const std::string &iInput, const tensorflow::Session *session, const std::string &iWeightFile, int iNParticles)
Definition: TauNNId.cc:8
int fNParticles_
Definition: TauNNId.h:25
unique_ptr< float[]> fId_
Definition: TauNNId.h:29
std::vector< float > NNvectorVar_
Definition: TauNNId.h:23
void setNNVectorVar()
Definition: TauNNId.cc:24
unique_ptr< float[]> fPt_
Definition: TauNNId.h:26
Definition: TauNNId.h:8
std::string fInput_
Definition: TauNNId.h:24
float EvaluateNN()
Definition: TauNNId.cc:42
float compute(const l1t::PFCandidate &iSeed, l1t::PFCandidateCollection &iParts)
Definition: TauNNId.cc:53
float * NNVectorVar()
Definition: TauNNId.h:18
unique_ptr< float[]> fEta_
Definition: TauNNId.h:27