#include <imath.h>
Public Member Functions | |
void | add_cut (VarBase *cut, const bool call_set_parent_flag=true) |
template<class... Args> | |
void | add_cuts (VarBase *cut, Args... args) |
void | add_cuts (VarBase *cut) |
void | calculate_step () |
bool | passes () |
void | print (std::ofstream &fs, Verilog, int l1=0, int l2=0, int l3=0) override |
void | print (std::ofstream &fs, HLS, int l1=0, int l2=0, int l3=0) override |
template<class... Args> | |
VarFlag (imathGlobals *globals, std::string name, VarBase *cut, Args... args) | |
Public Member Functions inherited from trklet::VarBase | |
void | add_cut (VarCut *cut, const bool call_set_cut_var=true) |
void | add_delay (int i) |
void | add_latency (unsigned int l) |
void | analyze () |
bool | calculate (int debug_level) |
bool | calculate () |
VarBase * | cut_var () |
std::string | dump () |
void | dump_msg () |
double | fval () const |
bool | has_delay (int i) |
void | inputs (std::vector< VarBase *> *vd) |
long int | ival () const |
double | K () const |
std::map< std::string, int > | Kmap () const |
std::string | kstring () const |
int | latency () const |
virtual void | local_calculate () |
bool | local_passes () const |
void | makeready () |
double | maxval () const |
double | minval () const |
std::string | name () const |
int | nbits () const |
std::string | op () const |
VarBase * | p1 () const |
VarBase * | p2 () const |
VarBase * | p3 () const |
void | passes (std::map< const VarBase *, std::vector< bool > > &passes, const std::map< const VarBase *, std::vector< bool > > *const previous_passes=nullptr) const |
int | pipe_counter () |
std::string | pipe_delays (const int step) |
void | pipe_increment () |
void | print_all (std::ofstream &fs, Verilog) |
void | print_all (std::ofstream &fs, HLS) |
void | print_cuts (std::map< const VarBase *, std::set< std::string > > &cut_strings, const int step, Verilog, const std::map< const VarBase *, std::set< std::string > > *const previous_cut_strings=nullptr) const |
void | print_cuts (std::map< const VarBase *, std::set< std::string > > &cut_strings, const int step, HLS, const std::map< const VarBase *, std::set< std::string > > *const previous_cut_strings=nullptr) const |
void | print_step (int step, std::ofstream &fs, Verilog) |
void | print_step (int step, std::ofstream &fs, HLS) |
void | print_truncation (std::string &t, const std::string &o1, const int ps, Verilog) const |
void | print_truncation (std::string &t, const std::string &o1, const int ps, HLS) const |
double | range () const |
void | reset () |
int | shift () const |
int | step () const |
VarBase (imathGlobals *globals, std::string name, VarBase *p1, VarBase *p2, VarBase *p3, int l) | |
virtual | ~VarBase () |
Additional Inherited Members | |
Static Public Member Functions inherited from trklet::VarBase | |
static void | design_print (const std::vector< VarBase *> &v, std::ofstream &fs, Verilog) |
static void | design_print (const std::vector< VarBase *> &v, std::ofstream &fs, HLS) |
static void | hls_print (const std::vector< VarBase *> &v, std::ofstream &fs) |
static std::string | itos (int i) |
static std::string | pipe_delay (VarBase *v, int nbits, int delay) |
static std::string | pipe_delay_wire (VarBase *v, std::string name_delayed, int nbits, int delay) |
static void | verilog_print (const std::vector< VarBase *> &v, std::ofstream &fs) |
Static Public Attributes inherited from trklet::VarBase | |
static struct trklet::VarBase::HLS | hls |
static struct trklet::VarBase::Verilog | verilog |
Protected Attributes inherited from trklet::VarBase | |
VarBase * | cut_var_ |
std::vector< VarBase * > | cuts_ |
double | fval_ |
imathGlobals * | globals_ |
long int | ival_ |
double | K_ |
std::map< std::string, int > | Kmap_ |
int | latency_ |
double | maxval_ |
double | minval_ |
std::string | name_ |
int | nbits_ |
std::string | op_ |
VarBase * | p1_ |
VarBase * | p2_ |
VarBase * | p3_ |
int | pipe_counter_ |
std::vector< int > | pipe_delays_ |
bool | readytoanalyze_ |
bool | readytoprint_ |
int | step_ |
bool | usedasinput_ |
double | val_ |
|
inline |
Definition at line 1099 of file imath.h.
References add_cuts(), writedatasetfile::args, PA_MinBiasSkim_cff::cut, trklet::VarBase::nbits_, and trklet::VarBase::op_.
void VarFlag::add_cut | ( | VarBase * | cut, |
const bool | call_set_parent_flag = true |
||
) |
Definition at line 373 of file imath.cc.
References calculate_step(), PA_MinBiasSkim_cff::cut, trklet::VarBase::cuts_, and trklet::VarCut::set_parent_flag().
Referenced by add_cuts(), trklet::IMATH_TrackletCalculator::IMATH_TrackletCalculator(), trklet::IMATH_TrackletCalculatorDisk::IMATH_TrackletCalculatorDisk(), trklet::IMATH_TrackletCalculatorOverlap::IMATH_TrackletCalculatorOverlap(), and trklet::VarCut::set_parent_flag().
|
inline |
Definition at line 1107 of file imath.h.
References add_cut(), writedatasetfile::args, and PA_MinBiasSkim_cff::cut.
Referenced by VarFlag().
|
inline |
Definition at line 1112 of file imath.h.
References add_cut(), and PA_MinBiasSkim_cff::cut.
void VarFlag::calculate_step | ( | ) |
Definition at line 81 of file imath_calculate.cc.
References PA_MinBiasSkim_cff::cut, trklet::VarBase::cuts_, and trklet::VarBase::step_.
Referenced by add_cut(), and trklet::VarCut::set_cut_var().
bool VarFlag::passes | ( | ) |
Definition at line 395 of file imath.cc.
References PA_MinBiasSkim_cff::cut, trklet::VarBase::cut_var(), trklet::VarBase::cuts_, trklet::VarBase::globals_, trklet::VarBase::local_passes(), trklet::VarCut::local_passes(), trklet::VarBase::name_, and trklet::imathGlobals::printCutInfo_.
|
overridevirtual |
Reimplemented from trklet::VarBase.
Definition at line 354 of file imath_Verilog.cc.
References cms::cuda::assert(), PA_MinBiasSkim_cff::cut, trklet::VarBase::cut_var(), trklet::VarBase::cuts_, compareTotals::fs, trklet::VarBase::name_, trklet::VarCut::print(), mps_merge::separator, trklet::VarBase::step_, AlCaHLTBitMon_QueryRunRegistry::string, and trklet::VarBase::verilog.
|
overridevirtual |
Reimplemented from trklet::VarBase.
Definition at line 284 of file imath_HLS.cc.
References cms::cuda::assert(), PA_MinBiasSkim_cff::cut, trklet::VarBase::cut_var(), trklet::VarBase::cuts_, compareTotals::fs, trklet::VarBase::hls, trklet::VarBase::name_, trklet::VarCut::print(), mps_merge::separator, trklet::VarBase::step_, and AlCaHLTBitMon_QueryRunRegistry::string.