public class Const extends Object implements ConditionsListener
Units, physics constants and frequently used particles PGD encodings are defined as static fields. Default units (those equal to 1.0) are millimeter, second, Tesla, and GeV.
Detector-specific constants are accessible through an instance of Const
that can be obtained with a call to Const.det().
These constants are initialized automatically once the detector information becomes
available, and updated if the detector changes. An attempt to call det()
before the detector classes have been initialized by the framework (usually just
before the first event processing starts) will throw NullPointerException.
Modifier and Type | Class and Description |
---|---|
static class |
Const.Particle |
class |
Const.SubDet
Helper class that contains parameters of one of the tracking subdetectors.
|
Modifier and Type | Field and Description |
---|---|
private double |
_bField |
private static Const |
_det |
private Detector |
_detector |
private ArrayList<Const.SubDet> |
_subDetList |
static double |
centimeter |
static double |
cm |
static double |
degree |
static double |
eV |
static double |
GeV |
static double |
m |
static double |
meter |
static double |
MeV |
static double |
micrometer |
static double |
microsecond |
static double |
millimeter |
static double |
millisecond |
static double |
mm |
static double |
nanosecond |
static double |
sec |
static double |
second |
static double |
SPEED_OF_LIGHT |
static double |
Tesla |
static double |
TeV |
Const.SubDet |
TRACKER_BARREL |
Const.SubDet |
TRACKER_ENDCAP |
Const.SubDet |
TRACKER_FORWARD |
Const.SubDet |
VXD_BARREL |
Const.SubDet |
VXD_ENDCAP |
Modifier | Constructor and Description |
---|---|
private |
Const() |
Modifier and Type | Method and Description |
---|---|
void |
conditionsChanged(ConditionsEvent event)
Called by the framework when the detector information changes.
|
static Const |
det()
Returns an instance of Const that can be used to retrieve various detector parameters.
|
private Const.SubDet |
get(int sysID) |
private Const.SubDet |
get(Subdetector subdetector) |
boolean |
is3D(int sysID)
Returns true if tracking subdetector with system ID supplied as an
argument provides 3-demensional measurement (silicon pixels).
|
boolean |
is3D(Subdetector sub)
Returns true if tracking subdetector supplied as an argument provides
3-demensional measurement (silicon pixels).
|
boolean |
isEndcap(int sysID)
Returns true if tracking subdetector with system ID supplied as an
argument is an endcap.
|
boolean |
isEndcap(Subdetector sub)
Returns true if tracking subdetector supplied as an argument is an endcap.
|
boolean |
isVXD(int sysID)
Returns true if tracking subdetector with system ID supplied as an
argument is a part of the vertex detector.
|
boolean |
isVXD(Subdetector sub)
Returns true if tracking subdetector supplied as an argument
is a part of the vertex detector.
|
int |
nLayers(int sysID)
Returns number of layers in the tracking subdetector with system ID supplied as an argument.
|
int |
nLayers(Subdetector sub)
Returns number of layers in the tracking subdetector supplied as an argument.
|
public static final double mm
public static final double millimeter
public static final double meter
public static final double m
public static final double centimeter
public static final double cm
public static final double micrometer
public static final double second
public static final double sec
public static final double millisecond
public static final double microsecond
public static final double nanosecond
public static final double Tesla
public static final double GeV
public static final double TeV
public static final double MeV
public static final double eV
public static final double degree
public static final double SPEED_OF_LIGHT
public final Const.SubDet VXD_BARREL
public final Const.SubDet VXD_ENDCAP
public final Const.SubDet TRACKER_BARREL
public final Const.SubDet TRACKER_ENDCAP
public final Const.SubDet TRACKER_FORWARD
private static Const _det
private Detector _detector
private ArrayList<Const.SubDet> _subDetList
private double _bField
public static Const det()
public boolean isEndcap(Subdetector sub)
public boolean isEndcap(int sysID)
public boolean isVXD(Subdetector sub)
public boolean isVXD(int sysID)
public boolean is3D(Subdetector sub)
public boolean is3D(int sysID)
public int nLayers(Subdetector sub)
public int nLayers(int sysID)
public void conditionsChanged(ConditionsEvent event)
conditionsChanged
in interface ConditionsListener
event
- The event associated with the change.private Const.SubDet get(Subdetector subdetector)
private Const.SubDet get(int sysID)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.