public class TrackData extends Object implements org.lcsim.event.GenericObject
Modifier and Type | Field and Description |
---|---|
private double[] |
doubles |
private float[] |
floats |
private int[] |
ints |
static int |
L1_ISOLATION_INDEX |
static int |
L2_ISOLATION_INDEX |
static int |
N_ISOLATIONS |
static String |
TRACK_DATA_COLLECTION |
static String |
TRACK_DATA_RELATION_COLLECTION |
static int |
TRACK_TIME_INDEX |
static int |
TRACK_VOLUME_INDEX |
private static org.apache.commons.math3.util.Pair<org.lcsim.event.EventHeader,org.lcsim.event.RelationalTable> |
trackDataToTrackCache |
Constructor and Description |
---|
TrackData()
Default constructor
|
TrackData(int trackVolume,
float trackTime,
double[] isolations)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getDoubleVal(int index)
Returns the double value for the given index.
|
float |
getFloatVal(int index)
Returns the float value for the given index.
|
int |
getIntVal(int index)
Return the integer value for the given index.
|
static double |
getIsolation(org.lcsim.event.GenericObject object,
int layer) |
double |
getIsolation(int layer)
Get isolation value for the hit in the given sensor layer.
|
int |
getNDouble()
Number of double values stored in this object.
|
int |
getNFloat()
Number of float values stored in this object.
|
int |
getNInt()
Number of integer values stored in this object.
|
static org.lcsim.event.GenericObject |
getTrackData(org.lcsim.event.EventHeader event,
org.lcsim.event.Track track) |
static org.lcsim.event.RelationalTable |
getTrackDataToTrackTable(org.lcsim.event.EventHeader event) |
float |
getTrackTime() |
static float |
getTrackTime(org.lcsim.event.GenericObject object) |
int |
getTrackVolume() |
static int |
getTrackVolume(org.lcsim.event.GenericObject object) |
boolean |
isFixedSize()
True if objects of the implementation class have a fixed size.
|
public static final int L1_ISOLATION_INDEX
public static final int L2_ISOLATION_INDEX
public static final int N_ISOLATIONS
public static final int TRACK_TIME_INDEX
public static final int TRACK_VOLUME_INDEX
public static final String TRACK_DATA_COLLECTION
public static final String TRACK_DATA_RELATION_COLLECTION
private final double[] doubles
private final float[] floats
private final int[] ints
private static org.apache.commons.math3.util.Pair<org.lcsim.event.EventHeader,org.lcsim.event.RelationalTable> trackDataToTrackCache
public TrackData()
public TrackData(int trackVolume, float trackTime, double[] isolations)
trackVolume
- : SVT volume associated with the tracktrackTime
- : The track timeisolations
- : an array of doubles containing isolations for every
sensor layerpublic double getIsolation(int layer)
layer
- The sensor layer of interest (0-11)public float getTrackTime()
public int getTrackVolume()
public static double getIsolation(org.lcsim.event.GenericObject object, int layer)
object
- : The generic object containing the data.layer
- The sensor layer of interest (0-11)public static float getTrackTime(org.lcsim.event.GenericObject object)
object
- : The generic object containing the data.public static int getTrackVolume(org.lcsim.event.GenericObject object)
object
- : The generic object containing the data.public double getDoubleVal(int index)
getDoubleVal
in interface org.lcsim.event.GenericObject
public float getFloatVal(int index)
getFloatVal
in interface org.lcsim.event.GenericObject
public int getIntVal(int index)
getIntVal
in interface org.lcsim.event.GenericObject
public int getNDouble()
getNDouble
in interface org.lcsim.event.GenericObject
public int getNFloat()
getNFloat
in interface org.lcsim.event.GenericObject
public int getNInt()
getNInt
in interface org.lcsim.event.GenericObject
public boolean isFixedSize()
isFixedSize
in interface org.lcsim.event.GenericObject
public static org.lcsim.event.RelationalTable getTrackDataToTrackTable(org.lcsim.event.EventHeader event)
public static org.lcsim.event.GenericObject getTrackData(org.lcsim.event.EventHeader event, org.lcsim.event.Track track)
Copyright © 2019. All rights reserved.