The structure for a jet made of pieces. More...
#include <CompositeJetStructure.hh>
Public Member Functions | |
CompositeJetStructure () | |
default ctor | |
CompositeJetStructure (const std::vector< PseudoJet > &initial_pieces) | |
ctor with initialisation | |
virtual | ~CompositeJetStructure () |
default dtor | |
virtual std::string | description () const |
description | |
virtual bool | has_constituents () const |
true if the jet has constituents (i.e. all pieces do) | |
virtual std::vector< PseudoJet > | constituents (const PseudoJet &jet) const |
return the constituents (i.e. | |
virtual bool | has_pieces () const |
true if it has pieces (always the case) | |
virtual std::vector< PseudoJet > | pieces (const PseudoJet &jet) const |
returns the pieces | |
Protected Attributes | |
std::vector< PseudoJet > | _pieces |
the pieces building the jet |
The structure for a jet made of pieces.
This stores the vector of the pieces that make the jet and provide the methods to access them
Definition at line 46 of file CompositeJetStructure.hh.
std::vector< PseudoJet > fastjet::CompositeJetStructure::constituents | ( | const PseudoJet & | jet | ) | const [virtual] |
return the constituents (i.e.
the union of the constituents of each piece)
If any of the pieces has no constituent, an error is thrown
Reimplemented from fastjet::PseudoJetStructureBase.
Definition at line 62 of file CompositeJetStructure.cc.
References _pieces.
{ // the following code automatically throws an Error if any of the // pieces has no constituents vector<PseudoJet> all_constituents = _pieces[0].constituents(); for (unsigned i = 1; i < _pieces.size(); i++) { vector<PseudoJet> constits = _pieces[i].constituents(); copy(constits.begin(), constits.end(), back_inserter(all_constituents)); } return all_constituents;