Skip to content

CTF dictionaries are ready to be fetched from CCDB#7764

Merged
shahor02 merged 2 commits intoAliceO2Group:devfrom
shahor02:pr_ctfdictCCDB
Dec 1, 2021
Merged

CTF dictionaries are ready to be fetched from CCDB#7764
shahor02 merged 2 commits intoAliceO2Group:devfrom
shahor02:pr_ctfdictCCDB

Conversation

@shahor02
Copy link
Copy Markdown
Collaborator

  • macro to create plain vector-based per-detector dictionaries from the global tree-based CTF dictionary produced by the o2-ctf-writer-workflow.

The dictionaries used for the commissioning are uploaded to http://alice-ccdb.cern.ch//Calib/CTFDictionary with validity from 16/07/21 to 12/05/22.

@MichaelLettrich note there were some changes in the createCoders methods.

Copy link
Copy Markdown
Collaborator

@MichaelLettrich MichaelLettrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look fine for me. I will rebase once you merged your changes and add my adaptations.
However I would strongly recommend to factor out the getFreq and getProbBits lambdas as functions from the individual CTF Coders, as this level of copy-paste code duplication is widely considered a code smell. If you share my opinion but lack the time to do it I can take care of it in a separate PR.

@shahor02 shahor02 force-pushed the pr_ctfdictCCDB branch 2 times, most recently from d6c99d2 to 5852f5b Compare November 30, 2021 13:46
@shahor02
Copy link
Copy Markdown
Collaborator Author

@MichaelLettrich the getFreq and getProbBits don't need to be lambdas, now these are members of the EncodedBlocks. Also added more simplifications.

Copy link
Copy Markdown
Collaborator

@MichaelLettrich MichaelLettrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking my comments into consideration. I think this makes the CTF Coders more maintainable.

@shahor02 shahor02 merged commit 4fbd7bd into AliceO2Group:dev Dec 1, 2021
@shahor02 shahor02 deleted the pr_ctfdictCCDB branch December 1, 2021 12:47
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.

2 participants