FreeHEP API
Version current

hep.physics.jet
Class FixNumberOfJetsFinder

java.lang.Object
  extended byhep.physics.jet.FixNumberOfJetsFinder
All Implemented Interfaces:
JetFinder

public class FixNumberOfJetsFinder
extends Object
implements JetFinder

Source Code:
FixNumberOfJetsFinder.java

Nested Class Summary
static class FixNumberOfJetsFinder.NumJetsNotFoundException
           
 
Constructor Summary
FixNumberOfJetsFinder()
          Default constructor, sets up JadeEJetFinder.
FixNumberOfJetsFinder(AbstractJetFinder jetFinder)
          Constructor to specify a specfic JetFinder to use.
FixNumberOfJetsFinder(int nJets)
          Constructor specifying number of requested jets, sets up JadeEJetFinder as default.
FixNumberOfJetsFinder(int nJets, AbstractJetFinder jetFinder)
          Constructor to specify rquested number of jets and a specfic JetFinder to use.
 
Method Summary
 int fewestTracks()
          Jet with the fewest tracks
 double getYCut()
          Resulting ycut value.
 HepLorentzVector jet(int index)
          Four vector of a specific jet.
 int njets()
          Actual number jets formed.
 int nParticlesPerJet(int index)
          Number of particles in a specific jet.
 List particlesInJet(int index)
          Particles in a specific jet.
 void setEvent(Collection data)
          Give event information to JetFinder
 void setEvent(Collection data, Predicate cut)
          Give event information to JetFinder
protected  void setJetFinder(AbstractJetFinder jetFinder)
          Specify the underlying JetFinder you want to use
 void setNJets(int nJets)
          Set number of jets requested to be formed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixNumberOfJetsFinder

public FixNumberOfJetsFinder()
Default constructor, sets up JadeEJetFinder.


FixNumberOfJetsFinder

public FixNumberOfJetsFinder(int nJets)
Constructor specifying number of requested jets, sets up JadeEJetFinder as default.

Parameters:
nJets - number of jets to be formed

FixNumberOfJetsFinder

public FixNumberOfJetsFinder(AbstractJetFinder jetFinder)
Constructor to specify a specfic JetFinder to use.

Parameters:
jetFinder - JetFinder to use
See Also:
AbstractJetFinder

FixNumberOfJetsFinder

public FixNumberOfJetsFinder(int nJets,
                             AbstractJetFinder jetFinder)
Constructor to specify rquested number of jets and a specfic JetFinder to use.

Parameters:
nJets - number of jets to be formed
jetFinder - JetFinder to use
See Also:
AbstractJetFinder
Method Detail

setJetFinder

protected void setJetFinder(AbstractJetFinder jetFinder)
Specify the underlying JetFinder you want to use

Parameters:
jetFinder - JetFinder to use
See Also:
AbstractJetFinder

setNJets

public void setNJets(int nJets)
Set number of jets requested to be formed.

Parameters:
nJets - number of jets to be formed

njets

public int njets()
Actual number jets formed. Should be the same as the number of jets requested, unless a problem occured. (E.g. too little input objects.)

Specified by:
njets in interface JetFinder
Returns:
number of jets
See Also:
JetFinder.njets()

getYCut

public double getYCut()
Resulting ycut value.

Returns:
final ycut

jet

public HepLorentzVector jet(int index)
Four vector of a specific jet.

Specified by:
jet in interface JetFinder
Parameters:
index - The index of the jet of interest
Returns:
jet Lorentz vector for the entire jet
See Also:
JetFinder.jet(int)
Parameter:
index index of jet

particlesInJet

public List particlesInJet(int index)
Particles in a specific jet.

Specified by:
particlesInJet in interface JetFinder
Parameters:
index - The index of the jet of interest
Returns:
enumeration of particles
See Also:
JetFinder.particlesInJet(int)
Parameter:
index index of jet

nParticlesPerJet

public int nParticlesPerJet(int index)
Number of particles in a specific jet.

Specified by:
nParticlesPerJet in interface JetFinder
Parameters:
index - The index of the jet of interest
Returns:
number of particles
See Also:
JetFinder#NParticlesPerJet
Parameter:
index index of jet

fewestTracks

public int fewestTracks()
Jet with the fewest tracks

Specified by:
fewestTracks in interface JetFinder
Returns:
index of jet with fewest tracks
See Also:
JetFinder.fewestTracks()

setEvent

public void setEvent(Collection data)
Give event information to JetFinder

Specified by:
setEvent in interface JetFinder
See Also:
JetFinder#setEvent(Enumeration)

setEvent

public void setEvent(Collection data,
                     Predicate cut)
Give event information to JetFinder

Specified by:
setEvent in interface JetFinder
Parameters:
cut - predicate to impose a cut on the particles in event
See Also:
JetFinder#setEvent(Enumeration, Predicate)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.