ATLAS Offline Software
|
This class provides conversion from CSC RDO to ROD format. More...
#include <CscROD_Encoder.h>
Public Member Functions | |
CscROD_Encoder () | |
constructor More... | |
~CscROD_Encoder ()=default | |
void | setRdo (const CscRawDataCollection *rdo) |
set CscRawDataCollection More... | |
StatusCode | fillROD (std::vector< uint32_t > &v, MsgStream &mLog) |
convert all CscRawDataCollections in the current list to a vector of 32bit words More... | |
void | setIdHelper (const CscIdHelper *cscIdHelper) |
setIdHelper More... | |
Private Attributes | |
const CscRawDataCollection * | m_cscRdo |
const CscIdHelper * | m_cscIdHelper = nullptr |
This class provides conversion from CSC RDO to ROD format.
Author: Ketevi A. Assamagan BNL December 27 2003 following T. Maeno's example for TGC
Definition at line 25 of file CscROD_Encoder.h.
CscROD_Encoder::CscROD_Encoder | ( | ) |
|
default |
StatusCode CscROD_Encoder::fillROD | ( | std::vector< uint32_t > & | v, |
MsgStream & | mLog | ||
) |
convert all CscRawDataCollections in the current list to a vector of 32bit words
convert CSC RDO to a vector of 32bit words
group the data into RPU's
in case only one RPU has data, write out the header of the empty RPU as well
Sampling phase; Trigger type, First summary bit
encode strip data fragments :: ROD body
this RPU identifier
RPU size from simulation - assume no ghost words: +1 for the RPU header word itsef
Find the size of the SPU - presumably the RPU has 5 SPU The SPU ID should range from 0 to 4. total number of clusters words: The unitWord = 2 at the start of a cluster + total number of words in the cluster: this is basically the number of samples/2 where one sample = 12-bit ADC. The 2 words at the start of the cluster describe the cluster size and location. The %2 accounts for the old number of samples
the RPU size = 1 word for the RPU header 1 word for the SCA channel 2 words for the cluster counts and miscellanous —> +4
assume normal data type in simulation
RPU header marker - it contains the size of the RPU, the data type and the RPU ID
RPU header
SCA address - assume 0 in simulation
build the cluster counts - the first word is the precision SPU
build the second cluster information word
strip addresses and ADC samples - the first 2 words contain the address and the width+time+timeFlag, following the ADC samplings
we assume no error block nor ghost words int the simulation
Definition at line 23 of file CscROD_Encoder.cxx.
|
inline |
|
inline |
|
private |
Definition at line 48 of file CscROD_Encoder.h.
|
private |
Definition at line 47 of file CscROD_Encoder.h.