Skip to content

Conversation

@shahor02
Copy link
Collaborator

Hi @MohammadAlTurany, I've modified Common/Field/MagneticField to derive from FairField
to fill it params into MagFieldParam inheriting from FairParGenericSet, as we discussed privately.
Note that the MagneticField::FillParContainer() looks for ((FairRun*)fRun)->GetRuntimeDb()->getContainer("MagFieldParam") which it currently will not find, since current of instances of FairRun derive from Tutorial3 with hardcoded FairConstField / FairConstPar. Anyway, I understood you wanted implement yourself adding the field producer to the FairRun. I am wondering if we should not derive AliRun from FairRun, and set there all factories etc.

In case you will need to create MagneticField factory, note that on top of its standard c-tor I've added
MagneticField(MagFieldParam& params).

Question concerning MagFieldParam::getParams(FairParamList* list) implementation: one of the parameters to store is text string, and the only method I found to retrieve it was FairParamList::fill(const Text_t*,Text_t*,const Int_t), which leads to quite heavy construct to get the length of the string, see assignment of mMapPath in MagFieldParam::getParams. Is there an easier way of dealing with text (except storing TObjString?). Also, I think this FairParamList::fill(const Text_t* name,Text_t* value,const Int_t length) method has a bug: it requires that the supplied length argument (i.e. the size of buffer for value) be > strlen(of_stored_string)-1, while to should be simply > strlen(of_stored_string) to allow for trailing \0.

Cheers,
Ruben

shahor02 and others added 7 commits January 23, 2017 01:59
Implements a generic container for the union of a char and a
uint element of the same size. Simple definition of 1 to 8 byte
decriptors. The generalization for more than 8 bytes can be activated
later once an appropriate test setup is available.
Copy link
Collaborator

@matthiasrichter matthiasrichter left a comment

Choose a reason for hiding this comment

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

This PR contains commits which have been already merged in PR #220 and #221. @shahor02 probably your branch is not correctly rebased to the dev.

The commits by @mkrzewic and @matthiasrichter have to be removed from the PR

What I actually do not understand is why github does not detect this. Maybe the duplicated commits can be dropped silently when merging fast forward. But if the normal git merge would be applied I'm sure we suddenly have the commits twice in the history.


//__________________________________________________________________________________________________
struct DataHeader;
struct DataIdentifier;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Those changes have been merged in PR #220 and #221

@shahor02
Copy link
Collaborator Author

shahor02 commented Feb 7, 2017

Thanks for spotting @matthiasrichter ! I just synced my dev to upstream/dev, but since I had already stuff pushed, it merged rather than doing FF, hope this is not a problem.

@shahor02
Copy link
Collaborator Author

shahor02 commented Feb 7, 2017

Closing this one, will open new PR

@shahor02 shahor02 closed this Feb 7, 2017
knopers8 pushed a commit to knopers8/AliceO2 that referenced this pull request Sep 7, 2020
- Get rid of all cout/cerr in QC framework in favour of QCInfoLogger
- Introduce some of the changes I proposed in Qcinfologger to decrease verbosity, in particular ILOG(level) << xxx << ENDM
EmilGorm pushed a commit to EmilGorm/AliceO2 that referenced this pull request Nov 22, 2021
…liceO2Group#222)

* PWGHF: make HfTagSelTracks handle Run 3 data with unassigned tracks

* simplify

* do no re-get vertex position for tracks from the same collision
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.

3 participants