8 #ifndef L1Trigger_L1TMuonOverlapPhase2_LutNetworkFixedPointCommon_h 9 #define L1Trigger_L1TMuonOverlapPhase2_LutNetworkFixedPointCommon_h 17 #include <boost/property_tree/ptree.hpp> 21 template <
int W,
int I>
23 static_assert(
I < 64,
"this max_ap_ufixed works only for I < 64");
28 template <
int W,
int I>
30 static_assert(
I < 64,
"this max_ap_ufixed works only for I < 64");
35 #define PUT_VAR(tree, keyPath, var) tree.put((keyPath) + "." + #var, (var)); 37 #define CHECK_VAR(tree, keyPath, var) \ 38 if ((var) != tree.get<int>((keyPath) + "." + #var)) \ 39 throw std::runtime_error((keyPath) + "." + #var + " has different value in the file then given"); 48 virtual void run(std::vector<float>&
inputs,
float noHitVal, std::vector<double>& nnResult) = 0;
virtual int getCalibratedHwPt()=0
const ap_fixed< W, I > max_ap_fixed()
virtual void save(const std::string &filename)=0
virtual void run(std::vector< float > &inputs, float noHitVal, std::vector< double > &nnResult)=0
virtual ~LutNetworkFixedPointRegressionBase()
const std::complex< double > I
const ap_ufixed< W, I > max_ap_ufixed()
virtual void load(const std::string &filename)=0