@@ -395,6 +395,7 @@ namespace genbb {
395
395
base_print_options popts;
396
396
popts.configure_from (options_);
397
397
std::ostringstream outs;
398
+ bool list_particles = options_.get <bool >(" list_particles" , true );
398
399
if (! popts.title .empty ()) {
399
400
outs << popts.indent << popts.title << std::endl;
400
401
}
@@ -422,29 +423,30 @@ namespace genbb {
422
423
outs << std::endl;
423
424
424
425
outs << popts.indent << tag << " Particles: [" << _particles_.size () << " ]" << std::endl;
425
-
426
- int particle_counter = 0 ;
427
- for (particles_col_type::const_iterator it = _particles_.begin ();
428
- it != _particles_.end ();
429
- it++) {
430
- std::ostringstream indent_oss;
431
- indent_oss << popts.indent << skip_tag;
432
- particles_col_type::const_iterator jt = it;
433
- jt++;
434
- outs << popts.indent << skip_tag;
435
- if (jt == _particles_.end ()) {
436
- outs << last_tag;
437
- indent_oss << last_skip_tag;
438
- } else {
439
- outs << tag;
440
- indent_oss << skip_tag;
426
+ if (list_particles) {
427
+ int particle_counter = 0 ;
428
+ for (particles_col_type::const_iterator it = _particles_.begin ();
429
+ it != _particles_.end ();
430
+ it++) {
431
+ std::ostringstream indent_oss;
432
+ indent_oss << popts.indent << skip_tag;
433
+ particles_col_type::const_iterator jt = it;
434
+ jt++;
435
+ outs << popts.indent << skip_tag;
436
+ if (jt == _particles_.end ()) {
437
+ outs << last_tag;
438
+ indent_oss << last_skip_tag;
439
+ } else {
440
+ outs << tag;
441
+ indent_oss << skip_tag;
442
+ }
443
+ outs << " Particle #" << particle_counter << " : " << std::endl;
444
+ boost::property_tree::ptree popts2;
445
+ popts2.put (" indent" , indent_oss.str ());
446
+ it->print_tree (outs, popts2);
447
+ // it->tree_dump(outs, "", indent_oss.str());
448
+ particle_counter++;
441
449
}
442
- outs << " Particle #" << particle_counter << " : " << std::endl;
443
- boost::property_tree::ptree popts2;
444
- popts2.put (" indent" , indent_oss.str ());
445
- it->print_tree (outs, popts2);
446
- // it->tree_dump(outs, "", indent_oss.str());
447
- particle_counter++;
448
450
}
449
451
outs << popts.indent << tag
450
452
<< " GENBB weight : " << get_genbb_weight ()
0 commit comments