Skip to content

Conversation

@chiarazampolli
Copy link
Collaborator

This is the first implementation of the TOF DCS Processor.
Still to-do:

  • read DPIDs needed by TOF from CCDB
  • fill CCDB object
  • process the FEACSTATUS

@chiarazampolli chiarazampolli requested review from a team and noferini as code owners December 10, 2020 15:04
@chiarazampolli
Copy link
Collaborator Author

chiarazampolli commented Dec 10, 2020

Hello @aphecetche ,

While implementing the part for TOF, I made a couple of changes to the Generator.

  • L30 (old), 32 (new) of Detectors/DCS/src/DataPointGenerator.cxx : this is a fix. Without it, the time was random, as "seconds" was uninitialized;
  • L35 (old), 37 (new) of Detectors/DCS/src/DataPointGenerator.cxx : this is to be able to pass a TDatime, which I need to change the timestamp of the generated DPs (otherwise it was always the same), see Detectors/DCS/testWorkflow/DCSRandomDataGeneratorSpec.h
  • From L71 (old) 72 (new) of Detectors/DCS/testWorkflow/DCSRandomDataGeneratorSpec.h : I use the TFID to change the timestamp of the generated points. In principle, each point will come with a different timestamp, so also this is a simplification. But what matters is that different maps from DCS have different timestamps for the same DPs
  • in Detectors/DCS/testWorkflow/DCSRandomDataGeneratorSpec.h , I added TOF (few DPs, just for testing)

Please check that it is fine with you.

Chiara

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@aphecetche : this is the fix.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@aphecetche : this is to accept also the TDatime format

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@aphecetche : this is to be able to change the timestamp at every map that we send, using the TF id.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@shahor02 , @aphecetche : DCS will send only 1 map at a time, either FBI or delta.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@aphecetche , this is to make the generation of the DPs in the delta map such that there are no duplicated DPs - the delta map will contain one value only per DP.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@aphecetche : this is to change the subset of DPs that are generated at every TF

Copy link
Collaborator

Choose a reason for hiding this comment

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

this seems to be never used.

@chiarazampolli chiarazampolli changed the title [WIP] TOF DCS Processor TOF DCS Processor Dec 14, 2020
@chiarazampolli
Copy link
Collaborator Author

Dear @noferini , @shahor02 , @aphecetche ,

I am done with the changes I wanted to make to this PR, so I removed the WIP from the title. As soon as the basic checks will pass, can you review it?

Thanks!

Chiara

@chiarazampolli chiarazampolli force-pushed the DCS branch 9 times, most recently from 29a70ff to e641357 Compare December 14, 2020 23:04
@chiarazampolli
Copy link
Collaborator Author

Hello @shahor02 , @noferini , @aphecetche ,

The only error I could find in https://ali-ci.cern.ch/alice-build-logs/AliceO2Group/AliceO2/5047/e6413573c142517866c4bca5f7f2174b881f7beb/build_O2_o2/fullLog.txt is:

Error in TSystem::ExpandFileName: input: $ROOT_DYN_PATH/libRIO, output: $ROOT_DYN_PATH/libRIO
Error in TSystem::ExpandFileName: input: $ROOT_DYN_PATH/libCling, output: $ROOT_DYN_PATH/libCling

But it is not related to this PR. Any idea? Is there something else?

Chiara

@sawenzel
Copy link
Collaborator

sawenzel commented Dec 15, 2020

@chiarazampolli : This error is annoying but not critical. It just means that the variable ROOT_DYN_PATH (announced to ROOT somewhere) is not set in the compilation environment.
As far as I can tell, the build is 100% ok. Maybe @TimoWilken can comment why one of them is flagged as failed.

@chiarazampolli
Copy link
Collaborator Author

Ciao @sawenzel ,
Thanks! I did not spot any other error, is it normal that this one triggers the failure of o2 build?
Chiara

@shahor02
Copy link
Collaborator

shahor02 commented Dec 15, 2020 via email

@chiarazampolli
Copy link
Collaborator Author

Thanks Ruben!

Chiara

Copy link
Collaborator

@shahor02 shahor02 left a comment

Choose a reason for hiding this comment

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

Hi @chiarazampolli

Please see a few comments below (only 1 is a real bug).

Copy link
Collaborator

Choose a reason for hiding this comment

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

so, the double DPs will be saved only once in the very end of the workflow lifetime, which might be large. Is this what you want?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For now, I think it is ok, but we can change it to have it ever n TFs. I will do this modification in another PR, if you agree.

Copy link
Collaborator

Choose a reason for hiding this comment

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

sure

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, will take care in January :-)

@chiarazampolli chiarazampolli force-pushed the DCS branch 2 times, most recently from c78f6c0 to 2cdb050 Compare December 15, 2020 23:06
@chiarazampolli chiarazampolli force-pushed the DCS branch 2 times, most recently from f0c2623 to af4d2dc Compare December 15, 2020 23:11
Adding processing of LV info (FEAC).

Processing also HV

Configuring DPs for TOF either from CCDB or by hand.

Macro included to create CCDB entry

Preparing CCDB update

Writing to CCDB

Some updates and improvements

more in the README, for LHCphase, ChannelOffset, TimeSlewing

formatting of README

formatting of README

clang-format

clang again

update README

add macro makeCCDBEntryForDCS.C to tests

including algorithm

shuffle instead of random_shuffle

fix for macro test (hopefully)

Fix for test

Now it should work!

Making CI happy

from PR review

turning test into executable

typo fixed

clang

again clang
@chiarazampolli
Copy link
Collaborator Author

A side remark about something weird: after running clang-format, I still get an error, in a file that I think clang-format itself changed at the previous iteration.

@TimoWilken
Copy link
Contributor

Hi @chiarazampolli! I'm trying to track down some other weirdness in the clang-format checker. Do you happen to have a log with that error somewhere? It might be useful...

@chiarazampolli
Copy link
Collaborator Author

Ciao @TimoWilken ,

Unfortunately not, the logs were those from the CI, so they are lost now.

Chiara

@TimoWilken
Copy link
Contributor

Hi @chiarazampolli, fair enough! Please let me know if you see it happen again.

@chiarazampolli
Copy link
Collaborator Author

Ciao @TimoWilken ,

Sure!

Chiara

@shahor02
Copy link
Collaborator

@chiarazampolli @noferini shall I merge it or Francesco wants to review it?

@chiarazampolli
Copy link
Collaborator Author

Hello,

@noferini is away, I think, until end of the holidays. Maybe we could merge it, and in case make modifications? In this way we can send it around as an example (and the README also can be useful).

Chiara

@shahor02 shahor02 merged commit 0fe332f into AliceO2Group:dev Dec 16, 2020
@chiarazampolli chiarazampolli deleted the DCS branch May 16, 2022 07:53
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.

4 participants