Skip to content

Conversation

@prchakra
Copy link
Collaborator

The extra factor of 0.1 that was scaling the magnetic field is removed.
However, after removing this factor, the asin() function for calculating dphi was blowing up at certain (mostly higher) values of radii. This is also taken care of by only allowing abs() < 1.0.

The extra factor of 0.1 that was scaling the magnetic field is removed. 
However, after removing this factor, the asin(<arg>) function for calculating dphi was blowing up at certain (mostly higher) values of radii. This is also taken care of by only allowing abs(<arg>) < 1.0.
The extra factor of 0.1 that was scaling the magnetic field is removed.
However, after removing this factor, the asin() function for calculating dphi was blowing up at certain (mostly higher) values of radii. This is also taken care of by only allowing abs() < 1.0.
@alibuild
Copy link
Collaborator

Error while checking build/O2Physics/o2 for 19ee9b8 at 2024-04-16 20:04:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseDetaDphiStar.h:632:2: error: expected ';' after class definition
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseDetaDphiStar.h:575:5: error: a template declaration cannot appear at block scope
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseDetaDphiStar.h:612:5: error: a template declaration cannot appear at block scope
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUtils.h:99:27: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUtils.h:99:78: error: expected primary-expression before 'int'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUtils.h:99:91: error: expression list treated as compound expression in initializer [-fpermissive]
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:208:25: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:208:51: error: expected ',' or '...' before 'trackType'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:234:7: error: 'aod' in namespace 'o2::analysis::o2' does not name a type
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:154:50: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:154:100: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:158:37: error: 'mTrackType' was not declared in this scope; did you mean 'SetTrackType'?
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:179:67: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:188:67: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:194:70: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:30:21: error: 'framework' is not a namespace-name
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:51:17: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:51:58: error: expected '>' before 'part'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:55:52: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:55:97: error: 'part' was not declared in this scope
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:56:59: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:56:104: error: 'part' was not declared in this scope
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:34:21: error: 'framework' is not a namespace-name
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:102:17: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:102:58: error: expected '>' before 'part'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:123:41: error: 'o2::analysis::o2::track' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:123:52: error: expected ',' or '...' before 'pid'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:131:41: error: 'o2::analysis::o2::track' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:131:52: error: expected ',' or '...' before 'pid'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:154:17: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:154:58: error: expected '>' before 'part'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:155:15: error: 'T' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:245:19: error: 'track' is not a member of 'o2::analysis::o2'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:245:29: error: template argument 1 is invalid
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:245:29: error: template argument 2 is invalid
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:245:8: error: '<expression error>' in namespace 'std' does not name a type
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:112:14: error: 'o2::analysis::o2::track' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:115:3: error: expected primary-expression before '}' token
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:115:3: error: expected ';' before '}' token
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:115:3: error: expected primary-expression before '}' token
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:115:3: error: expected ')' before '}' token
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:115:3: error: expected primary-expression before '}' token
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:293:15: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:293:56: error: expected '>' before 'part'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:294:67: error: redefinition of default argument for '<declaration error>'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:298:59: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:298:104: error: 'part' was not declared in this scope
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:298:148: error: 'o2::analysis::o2::aod' has not been declared
[0 more errors; see full log]

Full log here.

@alibuild
Copy link
Collaborator

Error while checking build/O2Physics/o2 for 1144180 at 2024-04-16 20:47:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseDetaDphiStar.h:445:2: error: expected ';' after class definition
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseDetaDphiStar.h:390:3: error: a template declaration cannot appear at block scope
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseDetaDphiStar.h:428:3: error: a template declaration cannot appear at block scope
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUtils.h:99:27: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUtils.h:99:78: error: expected primary-expression before 'int'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUtils.h:99:91: error: expression list treated as compound expression in initializer [-fpermissive]
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:208:25: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:208:51: error: expected ',' or '...' before 'trackType'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:234:7: error: 'aod' in namespace 'o2::analysis::o2' does not name a type
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:154:50: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:154:100: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:158:37: error: 'mTrackType' was not declared in this scope; did you mean 'SetTrackType'?
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:179:67: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:188:67: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/Common/Core/TrackSelection.h:194:70: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:30:21: error: 'framework' is not a namespace-name
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:51:17: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:51:58: error: expected '>' before 'part'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:55:52: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:55:97: error: 'part' was not declared in this scope
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:56:59: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseObjectSelection.h:56:104: error: 'part' was not declared in this scope
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:34:21: error: 'framework' is not a namespace-name
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:102:17: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:102:58: error: expected '>' before 'part'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:123:41: error: 'o2::analysis::o2::track' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:123:52: error: expected ',' or '...' before 'pid'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:131:41: error: 'o2::analysis::o2::track' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:131:52: error: expected ',' or '...' before 'pid'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:154:17: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:154:58: error: expected '>' before 'part'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:155:15: error: 'T' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:245:19: error: 'track' is not a member of 'o2::analysis::o2'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:245:29: error: template argument 1 is invalid
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:245:29: error: template argument 2 is invalid
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:245:8: error: '<expression error>' in namespace 'std' does not name a type
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:112:14: error: 'o2::analysis::o2::track' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:115:3: error: expected primary-expression before '}' token
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:115:3: error: expected ';' before '}' token
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:115:3: error: expected primary-expression before '}' token
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:115:3: error: expected ')' before '}' token
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:115:3: error: expected primary-expression before '}' token
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:293:15: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:293:56: error: expected '>' before 'part'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:294:67: error: redefinition of default argument for '<declaration error>'
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:298:59: error: 'o2::analysis::o2::aod' has not been declared
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:298:104: error: 'part' was not declared in this scope
/sw/SOURCES/O2Physics/5643-slc7_x86-64/0/PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h:298:148: error: 'o2::analysis::o2::aod' has not been declared
[0 more errors; see full log]

Full log here.

@victor-gonzalez victor-gonzalez merged commit b279deb into AliceO2Group:master Apr 16, 2024
christianreckziegel pushed a commit to christianreckziegel/O2Physics that referenced this pull request May 2, 2024
…#5643)

* PWGCF : Femtouniverse -- Fixing bug in dphi calculation

The extra factor of 0.1 that was scaling the magnetic field is removed. 
However, after removing this factor, the asin(<arg>) function for calculating dphi was blowing up at certain (mostly higher) values of radii. This is also taken care of by only allowing abs(<arg>) < 1.0.

* PWGCF : Femtouniverse -- Fixing bug in dphi calculation

The extra factor of 0.1 that was scaling the magnetic field is removed.
However, after removing this factor, the asin() function for calculating dphi was blowing up at certain (mostly higher) values of radii. This is also taken care of by only allowing abs() < 1.0.

* Update FemtoUniverseDetaDphiStar.h

* Update FemtoUniverseDetaDphiStar.h
hahassan7 pushed a commit to hahassan7/O2Physics that referenced this pull request May 17, 2024
…#5643)

* PWGCF : Femtouniverse -- Fixing bug in dphi calculation

The extra factor of 0.1 that was scaling the magnetic field is removed. 
However, after removing this factor, the asin(<arg>) function for calculating dphi was blowing up at certain (mostly higher) values of radii. This is also taken care of by only allowing abs(<arg>) < 1.0.

* PWGCF : Femtouniverse -- Fixing bug in dphi calculation

The extra factor of 0.1 that was scaling the magnetic field is removed.
However, after removing this factor, the asin() function for calculating dphi was blowing up at certain (mostly higher) values of radii. This is also taken care of by only allowing abs() < 1.0.

* Update FemtoUniverseDetaDphiStar.h

* Update FemtoUniverseDetaDphiStar.h
double dphis = 0.0;

double dphis = part2.phi() - part1.phi() + TMath::ASin(afsi1b) - TMath::ASin(afsi0b);
if (abs(afsi0b) < 1.0 && abs(afsi0b) < 1.0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Bug

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Was fixed already

if (std::abs(afsi0b) < 1.0 && std::abs(afsi0b) < 1.0) {

Copy link
Collaborator

Choose a reason for hiding this comment

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

Was fixed already

if (std::abs(afsi0b) < 1.0 && std::abs(afsi0b) < 1.0) {

No it wasn't. You are just quoting the bug.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed #14106

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good

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