Package cnuphys.lund
Class LundSupport
java.lang.Object
cnuphys.lund.LundSupport
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic intgeantToLund(int geantId) Convert a geant ID onto a Lund (PDG) id.get(double id) Finds an LundId object based on the given particle id.get(int id) Finds an LundId object based on the given particle id.get(int id, int charge) Finds an LundId object based on the given particle id.static LundIdgetCVTbased(int q) Obtain the LundID object for a cvt based particlestatic LundIdObtain the LundID object for an electronstatic LundIdgetHitbased(int q) Obtain the LundID object for a hit based particlestatic LundSupportpublic access to the singletonGet the list of lundIdsstatic LundIdObtain the LundID object for a positronstatic LundIdObtain the LundID object for a protonstatic LundIdgetTrackbased(int q) Obtain the LundID object for a track based particlestatic voidMain program for testingstatic intmassAndChargeToLundId(double mass, int charge) Returns the Lund ID of a particle given the mass and charge.static voidSet the style for a given lund IdtoString()Get a string representing a table of Ids.
- 
Field Details- 
unknownPlusUnknown positive lepton
- 
unknownMinusUnknown negative lepton
- 
unknownNeutralUnknown neutral "lepton"
 
- 
- 
Method Details- 
getInstancepublic access to the singleton- Returns:
- the singleton object.
 
- 
toStringGet a string representing a table of Ids.
- 
getTrackbasedObtain the LundID object for a track based particle- Returns:
- the LundID object for an geantino
 
- 
getHitbasedObtain the LundID object for a hit based particle- Returns:
- the LundID object for a hit based particle
 
- 
getCVTbasedObtain the LundID object for a cvt based particle- Returns:
- the LundID object for a hit based particle
 
- 
getElectronObtain the LundID object for an electron- Returns:
- the LundID object for an electron
 
- 
getPositronObtain the LundID object for a positron- Returns:
- the LundID object for a positron
 
- 
getProtonObtain the LundID object for a proton- Returns:
- the LundID object for a proton
 
- 
getFinds an LundId object based on the given particle id. Uses a binary search.- Parameters:
- id- the id to look for
- Returns:
- the object if found, or null
 
- 
getFinds an LundId object based on the given particle id. Uses a binary search.- Parameters:
- id- the id to look for
- Returns:
- the object if found, or null
 
- 
getFinds an LundId object based on the given particle id. Uses a binary search.- Parameters:
- id- the id to look for. This is rounded. This method is to support GEMC.
- Returns:
- the object if found, or null
 
- 
getLundIdsGet the list of lundIds- Returns:
- the list of lundIds
 
- 
geantToLundpublic static int geantToLund(int geantId) Convert a geant ID onto a Lund (PDG) id.- Parameters:
- geantId- the geant Id
- Returns:
- the lund (pdg) Id.
 
- 
massAndChargeToLundIdpublic static int massAndChargeToLundId(double mass, int charge) Returns the Lund ID of a particle given the mass and charge.- Parameters:
- mass- the mass of the particle in GeV
- charge- the charge of the particle in units of electron charge
- Returns:
- the Geant ID
 
- 
setStyleSet the style for a given lund Id- Parameters:
- lundId- the id to set the style for.
- lineColor- the lineColor to use.
- darker- if- truemake line color datker, else make it lighter.
 
- 
mainMain program for testing- Parameters:
- arg- command arguments ignored.
 
 
-