Пример #1
0
void Base::Run(Output output)
{
    INFO(boca::Name(output));
    Initialize();
    //   analysis.PreRequisits<analysis.Tagger()::type>(analysis,run);
    FlagSwitch(output, [&](Output output_2) {
        switch (output_2) {
        case Output::fast : RunFast();
            break;
        case Output::normal : RunNormal();
            break;
        case Output::efficiency : RunFullEfficiency();
            break;
        case Output::significance : RunFullSignificance();
            break;
        case Output::plot : RunPlots();
            break;
        case Output::cut : RunCut();
            break;
        case Output::plot_hist : RunPlotHist();
            break;
            DEFAULT(boca::Name(output_2));
        }
    });
}
Пример #2
0
std::string Name(Orientation orientation)
{
    std::string name;
    FlagSwitch(orientation, [&](Orientation orientation_1) {
        switch (orientation_1) {
        case Orientation::none : name += " None"; break;
        case Orientation::center : name += " Center"; break;
        case Orientation::left : name += " Left"; break;
        case Orientation::right : name += " Right"; break;
        case Orientation::top : name += " Top"; break;
        case Orientation::bottom : name += " Bottom"; break;
        case Orientation::outside : name += " Outside"; break;
        default : name += std::to_string(to_int(orientation_1)); break;
        }
    });
    INFO(to_int(orientation), name);
    return name;
}
Пример #3
0
std::string Name(JetDetail jet_detail)
{
    std::string name;
    FlagSwitch(jet_detail, [&](JetDetail jet_detail) {
        switch (jet_detail) {
        case JetDetail::none : name += "None ";
            break;
        case JetDetail::plain : name += "Plain ";
            break;
        case JetDetail::isolation : name += "Isolation ";
            break;
        case JetDetail::structure : name += "Structure ";
            break;
            DEFAULT(to_int(jet_detail));
        }
    });
    return name;
}