|
FastJet 3.0alpha3
|
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, const JetDefinition::Recombiner *recombiner=0) | |
| ctor with initialisation | |
| virtual | ~CompositeJetStructure () |
| default dtor | |
| virtual std::string | description () const |
| description | |
| virtual bool | has_constituents () const |
| true unless the jet has no pieces (see also the description of constituents() below) | |
| virtual std::vector< PseudoJet > | constituents (const PseudoJet &jet) const |
| return the constituents (i.e. | |
| virtual bool | has_pieces (const PseudoJet &jet) const |
| true if it has pieces (always the case) | |
| virtual std::vector< PseudoJet > | pieces (const PseudoJet &jet) const |
| returns the pieces | |
| virtual bool | has_area () const |
| check if it has a well-defined area | |
| virtual double | area (const PseudoJet &reference) const |
| return the jet (scalar) area. | |
| virtual double | area_error (const PseudoJet &reference) const |
| return the error (uncertainty) associated with the determination of the area of this jet. | |
| virtual PseudoJet | area_4vector (const PseudoJet &reference) const |
| return the jet 4-vector area. | |
| virtual bool | is_pure_ghost (const PseudoJet &reference) const |
| true if this jet is made exclusively of ghosts. | |
| void | set_area_information (PseudoJet *area_4vector_ptr) |
Protected Attributes | |
| std::vector< PseudoJet > | _pieces |
| the pieces building the jet | |
| PseudoJet * | _area_4vector_ptr |
| pointer to the 4-vector jet area | |
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 49 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, the piece itself is considered as a constituent Note that as a consequence, a composite jet with no pieces will have an empty vector as constituents
Reimplemented from fastjet::PseudoJetStructureBase.
Definition at line 97 of file CompositeJetStructure.cc.
References _pieces, and has_constituents().
{
// recurse into the pieces that ahve constituents, just append the others
// the following code automatically throws an Error if any of the
// pieces has no constituents
vector<PseudoJet> all_constituents;
for (unsigned i = 0; i < _pieces.size(); i++) {
if (_pieces[i].has_constituents()){
vector<PseudoJet> constits = _pieces[i].constituents();
copy(constits.begin(), constits.end(), back_inserter(all_constituents));
} else {
all_constituents.push_back(_pieces[i]);
}
}
return all_constituents;
}
| double fastjet::CompositeJetStructure::area_error | ( | const PseudoJet & | reference | ) | const [virtual] |
return the error (uncertainty) associated with the determination of the area of this jet.
Be conservative: return the sum of the errors
Reimplemented from fastjet::PseudoJetStructureBase.
Definition at line 142 of file CompositeJetStructure.cc.
References _pieces, area(), and has_area().
| bool fastjet::CompositeJetStructure::is_pure_ghost | ( | const PseudoJet & | reference | ) | const [virtual] |
true if this jet is made exclusively of ghosts.
In this case, it will be true if all pieces are pure ghost
Reimplemented from fastjet::PseudoJetStructureBase.
Definition at line 164 of file CompositeJetStructure.cc.
References _pieces.
{
for (unsigned i = 0; i < _pieces.size(); i++)
if (! _pieces[i].is_pure_ghost()) return false;
return true;
}
1.7.4