Skip to content

Instantly share code, notes, and snippets.

@lukasheinrich
Created October 2, 2017 19:44
Show Gist options
  • Save lukasheinrich/b531f81f8c1b98b1cc760d1a04c8dd0b to your computer and use it in GitHub Desktop.
Save lukasheinrich/b531f81f8c1b98b1cc760d1a04c8dd0b to your computer and use it in GitHub Desktop.
Jets bjets, recon_jets; //note: here you create 2 empty containers "bjets" and "recon_jets"
foreach(const Jet & jet, jets) { //loop over non-empty container jets (from the projection) assign to variable "jet"
if(jet.containsBottom()){
bjets.push_back(jet);}
else{
recon_jets.push_back(jet);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment