public class IDDescriptor extends Object
layer:7,system:3,barrel:3,theta:32:11,phi:11and generates a parsed description of the fields.
Modifier and Type | Class and Description |
---|---|
static class |
IDDescriptor.IDException |
Modifier and Type | Field and Description |
---|---|
private String |
description |
private int[] |
length |
private int |
maxBit |
private String[] |
name |
private Map<String,Integer> |
nameMap |
private int |
nfields |
private int[] |
start |
Constructor and Description |
---|
IDDescriptor(String idDescriptor) |
Modifier and Type | Method and Description |
---|---|
int |
fieldCount() |
int |
fieldLength(int index) |
String |
fieldName(int index) |
int |
fieldStart(int index) |
int |
getMaxBit() |
int |
indexOf(String name)
Returns the index of the specified field.
|
boolean |
isSigned(int index) |
int |
maxIndex() |
int |
size() |
String |
toString() |
private int[] start
private int[] length
private String[] name
private int maxBit
private int nfields
private String description
public IDDescriptor(String idDescriptor) throws IDDescriptor.IDException
IDDescriptor.IDException
public int fieldCount()
public int indexOf(String name) throws IllegalArgumentException
IllegalArgumentException
- If the requested field does not exist.public int fieldStart(int index)
public int fieldLength(int index)
public boolean isSigned(int index)
public String fieldName(int index)
public int getMaxBit()
public int size()
public int maxIndex()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.