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;
23 return std::binary_search(vars_.begin(), vars_.end(), varName,
VarComparer());
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 for (
const auto&
var : vars_) {
61 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_]
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