Skip to content

Commit 1e4931a

Browse files
committed
fix power/alg arguments
1 parent 6e36fc7 commit 1e4931a

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

cjetreconstruction/src/cjetreconstruction-finder.cc

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ int main(int argc, char *argv[]) {
7474
int trials = 1;
7575
string mystrategy = "Best";
7676
double power = -1.0;
77-
string alg = "";
77+
string alg = "AntiKt";
7878
string recombine = "";
7979
double R = 0.4;
8080
string dump_file = "";
@@ -85,8 +85,8 @@ int main(int argc, char *argv[]) {
8585
auto skip_events_option = opts.add<Value<int>>("", "skipevents", "Number of events to skip over (0 = none)", skip_events, &skip_events);
8686
auto trials_option = opts.add<Value<int>>("n", "trials", "Number of repeated trials", trials, &trials);
8787
auto strategy_option = opts.add<Value<string>>("s", "strategy", "Valid values are 'Best' (default), 'N2Plain', 'N2Tiled'", mystrategy, &mystrategy);
88-
auto power_option = opts.add<Value<double>>("p", "power", "Algorithm p value: -1=antikt, 0=cambridge_aachen, 1=inclusive kt; otherwise generalised Kt", power, &power);
89-
auto alg_option = opts.add<Value<string>>("A", "algorithm", "Algorithm: AntiKt CA Kt GenKt EEKt Durham (overrides power)", alg, &alg);
88+
auto power_option = opts.add<Value<double>>("p", "power", "Algorithm p value for generalised Kt algorithm, otherwise ignored", power, &power);
89+
auto alg_option = opts.add<Value<string>>("A", "algorithm", "Algorithm: AntiKt (default) CA Kt GenKt", alg, &alg);
9090
auto radius_option = opts.add<Value<double>>("R", "radius", "Algorithm R parameter", R, &R);
9191
auto recombine_option = opts.add<Value<string>>("", "recombine", "Recombination scheme for jet merging", recombine, &recombine);
9292
auto ptmin_option = opts.add<Value<double>>("", "ptmin", "pt cut for inclusive jets");
@@ -167,19 +167,6 @@ int main(int argc, char *argv[]) {
167167
std::cout << "Unknown algorithm type: " << alg << std::endl;
168168
exit(1);
169169
}
170-
} else {
171-
if (power == -1.0) {
172-
algorithm =
173-
jetreconstruction_JetAlgorithm::JETRECONSTRUCTION_JETALGORITHM_ANTIKT;
174-
} else if (power == 0.0) {
175-
algorithm =
176-
jetreconstruction_JetAlgorithm::JETRECONSTRUCTION_JETALGORITHM_CA;
177-
} else if (power == 1.0) {
178-
algorithm =
179-
jetreconstruction_JetAlgorithm::JETRECONSTRUCTION_JETALGORITHM_KT;
180-
//} else {
181-
// algorithm = fastjet::genkt_algorithm;
182-
}
183170
}
184171

185172
auto recombine_scheme = JETRECONCSTRUCTION_RECOMBINATIONSCHEME_ESCHEME;

0 commit comments

Comments
 (0)