Skip to content

Cleanup basemq#1340

Merged
dennisklein merged 7 commits intoFairRootGroup:devfrom
rbx:lil-cleanup
Feb 9, 2023
Merged

Cleanup basemq#1340
dennisklein merged 7 commits intoFairRootGroup:devfrom
rbx:lil-cleanup

Conversation

@rbx
Copy link
Copy Markdown
Member

@rbx rbx commented Feb 6, 2023

  • Make basemq/tasks/FairMQ*Task header only.

  • Remove unused files:

    • basemq/baseMQtools/baseMQtools.h
    • basemq/policies/Sampler/FairMQFileSource.h
    • basemq/policies/Sampler/FairSourceMQInterface.h
    • basemq/policies/Sampler/SimpleTreeReader.h
    • basemq/policies/Serialization/BinaryBaseClassSerializer.h
    • basemq/policies/Storage/BinaryOutFileManager.h
    • basemq/policies/Storage/BoostDataSaver.h
    • basemq/policies/Storage/TriviallyCopyableDataSaver.h

    These are not used anywhere in FairRoot nor in Alice, CBM, PANDA or R3B.

  • Rewrite MBSSink without policies.

    • This also allows removal of basemq/policies/Serialization/IOPolicy.h
  • Simplify RootOutFileManager and move it to the serialization example, where it is used.

In my opinion, these classes add unnecessary indirections, without providing much benefit. The code is much more straight-forward without them. Since they have not been used since their introduction (9 years ago), I don't see a reason to keep maintaining them.

Ideally deprecating them first would be cleaner, but I'm pretty sure they are not in use. Comment if you strongly disagree ;)

This was mainly for me to see if it can be done, and how much it simplifies.

If you think this is a bad idea - comment :)

Copy link
Copy Markdown
Member

@ChristianTackeGSI ChristianTackeGSI left a comment

Choose a reason for hiding this comment

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

First quick looks. I'll take a deeper look tomorrow.

Comment thread basemq/tasks/FairMQProcessorTask.h Outdated
Comment thread basemq/CMakeLists.txt
Comment thread examples/MQ/Lmd/runMBSSink.cxx Outdated
@rbx rbx force-pushed the lil-cleanup branch 4 times, most recently from c6dcc91 to 1c5180c Compare February 7, 2023 12:23
Copy link
Copy Markdown
Member

@ChristianTackeGSI ChristianTackeGSI left a comment

Choose a reason for hiding this comment

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

Just a bunch of more notes. I have to admit, that I haven't understood all of the stuff here. I might take another round.

Comment thread basemq/CMakeLists.txt
Comment thread basemq/tasks/FairMQSamplerTask.h
Comment thread basemq/tasks/FairMQSamplerTask.h Outdated
Comment thread examples/MQ/serialization/data_generator/RootOutFileManager.h
Comment thread examples/MQ/serialization/data_generator/dataGenerator.cxx Outdated
@rbx rbx force-pushed the lil-cleanup branch 3 times, most recently from ac92ee7 to 8525f92 Compare February 8, 2023 09:32
Copy link
Copy Markdown
Member

@ChristianTackeGSI ChristianTackeGSI left a comment

Choose a reason for hiding this comment

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

I am okay with this now. Others might take a look as well?

@rbx
Copy link
Copy Markdown
Member Author

rbx commented Feb 8, 2023

Updated the format >.>

@dennisklein dennisklein merged commit b7df117 into FairRootGroup:dev Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants