hep.physics.jet
Class AbstractJetFinder
- java.lang.Object
-
- hep.physics.jet.AbstractJetFinder
-
- All Implemented Interfaces:
- JetFinder
- Direct Known Subclasses:
- DurhamJetFinder, GenevaJetFinder, JadeE0JetFinder, JadeEJetFinder, JadeJetFinder, JadeP0JetFinder, JadePJetFinder
public abstract class AbstractJetFinder extends java.lang.Object implements JetFinder
Base class for jet finders
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intfewestTracks()Find the jet with the fewest particlesdoublegetYCut()Obtain the current ycutHepLorentzVectorjet(int index)calculate 4 vector sum for a jetintnjets()The number of jets foundintnParticlesPerJet(int index)Find out many particles are in a particular jetjava.util.ListparticlesInJet(int index)Find out which particles are in a paricular jetvoidsetAssumedMassFor3Vectors(double mass)Set the mass to use when converting 3-vectors to 4-vectors This is a static method so the mass applies to all instances of AbstractJetFinder.voidsetEvent(java.util.Collection data)Call this to input a new event to the jet finder.voidsetEvent(java.util.Collection data, Predicate cut)Call this to input a new event to the jet finder.voidsetYCut(double ycut)Set the YCut value.
-
-
-
Method Detail
-
njets
public int njets()
Description copied from interface:JetFinderThe number of jets found
-
jet
public HepLorentzVector jet(int index)
Description copied from interface:JetFindercalculate 4 vector sum for a jet
-
particlesInJet
public java.util.List particlesInJet(int index)
Description copied from interface:JetFinderFind out which particles are in a paricular jet- Specified by:
particlesInJetin interfaceJetFinder- Parameters:
index- The index of the jet of interest- Returns:
- An enumeration of the particles within the jet
-
nParticlesPerJet
public int nParticlesPerJet(int index)
Description copied from interface:JetFinderFind out many particles are in a particular jet- Specified by:
nParticlesPerJetin interfaceJetFinder- Parameters:
index- The index of the jet of interest- Returns:
- The number of particles
-
fewestTracks
public int fewestTracks()
Description copied from interface:JetFinderFind the jet with the fewest particles- Specified by:
fewestTracksin interfaceJetFinder- Returns:
- Returns the number of tracks in the jet with the fewest tracks
-
getYCut
public double getYCut()
Obtain the current ycut- Returns:
- The current value of ycut
-
setYCut
public void setYCut(double ycut)
Set the YCut value. If the new value for ycut is not the same as the old ycut the jet finding will be rerun.- Parameters:
ycut- the new value to be set for ycut
-
setEvent
public void setEvent(java.util.Collection data)
Call this to input a new event to the jet finder.
-
setAssumedMassFor3Vectors
public void setAssumedMassFor3Vectors(double mass)
Set the mass to use when converting 3-vectors to 4-vectors This is a static method so the mass applies to all instances of AbstractJetFinder. The default is 0.- Parameters:
mass- The new value to use
-
setEvent
public void setEvent(java.util.Collection data, Predicate cut)Call this to input a new event to the jet finder. Only elements of the enumeration which are accepted by the predicate will be used for jet finding.
-
-
DMelt 3.0 © DataMelt by jWork.ORG