Public Member Functions | Protected Attributes

fastjet::CompositeJetStructure Class Reference
[FastJet tools]

The structure for a jet made of pieces. More...

#include <CompositeJetStructure.hh>

Inheritance diagram for fastjet::CompositeJetStructure:
Inheritance graph
[legend]
Collaboration diagram for fastjet::CompositeJetStructure:
Collaboration graph
[legend]

List of all members.

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< PseudoJetconstituents (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< PseudoJetpieces (const PseudoJet &jet) const
 returns the pieces

Protected Attributes

std::vector< PseudoJet_pieces
 the pieces building the jet

Detailed Description

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.


Member Function Documentation

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;


The documentation for this class was generated from the following files: