ZDC-like Digits and RecPoints structure#2926
Conversation
97fb669 to
5ead715
Compare
There was a problem hiding this comment.
including iostream in headers should be avoided. Why do you need it?
There was a problem hiding this comment.
could you add a sentence of what is "Temp" here? Is it some intermediate format?
There was a problem hiding this comment.
please remove comment if this is no longer needed
|
@MichaelLettrich : MacOS tells: Is this a new problem? |
|
@AllaMaevskaya : Thanks for this comprehensive PR. Could you just please provide a description of what it achieves? Is this implementing pileup/embedding? |
There was a problem hiding this comment.
@AllaMaevskaya Could you please remind the range of these data members? Do you really need 4 ints?
There was a problem hiding this comment.
DetID - 0-208
CFDTime is 12 bits of RawData
QTCAmpl - 13 bit
ChainQTC can be 1 or 0
You suggest to use RawEventData uint64_t word to keep it in Digits?
There was a problem hiding this comment.
You can simply use
uint8_t ChanID
int8_t ChainQTC
int16_t CFDTime
int16_t QTCAmpl
will take the same 8 bytes (instead of current 16) and w/o bit operations.
There was a problem hiding this comment.
done, thank you
There was a problem hiding this comment.
Do you really need doubles here (and again, what is the range of int members?) Anyway, if the types cannot be changed, please move ChainQTC right after the ChId, this will save 8 B in the sizeof(ChannelDataFloat)
There was a problem hiding this comment.
could you please define in the Geometry the inverse of MV_2_Nchannels and multiply by it?
There was a problem hiding this comment.
idem, if possible, multiply by precalculated inverse instead of dividing.
There was a problem hiding this comment.
here too, if possible, multiply by precalculated inverse instead of dividing.
There was a problem hiding this comment.
why are you getting a vector here and not a span?
There was a problem hiding this comment.
This question was not answered
There was a problem hiding this comment.
Sorry, I really misread question.
Digits are structure with event-wise data like BC, orbit and triggers and span of ChannelData, similar to ZDC as you requested. This Digits are collected in vector event-by-event. What is wrong?
There was a problem hiding this comment.
When you do pc.inputs().get<const std::vector... you create a local copy of the framework-owned data. This is a waste of the memory and CPU resources. Instead on can use span, which is essentially a pointer on these data. But using the span requires that elements of this span (Digits in your case) are copiable (do not contain pointers, vectors etc). So, the whole point of these ZDC-like structures was to make T0 objects copiable and use spans instead of the vectors. Just change auto digits = pc.inputs().get<const std::vector<o2::ft0::Digit>>("digits"); to
auto digits = pc.inputs().get<gsl::span<o2::ft0::Digit>>("digits");
|
@sawenzel the bulk of this PR is getting rid of the |
cfda4a3 to
629249a
Compare
|
Here is detail description of what is in PR:
|
fcd0aaf to
22206d8
Compare
|
Sorry , I found bug. Please wait until tomorrow. |
22206d8 to
e055c91
Compare
There was a problem hiding this comment.
@AllaMaevskaya by initializing the uint8_t wih -1 you are assigning to 256. Is this what you want?
There was a problem hiding this comment.
no, I fixed it now
There was a problem hiding this comment.
But you wrote before that the chanID goes from 0 to 208, with in8_t you cannot cover this range. If you want to initialize with the value which is outside of the allowed range, use uin8_t and init with 0xff
9e642ba to
351ebf8
Compare
351ebf8 to
6002184
Compare
|
@AllaMaevskaya could you please apply clang-format ? |
465285f to
afbf331
Compare
afbf331 to
79e3f34
Compare
|
Hello in the morning all test were green, now 2 of them are red and logs are not visible. What should I do? |
|
The test servers are not available due to the problems in IT. Once it gets green again, will merge it.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: AllaMaevskaya <notifications@github.com>
Sent: Thursday, February 20, 2020 2:33:34 PM
To: AliceO2Group/AliceO2 <AliceO2@noreply.github.com>
Cc: Ruben Shahoyan <shahor02@gmail.com>; Comment <comment@noreply.github.com>
Subject: Re: [AliceO2Group/AliceO2] ZDC-like Digits and RecPoints structure (#2926)
Hello
in the morning all test were green, now 2 of them are red and logs are not visible. What should I do?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#2926?email_source=notifications&email_token=ABYKIDM2SDFKSR462SCXFGTRD2BC5A5CNFSM4KSDUHWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMN42ZY#issuecomment-589024615>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABYKIDL47W6MVCW2J7UIWN3RD2BC5ANCNFSM4KSDUHWA>.
|
71ae7d9 to
2732233
Compare
|
@shahor02 Everything is back to green here. Squash and merge? |
No description provided.