public class DetectorID extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
_detid |
Constructor and Description |
---|
DetectorID()
Construct a default instance.
|
DetectorID(DetectorID detid)
Construct an instance replicating the DetectorID (copy constructor).
|
DetectorID(int detid)
Construct an instance from a detector ID.
|
DetectorID(int dettyp,
int subdetid)
Construct an instance for detector type dettyp and subdetector id subdetid.
|
Modifier and Type | Method and Description |
---|---|
int |
detectorId()
Return the detector ID.
|
boolean |
equals(DetectorID detid)
Test equality.
|
boolean |
lessThan(DetectorID detid)
Test ordering.
|
boolean |
notEquals(DetectorID detid)
Test inequality.
|
int |
subdetectorId()
Return subdetector ID from detector id detid.
|
int |
subdetectorType()
Return the subdetector type.
|
String |
toString()
output stream
|
public DetectorID(int dettyp, int subdetid)
dettyp
- The detector type.subdetid
- The subdetector type.public DetectorID()
public DetectorID(int detid)
detid
- The detector ID.public DetectorID(DetectorID detid)
detid
- The DetectorID to replicate.public int subdetectorType()
public int subdetectorId()
public int detectorId()
public String toString()
public boolean equals(DetectorID detid)
detid
- The DetectorID to test.public boolean notEquals(DetectorID detid)
detid
- The DetectorID to test.public boolean lessThan(DetectorID detid)
detid
- The DetectorID to test.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.