Skip to content

Commit

Permalink
pulling back central updates
Browse files Browse the repository at this point in the history
  • Loading branch information
abilandz committed Oct 12, 2024
1 parent 3088ff0 commit 8f694a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions PWGCF/MultiparticleCorrelations/Core/MuPa-MemberFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -2105,7 +2105,7 @@ void BookParticleCutsHistograms()
if (pc.fUseParticleCuts[ePtDependentDCAxyParameterization]) {
pc.fPtDependentDCAxyFormula = new TFormula("fPtDependentDCAxyFormula", pc.fsParticleCuts[ePtDependentDCAxyParameterization].Data());
// As a quick insanity check, try immediately to evaluate something from this formula:
if (isnan(pc.fPtDependentDCAxyFormula->Eval(1.44))) {
if (std::isnan(pc.fPtDependentDCAxyFormula->Eval(1.44))) {
LOGF(fatal, "\033[1;31m%s at line %d\033[0m", __FUNCTION__, __LINE__);
}
} // if(pc.fUseParticleCuts[ePtDependentDCAxyParameterization]) {
Expand Down Expand Up @@ -4339,10 +4339,10 @@ bool ValidTrack(T const& track)
// c) Additional validity checks for all tracks (in Run 3, 2 and 1), use only during debugging:
if (tc.fInsanityCheckForEachParticle) {

// *) isnan() check (remember that 'nan' is 0./0., inf-inf, etc. However 'inf' itself is NOT a 'nan', therefore isnan(1./0.) is false, isnan(0./0.) is true, etc.):
if (isnan(track.phi()) || isnan(track.pt()) || isnan(track.eta())) {
// *) std::isnan() check (remember that 'nan' is 0./0., inf-inf, etc. However 'inf' itself is NOT a 'nan', therefore std::isnan(1./0.) is false, std::isnan(0./0.) is true, etc.):
if (std::isnan(track.phi()) || std::isnan(track.pt()) || std::isnan(track.eta())) {
if (tc.fVerboseForEachParticle) {
LOGF(info, "\033[1;31m%s isnan(track.phi()) || isnan(track.pt()) || isnan(track.eta())\033[0m", __FUNCTION__);
LOGF(info, "\033[1;31m%s std::isnan(track.phi()) || std::isnan(track.pt()) || std::isnan(track.eta())\033[0m", __FUNCTION__);
LOGF(error, "track.phi() = %f\ntrack.pt() = %f\ntrack.eta() = %f", track.phi(), track.pt(), track.eta());
}
return kFALSE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ struct MultiparticleCorrelationsAB // this name is used in lower-case format to
// -------------------------------------------

// C) Process only simulated data:
void processSim(CollisionSim const& collision, aod::BCs const&, TracksSim const& tracks)
void processSim(CollisionSim const& /*collision*/, aod::BCs const&, TracksSim const& /*tracks*/)
{
// Steer<eSim>(collision, tracks); // TBI 20240517 not ready yet, but I do not really need this one urgently, since RecSim is working, and I need that one for efficiencies...
}
Expand All @@ -216,7 +216,7 @@ struct MultiparticleCorrelationsAB // this name is used in lower-case format to
// -------------------------------------------

// F) Process only converted simulated Run 2 data:
void processSim_Run2(CollisionSim const& collision) // TBI 20240517 extend this subscription eventually
void processSim_Run2(CollisionSim const& /*collision*/) // TBI 20240517 extend this subscription eventually
{
// Steer<eSim_Run2>(collision, tracks); // TBI 20240517 not ready yet, but I do not really need this one urgently, since RecSim_Run2 is working, and I need that one for efficiencies...
}
Expand All @@ -234,7 +234,7 @@ struct MultiparticleCorrelationsAB // this name is used in lower-case format to
// -------------------------------------------

// H) Process both converted reconstructed and corresponding MC truth simulated Run 1 data;
void processRecSim_Run1(CollisionRecSim_Run1 const& collision, aod::BCs const&, TracksRecSim const& tracks, aod::McParticles const&, aod::McCollisions const&)
void processRecSim_Run1(CollisionRecSim_Run1 const& /*collision*/, aod::BCs const&, TracksRecSim const& /*tracks*/, aod::McParticles const&, aod::McCollisions const&)
{
// Steer<eRecAndSim_Run1>(collision, tracks); // TBI 20240517 not ready yet, but for benchmarking in any case I need only "Rec"
}
Expand Down

0 comments on commit 8f694a1

Please sign in to comment.