[DCS] Helpers for (fake) DCS aliases generation#4863
[DCS] Helpers for (fake) DCS aliases generation#4863shahor02 merged 4 commits intoAliceO2Group:devfrom
Conversation
|
Hello @aphecetche , Chiara |
d048f0e to
a343081
Compare
|
@chiarazampolli maybe wait for the builds to be green before looking at the code ;-) Concerning the ccdb upload failure. For example : (or the same with gives me messages like : and I don't see new objects in the CCDB, so I interpret this as a failure. |
|
Ciao @aphecetche , I can reproduce the issue. I can try to have a look, it could be related, as I said, to the recent changes to the CCDB classes. Chiara |
|
Hello @aphecetche , See #4867. There was indeed a mistake in DCSDataProcessorSpec.cxx, and I was sending to the CCDB populator not the correct data (I was not sending from the correct DCSProcessor, which is an element of a vector - I think it is a remnant of previous implementation without the vector). Can you try if this fixes your issue? It should, since you use the same data processor in your workflow, if I read well. Chiara |
The main functions are `o2::dcs::generateRandomDataPoints` and `o2::dcs::expandAliases`, the latter being used to create easily large lists of data point aliases from basic patterns. For instance the compact description "DET/Crate[0..3]/Channel[000.042]/[iMon,vMon]" would be expanded to 344 (4x43x2) aliases.
a343081 to
1605216
Compare
|
@chiarazampolli #4867 is not really working (for me at least), but I would say this one can be merged anyway as the origin of the problem is not related to this new code, right ? (as, as you've seen, I'm just reusing the data processor spec part (just changed the generation spec). |
|
@chiarazampolli don't know exactly what I've done wrong the first time but rebuilding and re-trying it now works indeed. Sorry for the false alarm. |
|
Hello Laurent, very good! |
|
@shahor02 I'm sure this is not the only PR you have to review, but just to be sure it's on your radar ;-) Thanks. |
shahor02
left a comment
There was a problem hiding this comment.
Hi @aphecetche
Thanks, looks perfect. I would just add to DetectorsDCSLinkDef.h
#pragma link C++ function o2::dcs::expandAlias(const std::string&);
#pragma link C++ function o2::dcs::expandAliases(const std::vector<std::string>&);
to have corresponding dictionaries: I think it would be useful to be able to test the aliases from root command line
|
@shahor02 I've added the expandAlias(es) to the dictionary. |
shahor02
left a comment
There was a problem hiding this comment.
@aphecetche I saw, thanks! Merging.
See example usage in e.g.
DCSRandomDataGeneratorSpec.h(generatemethod)Note that the actual upload to CCDB is failing as far as I can tell (as in the current version ?) because the path used (inferred from class name) contains invalid characters '<' and ','
Might want to retain the 3 commits (i.e. do not squash) as the first two are "fixes" that are not only useful for data point generation IMO.