public class TestRunSvtEvioReader extends AbstractSvtEvioReader
Modifier and Type | Field and Description |
---|---|
private static int |
DATA_HEADER_LENGTH |
private static int |
DATA_TAIL_LENGTH |
private static int |
MAX_FPGA_ID |
static int |
MIN_DATA_BANK_TAG |
private static int |
ROC_BANK_NUMBER |
private static int |
ROC_BANK_TAG |
daqPairToSensor, isDaqMapSetup, LOGGER, SVT_HEADER_COLLECTION_NAME
debug, hitCollectionName
Constructor and Description |
---|
TestRunSvtEvioReader()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkSvtSampleCount(int sampleCount,
SvtHeaderDataInfo headerData)
Checks that the SVT header data count is consistent with the bank size.
|
protected int |
getDataHeaderLength()
Get the number of 32 bit integers composing the data block header.
|
protected int |
getDataTailLength()
Get the number of 32 bit integers composing the data block tail.
|
protected int |
getMaxDataBankTag()
Get the maximum SVT ROC bank tag in the event.
|
protected int |
getMaxRocBankTag()
Get the maximum SVT ROC bank tag in the event.
|
protected int |
getMinDataBankTag()
Get the minimum SVT ROC bank tag in the event.
|
protected int |
getMinRocBankTag()
Get the minimum SVT ROC bank tag in the event.
|
protected int |
getRocBankNumber()
Get the SVT ROC bank number of the bank encapsulating the SVT samples.
|
protected HpsSiSensor |
getSensor(int[] data)
Get the sensor associated with a set of samples.
|
protected boolean |
isValidSampleSet(int[] data)
Check whether the samples are valid.
|
protected org.lcsim.event.RawTrackerHit |
makeHit(int[] data)
Make a
RawTrackerHit from a set of samples. |
protected void |
processSvtHeaders(List<SvtHeaderDataInfo> headers,
org.lcsim.event.EventHeader lcsimEvent)
Process the headers that were extracted from the SVT data.
|
protected void |
setupDaqMap(org.lcsim.geometry.Subdetector subdetector)
A method to setup a mapping between a DAQ pair (FPGA/Hybrid) and the
corresponding sensor.
|
extractMultisampleHeaderData, extractSvtHeader, makeHit, makeHits, processEvent, setMultiSampleHeaders
setDebug, setHitCollectionName
private static final int DATA_HEADER_LENGTH
private static final int DATA_TAIL_LENGTH
private static final int MAX_FPGA_ID
public static final int MIN_DATA_BANK_TAG
private static final int ROC_BANK_TAG
private static final int ROC_BANK_NUMBER
protected int getMinRocBankTag()
getMinRocBankTag
in class AbstractSvtEvioReader
protected int getMaxRocBankTag()
getMaxRocBankTag
in class AbstractSvtEvioReader
protected int getMinDataBankTag()
AbstractSvtEvioReader
getMinDataBankTag
in class AbstractSvtEvioReader
protected int getMaxDataBankTag()
AbstractSvtEvioReader
getMaxDataBankTag
in class AbstractSvtEvioReader
protected int getRocBankNumber()
getRocBankNumber
in class AbstractSvtEvioReader
protected int getDataHeaderLength()
getDataHeaderLength
in class AbstractSvtEvioReader
protected int getDataTailLength()
getDataTailLength
in class AbstractSvtEvioReader
protected void setupDaqMap(org.lcsim.geometry.Subdetector subdetector)
setupDaqMap
in class AbstractSvtEvioReader
subdetector
- : The tracker Subdetector
objectprotected HpsSiSensor getSensor(int[] data)
getSensor
in class AbstractSvtEvioReader
data
- : sample block of dataprotected boolean isValidSampleSet(int[] data)
isValidSampleSet
in class AbstractSvtEvioReader
data
- : sample block of dataprotected org.lcsim.event.RawTrackerHit makeHit(int[] data)
RawTrackerHit
from a set of samples.makeHit
in class AbstractSvtEvioReader
data
- : sample block of dataprotected void processSvtHeaders(List<SvtHeaderDataInfo> headers, org.lcsim.event.EventHeader lcsimEvent) throws SvtEvioExceptions.SvtEvioHeaderException
AbstractSvtEvioReader
processSvtHeaders
in class AbstractSvtEvioReader
headers
- - list of all headerslcsimEvent
- - the current LCSIM event being processedSvtEvioExceptions.SvtEvioHeaderException
protected void checkSvtSampleCount(int sampleCount, SvtHeaderDataInfo headerData) throws SvtEvioExceptions.SvtEvioHeaderException
AbstractSvtEvioReader
checkSvtSampleCount
in class AbstractSvtEvioReader
sampleCount
- - sample count from the size.headerData
- - header extracted from the bank.SvtEvioExceptions.SvtEvioHeaderException
Copyright © 2019. All rights reserved.