Skip to content

Femtoworld#1011

Merged
victor-gonzalez merged 3 commits into
AliceO2Group:masterfrom
zchochul:femtoworld
Jul 24, 2022
Merged

Femtoworld#1011
victor-gonzalez merged 3 commits into
AliceO2Group:masterfrom
zchochul:femtoworld

Conversation

@zchochul

Copy link
Copy Markdown
Collaborator

No description provided.

@saganatt

Copy link
Copy Markdown
Collaborator

Can you remove redundant AliFemto and O2Femto directories?

@victor-gonzalez

Copy link
Copy Markdown
Collaborator

You need to rebase your changes to the latest tag

@victor-gonzalez victor-gonzalez left a comment

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.

Please, organize your code with the same directory layout as the PWGCF/MultiparticleCorrelations directory
Core for your internal classes definition
DataModel for your internal columns/tables definitions
TableProducer for your tasks which generate internal tables to be consumed by other task
Tasks for your analysis tasks

@saganatt

Copy link
Copy Markdown
Collaborator

@victor-gonzalez we copied the FemtoDream so we organized the code like them.

Will later all CF frameworks have the same structure? We will of course conform in this case :)

@lgraczykCern

Copy link
Copy Markdown
Collaborator

@victor-gonzalez this is still a part of our learning of O2. As @saganatt wrote, our code for the moment is a copy of the FemtoDream that we will start adjusting to our needs for Phi and D meson analysis, but first, we need to test what we have for the moment and also learn how to use Hyperloop.

@victor-gonzalez

Copy link
Copy Markdown
Collaborator

I understand it but it is better to start with the right structure from the beginning than correct it later

@victor-gonzalez

Copy link
Copy Markdown
Collaborator

@saganatt yes, all CF frameworks have to have the same structure
It is better to start with it from the beginning
MultiparticleCorrelations also came with a flat structure as the one you intended and took them less than one hour to follow the right layout

@lgraczykCern

Copy link
Copy Markdown
Collaborator

OK @victor-gonzalez, it's fine; we will rearrange the structure to match what you propose. Indeed it is true it will make some order in the files and you're right, better do it from the beginning.

@zchochul
zchochul requested a review from victor-gonzalez July 22, 2022 11:41
#
# In applying this license CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.

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.

Have in mind that you don't necessarily need to only have headers files in your Core directory.
You could also have .cxx files when needed and in that case you should instruct the compiler to create a library that you will link with your table producer tasks or with your task as needed
Check https://github.com/AliceO2Group/O2Physics/blob/master/PWGCF/Core/CMakeLists.txt for inspiration

Comment on lines +17 to +18
#ifndef ANALYSIS_TASKS_PWGCF_FEMTOWORLD_FEMTOWORDLCONTAINER_H_
#define ANALYSIS_TASKS_PWGCF_FEMTOWORLD_FEMTOWORDLCONTAINER_H_

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.

Probably it does make sense to get rid of the ANALYSIS_TASKS_PWGCF_FEMTOWORLD_ head
What do you think?

Comment on lines +16 to +17
#ifndef ANALYSIS_TASKS_PWGCF_O2FEMTO_O2FEMTODETADPHISTAR_H_
#define ANALYSIS_TASKS_PWGCF_O2FEMTO_O2FEMTODETADPHISTAR_H_

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.

The same as above and removing additionally the O2

Comment on lines +16 to +17
#ifndef ANALYSIS_TASKS_PWGCF_FEMTOWORLD_INCLUDE_FEMTOWORLD_FEMTOEVENTHISTO_H_
#define ANALYSIS_TASKS_PWGCF_FEMTOWORLD_INCLUDE_FEMTOWORLD_FEMTOEVENTHISTO_H_

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.

The same but in this case with ANALYSIS_TASKS_PWGCF_FEMTOWORLD_INCLUDE_FEMTOWORLD_

Comment on lines +16 to +17
#ifndef ANALYSIS_TASKS_PWGCF_O2FEMTO_O2FEMTOMATH_H_
#define ANALYSIS_TASKS_PWGCF_O2FEMTO_O2FEMTOMATH_H_

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.

Same as above but with ANALYSIS_TASKS_PWGCF_O2FEMTO_O2

Comment on lines +16 to +17
#ifndef ANALYSIS_TASKS_PWGCF_FEMTOWORLD_INCLUDE_FEMTOWORLD_FEMTOWORLDPAIRCLEANER_H_
#define ANALYSIS_TASKS_PWGCF_FEMTOWORLD_INCLUDE_FEMTOWORLD_FEMTOWORLDPAIRCLEANER_H_

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.

The same as above but with ANALYSIS_TASKS_PWGCF_FEMTOWORLD_INCLUDE_FEMTOWORLD_

Comment on lines +16 to +17
#ifndef ANALYSIS_TASKS_PWGCF_FEMTOWORLD_INCLUDE_FEMTOWORLD_FEMTOPARTICLEHISTO_H_
#define ANALYSIS_TASKS_PWGCF_FEMTOWORLD_INCLUDE_FEMTOWORLD_FEMTOPARTICLEHISTO_H_

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.

The same as above but with ANALYSIS_TASKS_PWGCF_FEMTOWORLD_INCLUDE_FEMTOWORLD_

Comment on lines +17 to +18
#ifndef ANALYSIS_TASKS_PWGCF_FEMTOWORLD_UTILS_H_
#define ANALYSIS_TASKS_PWGCF_FEMTOWORLD_UTILS_H_

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.

The same as above but with ANALYSIS_TASKS_PWGCF_

float getMagneticFieldTesla(const uint64_t& timestamp, const Service<o2::ccdb::BasicCCDBManager>& ccdb)
{
// TODO done only once (and not per run). Will be replaced by CCDBConfigurable
static o2::parameters::GRPObject* grpo = ccdb->getForTimeStamp<o2::parameters::GRPObject>("GLO/GRP/GRP", timestamp);

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.

Have in mind that for Run 3 the CCDB endpoint and the way of getting the magnetic field information has changed
Have a look at the implementation of PR#976 https://github.com/AliceO2Group/O2Physics/pull/976/files for inspiration
If you are not addressing Run 3 datasets for the time being you don't need to consider it. Just have it in mind

@victor-gonzalez victor-gonzalez left a comment

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.

Please have a look at my comments
And thanks for changing the layout!!

@saganatt saganatt left a comment

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.

Hi @victor-gonzalez thank you very much for your comments!
We will indeed improve the ifndef guard clauses, they got a bit messy. And we will look at the CCDB later.
Since it doesn't affect the code performance now, I hope you doesn't mind merging this as-it, to be available on Hyperloop tomorrow? And tomorrow Zuzanna will fix the header files.

@victor-gonzalez

Copy link
Copy Markdown
Collaborator

It does make sense to me!

@victor-gonzalez
victor-gonzalez enabled auto-merge (squash) July 24, 2022 16:11
@victor-gonzalez
victor-gonzalez merged commit 70e93d9 into AliceO2Group:master Jul 24, 2022
lbariogl pushed a commit to CF-tutorials/O2Physics that referenced this pull request Jul 28, 2022
* FemtoWorld_v.21.07

* Femtoworld changes part 1

* FemtoWorld new folders
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