9 :
TriggerObject(ecalCand), hasPixelMatch_(
false), superCluster_(ecalCand.superCluster()) {}
13 hasPixelMatch_ =
false;
14 for (
const auto&
seed : seeds_) {
15 if (!
seed->hitInfo().empty()) {
16 hasPixelMatch_ =
true;
28 auto varIt = std::equal_range(vars_.begin(), vars_.end(), varName,
VarComparer());
29 if (varIt.first != varIt.second)
30 return varIt.first->second;
31 else if (raiseExcept) {
33 ex <<
" error variable " << varName <<
" is not present, variables present are " << varNamesStr();
41 std::vector<std::string>
names;
42 names.reserve(vars_.size());
43 for (
const auto&
var : vars_) {
62 std::sort(vars_.begin(), vars_.end(), [](
auto& lhs,
auto& rhs) {
return lhs.first < rhs.first; });
void setVars(std::vector< std::pair< std::string, float >> vars)
constexpr char const * varNames[]
const std::string names[nVars_]
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE int binary_search(const unsigned int *data, unsigned int search_val, unsigned int ndata)
std::vector< std::string > varNames() const
bool hasVar(const std::string &varName) const
void setSeeds(reco::ElectronSeedRefVector seeds)
std::string varNamesStr() const
float var(const std::string &varName, bool raiseExcept=true) const