fastjet 3.0alpha2
Public Member Functions | Protected Attributes

CompositeJetStructure Class Reference

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

#include <CompositeJetStructure.hh>

Inheritance diagram for CompositeJetStructure:
Inheritance graph
[legend]
Collaboration diagram for 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< 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

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 > 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 PseudoJetStructureBase.

Definition at line 63 of file CompositeJetStructure.cc.

                                                                                  {
  // 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: