Public Member Functions | List of all members
order_chns Struct Reference

Public Member Functions

bool operator() (const std::string &a, const std::string &b)
 

Detailed Description

Definition at line 38 of file preselection_cutflow.C.

Member Function Documentation

bool order_chns::operator() ( const std::string a,
const std::string b 
)
inline

Definition at line 39 of file preselection_cutflow.C.

References a, b, nuebarccinc::chns_style, analysePickle::hist, hists, MECModelEnuComparisons::i, nuebarccinc::kNumChns, label, nuebarccinc::Style::latex, Plot(), string, and submit_hadd::u.

40  {
41  std::vector<std::string> styles;
42  for(auto i = 0u; i < kNumChns; i++) styles.push_back(chns_style[i].latex);
43 
44  auto aidx = std::find(styles.begin(), styles.end(), a);
45  auto bidx = std::find(styles.begin(), styles.end(), b);
46  return aidx < bidx;
47  }
const int kNumChns
const double a
const Style chns_style[kNumChns]
const hit & b
Definition: hits.cxx:21
Definition: styles.py:1

The documentation for this struct was generated from the following file: