ktjet is hosted by Hepforge, IPPP Durham
next up previous
Next: Using KtJet Up: KtJet Previous: Subjet analysis

Advanced features of the KtLorentzVector class

The KtLorentzVector class has several features which are used internally by KtJet, but which may be useful for the user. A KtLorentzVector can be constructed in two different ways. When instantiated using the constructor KtLorentzVector(const HepLorentzVector &) (or KtLorentzVector(float Px,float Py,float Pz,float E)), the KtLorentzVector is simply a copy of a single HepLorentzVector with an internal index added, i.e. it has no constituents. This index is then used, for example, in the getJet method, to ascertain to which final state jet a particular input KtLorentzVector belongs. There are two methods which compare the index of two KtLorentzVectors:
bool operator== (const KtLorentzVector &) const;
bool operator!= (const KtLorentzVector &) const;
These would be useful if, for example, one wanted to ascertain whether the highest $p_t$ particle in a particular jet was a given input KtLorentzVector. A KtLorentzVector may also be instantiated using the constructor

KtLorentzVector();

The KtLorentzVector can then be built up by adding other KtLorentzVectors to it using either the assignment operator += or the add method described in section 3.2. The KtLorentzVector will then also carry a list of pointers to the constituent KtLorentzVectors. To find out whether a KtLorentzVector has constituents, use the method

bool isJet() const;

which will be true for a KtLorentzVector with a constituent list.

next up previous
Next: Using KtJet Up: KtJet Previous: Subjet analysis
Jonathan Couchman 2002-10-02