Skip to content

restructuring PWGJE#4512

Merged
jgrosseo merged 2 commits into
AliceO2Group:devfrom
nzardosh:Jet_Nima
Oct 13, 2020
Merged

restructuring PWGJE#4512
jgrosseo merged 2 commits into
AliceO2Group:devfrom
nzardosh:Jet_Nima

Conversation

@nzardosh

@nzardosh nzardosh commented Oct 5, 2020

Copy link
Copy Markdown
Contributor

adding PWGJE and jet tasks with added functionality

@nzardosh nzardosh requested review from a team, iarsene and jgrosseo as code owners October 5, 2020 19:21
@nzardosh

nzardosh commented Oct 5, 2020

Copy link
Copy Markdown
Contributor Author

@qgp

jgrosseo
jgrosseo previously approved these changes Oct 5, 2020

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.

These should probably become expression columns in the next step if they are accessed more than once

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.

consider Non-static member initialization instead

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.

We will build a dictionary for this class in the next step and expose the data members as configurable

Comment thread dependencies/FindFastJet.cmake Outdated

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 don't add trailing white spaces ;-)

Comment thread dependencies/FindFastJet.cmake Outdated

@qgp qgp Oct 6, 2020

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.

I would prefer to keep the modification of the FastJet-related cmake stuff to a separate PR (#4514), mostly to keep track of what's going on and potentially react in case of issues.

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.

Sorry yes i forgot to make it separate. Would you like to push it and then I can remove it from this pull request

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.

this is now removed, so if you could add it to your pull request that would be great

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.

I am not convinced this should be in the header. Instead, I'd prefer to have the implementation in a separate cxx file, which then is build and also pulls in the required libs (FastJet + contrib), which now needs to happen in every task including JetFinder.h (even if nothing of contrib is used by that task).

Do we want/need to support jet finding without FJcontrib?

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.

yes I also agree, i left it all in the header now as we decided to do a bit of reshuffling in the next stage but we can move everything to an appropriate .cxx
I think we can potentially support the jet finding without contrib for the cases were certain subtractions are not used if it makes a difference to compile time. although i guess this should be minimal

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 question is more if an installation of FastJet without contrib should be supported?

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.

Ah I see. In my opinion there isnt much need for this as anyone who decides to build with fastjet wont mind and perhaps in most cases will even require the contrib packages. We just might need some flexibility with managing different versions of fastjet and the contrib but i guess this should be ok to do

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.

What is this needed for? Shouldn't this just be once-off initialization?

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.

What's the reason to do this for every call of the actual jet finding? Isn't it sufficient to have the settings initialized once?

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.

the reason for the param initialisation is that thee user may wish to change certain variables after initialising an instance of the class (for example etaMax for run5 studies). If the params are not initialised again then the corresponding selectors and other variables like the jet radius which depend on such parameters would not be updated. I have added eta and phi options directly in the constructor but this holds for example for any of the other variables going into the selectors. That was the logic but perhaps there is a more elegant way to achieve this

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.

I can see that you would want to change the parameters after initialising the class, but not between running the jet finding. In case you want jet finding with different settings in the same event, wouldn't it be more logical to setup two instances of the jet finding class? Maybe I am missing something here?

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.

well there can be cases of jet correlations with a trigger object where the phi might want to be changed each time in accordance with the recoil window from the trigger. This can of course also be done after the jet finding too but can also be done via the selector options.

@jgrosseo jgrosseo marked this pull request as draft October 6, 2020 06:51
@jgrosseo

jgrosseo commented Oct 6, 2020

Copy link
Copy Markdown
Collaborator

I converted to draft until @nzardosh and @qgp agree on the details. You can change it back when appropriate.

restructuring jets
@qgp

qgp commented Oct 6, 2020

Copy link
Copy Markdown
Collaborator

@nzardosh Couldn't push to your branch, so you can find a proposal for reshuffling at Jet_Nima. Could you have a look? Then, we can also discuss in person if you want.

@nzardosh

nzardosh commented Oct 6, 2020

Copy link
Copy Markdown
Contributor Author

@nzardosh Couldn't push to your branch, so you can find a proposal for reshuffling at Jet_Nima. Could you have a look? Then, we can also discuss in person if you want.

@qgp , moving the implementation to core looks good to me. How do we merge the two? Or shall we make two independent pull requests?

@nzardosh nzardosh marked this pull request as ready for review October 12, 2020 12:16
@nzardosh nzardosh force-pushed the Jet_Nima branch 5 times, most recently from ae83867 to 226233e Compare October 13, 2020 11:39
@iarsene

iarsene commented Oct 13, 2020

Copy link
Copy Markdown
Collaborator

Hi, is this ready to be merged now?

@nzardosh

Copy link
Copy Markdown
Contributor Author

Hi, is this ready to be merged now?

Hi yes it is ready to go

@jgrosseo jgrosseo merged commit 341158b into AliceO2Group:dev Oct 13, 2020
tklemenz pushed a commit to tklemenz/AliceO2 that referenced this pull request Nov 12, 2020
EmilGorm pushed a commit to EmilGorm/AliceO2 that referenced this pull request Nov 22, 2021
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