Skip to content

[EMCAL-680][O2-1904] Cleaning the buffer by reference#5484

Merged
shahor02 merged 1 commit intoAliceO2Group:devfrom
hahassan7:dev
Feb 16, 2021
Merged

[EMCAL-680][O2-1904] Cleaning the buffer by reference#5484
shahor02 merged 1 commit intoAliceO2Group:devfrom
hahassan7:dev

Conversation

@hahassan7
Copy link
Copy Markdown
Contributor

The problem with large number of cells has been solved. The problem was that the SRU container was not cleaned, so in every trigger the RawWriter is processing all the digits from the previous triggers. The reason for that is cleaning of the buffer was done on a copy (by value) and the problem was solved The problem was solved by cleaning the container reference by reference.

We also change the ADC threshold to 3.

@hahassan7 hahassan7 requested a review from mfasDa as a code owner February 16, 2021 21:26
@mfasDa
Copy link
Copy Markdown
Collaborator

mfasDa commented Feb 16, 2021

@shahor02 There is still one problem left which we are currently investigating which is connected to the timing of the calo bunches which we suspect is responsible for the crashes you see with the gamma2 raw fitter. Therefore the component is still not fully ready for a full test (but now it should be close). Please for the moment only merge the PR.

@shahor02
Copy link
Copy Markdown
Collaborator

@mfasDa thanks, now I see factor 3-4 less cells then digits when creating from raw. But number of cells from the workflow

o2-emcal-reco-workflow --input-type digits --output-type cells --shm-segment-size 10000000000 --infile emcaldigits.root

is exactly the same as the number of digits. I guess this is not normal.
Also, there is still the problem of the links with no payload received, there should be no such links.

I am merging this PR w/o further CI checks since the changes are trivial.

@shahor02 shahor02 merged commit c573b20 into AliceO2Group:dev Feb 16, 2021
@mfasDa
Copy link
Copy Markdown
Collaborator

mfasDa commented Feb 17, 2021

@shahor02 3-4 digits per cell sounds reasonable as this matches the integration window of the zero-suppression (1 resample, 2 post samples over threshold).

There is still the issue with the time stamp we need to follow up - it could be that it currently at the wrong position of the bunch.

For digits to cells: Yes, this is reasonable only in the mode where we don't simulate the pulse (old run2 mode) - in the mode with pulse simulation (default) we need to treat them in the same way as raw data so they become either included in the RawToCellConverterSpec or we create a similar component as the RawToCellConverter for digits. Aside from the label handling where we have to consider how to assign labels to a bunch the porting should be straight forward.

@shahor02
Copy link
Copy Markdown
Collaborator

@mfasDa I assume I was running digitns->cell in default mode when I saw 1:1 output. The cells from o2-emcal-reco-workflow should be exactly the same with digits or raw_from_digits input.
What about the links w/o any payload added?

@mfasDa
Copy link
Copy Markdown
Collaborator

mfasDa commented Feb 17, 2021

@shahor02 Concerning the empty links: The equipment indexing was ported 1-1 from AliRoot for o2 and in AliRoot it had gaps:

  • 2 empty equipments for EMCAL and DCAL 1/3 supermodules, which are connected to 1 SRU instead of 2
  • 4 empty equipments for one additional DCAL 2/3 sector (2 DCAL supermodules connected to 2 SRUs), which were included in the initial stage of planning but then never realised.

Therefore the link indexing has gaps. As the equipment indexing is done differently in O2 we an get rid of the dead links however we need align this with the indexing in the hardware.

@shahor02
Copy link
Copy Markdown
Collaborator

@mfasDa OK, as it is now, the emulated raw data will contain less links (since this which never get AddData call are not stored) than you register.

@mfasDa
Copy link
Copy Markdown
Collaborator

mfasDa commented Feb 17, 2021

@shahor02 We will remove them, we just need to make sure first whether they are counted at hardware level in the FEEID in the RDH, because that definition must match between hardware, simulation and reconstruction as it is used in the inverse mapping for the tower ID calculation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants