Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substructure to Shared Library #63

Merged
merged 62 commits into from May 18, 2022
Merged

Substructure to Shared Library #63

merged 62 commits into from May 18, 2022

Conversation

jackaraz
Copy link
Member

@jackaraz jackaraz commented Apr 5, 2022

Context:
This PR includes code flow optimization and compilation efficiency updates.

  • The substructure module has been externalized as a shared library. This allows faster compilation time for individual projects.
  • HEPTopTagger has been added to the workflow. The main code will be downloaded from the latest release of this repo.

PR also includes additional functionality to detect fastjet contrib and HTT to compile MadAnalysis accordingly.

@jackaraz jackaraz added ⚙️enhancement New feature or request SFS Simplified detector simulation in MadAnalysis 5 labels Apr 5, 2022
@jackaraz jackaraz requested a review from BFuks April 5, 2022 16:23
@jackaraz jackaraz marked this pull request as ready for review April 22, 2022 17:43
Copy link
Member Author

@jackaraz jackaraz left a comment

Choose a reason for hiding this comment

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

Regarding linking errors in Linux systems.

theCommands=['./configure','--fastjet-config='+self.bindir]
# TODO: figure out how to give `-std=c++11 -fPIC` together to CXXFLAGS
# using " or ' doesn't work on linux systems
theCommands = ['./configure', '--fastjet-config=' + self.bindir, 'CXXFLAGS=-fPIC']
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: fjcontrib still needs to be compiled with CXXFLAGS="-std=c++11 -fPIC"; however couldn't figure out how to feed them together to the terminal. The configuration file doesn't accept " or ' through the python interface, although both work when done by hand.

Copy link
Member

@BFuks BFuks Apr 27, 2022

Choose a reason for hiding this comment

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

Have you tried with \' or \"?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeap didn't work for me even tried the Unicode string :/

@BFuks
Copy link
Member

BFuks commented Apr 26, 2022

Hi Jack. Can you please first resolve the conflicts before I start reviewing this branch? Thanks in advance!

@jackaraz
Copy link
Member Author

Hi Jack. Can you please first resolve the conflicts before I start reviewing this branch? Thanks in advance!

The conflict has been resolved.

@BFuks
Copy link
Member

BFuks commented Apr 26, 2022

Hi Jack. Can you please first resolve the conflicts before I start reviewing this branch? Thanks in advance!

The conflict has been resolved.

Great. Starting the review!


// set top mass ratio range
MAfloat32 fw = 0.15;
MAfloat32 mass_ratio_range_min = (1-fw)*80.379/172.9;
Copy link
Member

@BFuks BFuks May 17, 2022

Choose a reason for hiding this comment

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

We need a function that updates this when the user change the mass of the top or the W boson.

Copy link
Member Author

@jackaraz jackaraz left a comment

Choose a reason for hiding this comment

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

regarding README.md

tools/SampleAnalyzer/Interfaces/substructure/README.md Outdated Show resolved Hide resolved
tools/SampleAnalyzer/Interfaces/substructure/README.md Outdated Show resolved Hide resolved
tools/SampleAnalyzer/Interfaces/substructure/README.md Outdated Show resolved Hide resolved
tools/SampleAnalyzer/Interfaces/substructure/README.md Outdated Show resolved Hide resolved
tools/SampleAnalyzer/Interfaces/substructure/README.md Outdated Show resolved Hide resolved
@BFuks BFuks merged commit a2ff644 into substructure May 18, 2022
@BFuks BFuks deleted the sharedlib branch May 18, 2022 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️enhancement New feature or request 🦾ExpertMode Expert Mode SFS Simplified detector simulation in MadAnalysis 5
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Compilation error in sharedlib branch on Linux systems
2 participants