lietava / AliceO2

O2 software project for the ALICE experiment at CERN
GNU General Public License v3.0
0 stars 0 forks source link

CRU:use FEE instead of linkID #16

Open lietava opened 3 years ago

lietava commented 3 years ago

@shahor02 Hi Ruben, according to Pippo: RDH v6 we are supposed to fill two fields in RDH:

Now in registerLink I can see fee . How to fill Source id ? R.

shahor02 commented 3 years ago

Hi @lietava,

if you refer to MC->raw conversion, then it is done automatically by the RawFileWriter: Since you initialize it as o2::raw::RawFileWriter mWriter{"CTP"}; it knows what is the sourceID and sets it if RDH v6 is used (default): https://github.com/AliceO2Group/AliceO2/blob/924ceab62a319a105ef10b5cb60ac90102de6474/Detectors/Raw/src/RawFileWriter.cxx#L165-L167

lietava commented 3 years ago

HI Ruben, playing with CTP raw data it seems to me that source id is not correct: RDH==================== FEEid:0x21 Packet offset:64 W000000076017 00000600 00400040 00000900 00214006 W000000076033 00000000 00000000 00000000 00000000 W000000076049 00000000 00000000 00010006 00000883 W000000076065 00000000 00000000 00000000 00000000

It is 9 and it should be 17(=0x11) ? R.

shahor02 commented 3 years ago

Hi @lietava The source ID is not the DetID but the DAQ IDs mostly inherited from run 2

shahor02 commented 3 years ago

Actually, I see that 9 corresponds to invalid DAQ id. Could you ask Roberto what should be your DAQ id, I will add it to mapping

https://github.com/AliceO2Group/AliceO2/blob/dev/DataFormats/Headers/include/Headers/DAQID.h

lietava commented 3 years ago

From Pippo I have following document (got it couple of weeks ago): https://alice-notes.web.cern.ch/system/files/notes/public/1052/2020-07-15-2020-07-07-O2_Report_Identification_of_sources_for_ALICE_data.pdf