1 #ifndef CROMBIE_EVENTDUMP_H 2 #define CROMBIE_EVENTDUMP_H 30 auto& track_cut = loaded.
result(cut);
31 std::vector<double*> results;
32 for (
auto& expr : exprs)
33 results.push_back(&(loaded.result(expr)));
35 std::vector<double> eventout;
37 while (loaded.next()) {
40 for (
auto* val : results)
41 eventout.push_back(*val);
43 output.push_back(eventout);
53 for (
auto& outs : outputs) {
55 for (
auto& single : outs.second)
56 output.insert(output.end(), single.begin(), single.end());
60 sort(output.begin(), output.end(),
61 [] (
auto& a,
auto& b) {
62 for (
unsigned i = 0; i < a.size(); ++i) {