Skip to content

Conversation

@AllaMaevskaya
Copy link
Contributor

No description provided.

@AllaMaevskaya AllaMaevskaya force-pushed the fit-common-v0 branch 2 times, most recently from 6b72714 to aab17a9 Compare March 31, 2019 07:55
@AllaMaevskaya
Copy link
Contributor Author

Dear Sandro
I can not understand reason of this crash and how to solve problem:
== /Detectors/FIT/T0/macros/readHitsDigits.C - /Environment ===
=== /Detectors/FIT/T0/macros/readHitsDigits.C - Will not get stack trace of processes timing out: pstack not found ===
=== /Detectors/FIT/T0/macros/readHitsDigits.C - Timeout prefix: gtimeout --signal=SIGTERM --kill-after=10s 100s ===
=== /Detectors/FIT/T0/macros/readHitsDigits.C - Running root with args -n -b -l -q -e .L /build/ci_checks/o2_checker_macos_o2_ci_0/sw/SOURCES/O2/1836/0/Detectors/FIT/T0/macros/readHitsDigits.C (attempt 1/1) ===

G__BaseDict dictionary payload:4645:22: error: 'FairDetector' is an incomplete type
fDetector=dynamic_cast<FairDetector *>(mod);
^ ~~~~~~~~~~~~~~~~
/build/ci_checks/o2_checker_macos_o2_ci_0/sw/osx_x86-64/FairRoot/c672f280ec-13/include/FairDetector.h:25:7: note: definition of 'FairDetector' is not complete until the closing '}'
class FairDetector : public FairModule
^

@shahor02
Copy link
Collaborator

Hi @AllaMaevskaya ,
Can you try to guard the included headers of the macro as

#if !defined(__CLING__) || defined(__ROOTCLING__)                                                                                                                     
#include ...
#endif 

BTW, the FIT/T0/macros/readHitsDigits.C seems not to use T0Simulation/Detector.h, so you don't need to include it.

@AllaMaevskaya
Copy link
Contributor Author

Yes, macros does not use Detector.h - so what can I do with crash?

@shahor02
Copy link
Collaborator

Remove unnecessary headers and guard remaining ones by

#if !defined(__CLING__) || defined(__ROOTCLING__)                                                                                                                     
...
#endif 

@AllaMaevskaya AllaMaevskaya force-pushed the fit-common-v0 branch 3 times, most recently from db6e49d to f79b76b Compare March 31, 2019 11:40
@AllaMaevskaya AllaMaevskaya force-pushed the fit-common-v0 branch 2 times, most recently from 8d690cf to 6756e03 Compare April 1, 2019 06:09
@AllaMaevskaya
Copy link
Contributor Author

Dear Sandro,
is it possible to merge branches now and we will continue from here. For us is very important to have T0/V0 separated code in dev as soon as possible.

Best regards
Alla

@sawenzel
Copy link
Collaborator

sawenzel commented Apr 1, 2019

I am on it. Unit tests still fail.

@mslupeck
Copy link
Collaborator

mslupeck commented Apr 1, 2019

@sawenzel I see the test in DataFormats fail, because the length of detector names is not 3-characters long ("T0" and "V0"). What's the best approach to fix it? Should we modify the whole new code so that all the namespaces, names, etc are 3-letters long, or is it enough to just modify the test and add T0 and V0 as 2-letter exceptions there?

#12 Detector T0 ID=12 mask: 001000000000000
/build/ci_checks/o2_checker_macos_o2_ci_1/sw/SOURCES/O2/1836/0/DataFormats/Detectors/Common/test/testDetID.cxx:29: �[1;31;49merror: in "DetID_test": check std::strlen(det.getName()) == 3 has failed�[0;39;49m
#13 Detector V0 ID=13 mask: 010000000000000
/build/ci_checks/o2_checker_macos_o2_ci_1/sw/SOURCES/O2/1836/0/DataFormats/Detectors/Common/test/testDetID.cxx:29: �[1;31;49merror: in "DetID_test": check std::strlen(det.getName()) == 3 has failed�[0;39;49m
#14 Detector ACO ID=14 mask: 100000000000000

�[1;31;49m*** 2 failures are detected in the test module "Test DetID"

@AllaMaevskaya
Copy link
Contributor Author

For us better to modify the test.

Best regards
Alla

@sawenzel
Copy link
Collaborator

sawenzel commented Apr 1, 2019

For now, I will modify the test so that we can go on (independently) from here. But we need to see if a 2 letter detector specifier would not cause problems somewhere else. We might eventually call the detector "T0+" and "V0+" if this can be used as names for ROOT branches.

@sawenzel sawenzel merged commit 90b5064 into AliceO2Group:dev Apr 1, 2019
@AllaMaevskaya
Copy link
Contributor Author

Thank you

@shahor02
Copy link
Collaborator

shahor02 commented Apr 1, 2019

I think DataOrigin also requires 3-char name, I would rename to T0+, V0+

@sawenzel
Copy link
Collaborator

sawenzel commented Apr 1, 2019

Agreed. I tried but needs a few changes and there which I leave to the original authors.

@ktf
Copy link
Member

ktf commented Apr 1, 2019

DataOrigin is an int actually, so 1-4 chars. No need for zero termination. If you use two chars, make sure you also set the forth byte.

EmilGorm pushed a commit to EmilGorm/AliceO2 that referenced this pull request Apr 15, 2023
* Fixed the patition issue with sign of particles

* fixed partition issue with sign of partilces
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.

5 participants