Skip to content

CPV Pedestal Task & Check #662

Merged
Barthelemy merged 5 commits into
AliceO2Group:masterfrom
sevdokim:feature-module-cpv
Apr 6, 2021
Merged

CPV Pedestal Task & Check #662
Barthelemy merged 5 commits into
AliceO2Group:masterfrom
sevdokim:feature-module-cpv

Conversation

@sevdokim
Copy link
Copy Markdown
Contributor

@sevdokim sevdokim commented Apr 1, 2021

CPV Pedestal Task & Check created. Task takes digits and digit trigger records as input and produces Pedestal Monitoring objects: 1D historgrams of amplitudes for every channel (~24K histos total) which are used to produce pedestal maps for modules, count pedestal sigmas and so on. Check is performed to see how many bad channels of different reasons we have. Overall detector quality is produced (1 QO) then. Configurable are channel badness criteria and tolerated numbers of bad channels of different types. Config is read from json file. See Modules/CPV/etc/read-raw-from-file/pedestal-task-no-sampling.json for example. And also Modules/CPV/etc/readme for run recipe.

Copy link
Copy Markdown
Collaborator

@Barthelemy Barthelemy left a comment

Choose a reason for hiding this comment

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

I did not read in details the logic of the task and check but what I read was ok.

{
for (int i = 0; i < kNHist1D; i++) {
if (mHist1D[i]) {
mHist1D[i]->Delete();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is there a particular reason not to use delete mHist1D[i] ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no, there is no reason.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried to understand the difference between histo->Delete() and delete histo and they both call destructor but first case contains additional check IsOnHeap(). Whatever this check is I prefer to get rid of it just to be 100% sure histo is deleted. In future commits I will replace mHist1D[i]->Delete() by delete mHist1D[i] as you suggested.

@sevdokim
Copy link
Copy Markdown
Contributor Author

sevdokim commented Apr 6, 2021

Dear Barth, there are some errors during build which I don't understand. Could you please tell me what went wrong this time?

@Barthelemy
Copy link
Copy Markdown
Collaborator

They are spurrious https://alice.its.cern.ch/jira/browse/O2-2214

I am waiting for the macos test

@Barthelemy Barthelemy merged commit 068a896 into AliceO2Group:master Apr 6, 2021
@sevdokim sevdokim deleted the feature-module-cpv branch May 16, 2022 11:27
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