29 #include <fastjet/CompositeJetStructure.hh>
31 FASTJET_BEGIN_NAMESPACE
44 CompositeJetStructure::CompositeJetStructure(
const std::vector<PseudoJet> & initial_pieces,
46 : _pieces(initial_pieces){
50 bool has_area_local =
true;
51 for (vector<PseudoJet>::const_iterator pit=
_pieces.begin(); pit!=
_pieces.end(); pit++){
52 if (!pit->has_area()){
53 has_area_local =
false;
60 for (
unsigned int i=0; i<
_pieces.size(); i++){
76 string str =
"Composite PseudoJet";
99 vector<PseudoJet> all_constituents;
100 for (
unsigned i = 0; i <
_pieces.size(); i++) {
102 vector<PseudoJet> constits =
_pieces[i].constituents();
103 copy(constits.begin(), constits.end(), back_inserter(all_constituents));
105 all_constituents.push_back(
_pieces[i]);
109 return all_constituents;
127 throw Error(
"One or more of this composite jet's pieces does not support area");
130 for (
unsigned i = 0; i <
_pieces.size(); i++)
142 throw Error(
"One or more of this composite jet's pieces does not support area");
145 for (
unsigned i = 0; i <
_pieces.size(); i++)
154 throw Error(
"One or more of this composite jet's pieces does not support area");
163 for (
unsigned i = 0; i <
_pieces.size(); i++)
171 FASTJET_END_NAMESPACE