Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions Tools/KFparticle/qaKFParticle.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,43 @@
///

#include "Tools/KFparticle/qaKFParticle.h"

#include "TableHelper.h"

#include <CCDB/BasicCCDBManager.h>
#include <string>

#include <TDatabasePDG.h>
#include <TPDGCode.h>
#include "TableHelper.h"

#include <string>

/// includes O2
#include "DataFormatsParameters/GRPMagField.h"
#include "DataFormatsParameters/GRPObject.h"
#include "DetectorsBase/GeometryManager.h"
#include "DetectorsBase/Propagator.h"
#include "Framework/AnalysisDataModel.h"
#include "Framework/AnalysisTask.h"
#include "Framework/HistogramRegistry.h"
#include "Framework/AnalysisDataModel.h"
#include "Framework/runDataProcessing.h"
#include "ReconstructionDataFormats/DCA.h"
#include "ReconstructionDataFormats/Track.h"
#include "DataFormatsParameters/GRPObject.h"
#include "DataFormatsParameters/GRPMagField.h"
#include "DetectorsBase/GeometryManager.h"
#include "DetectorsBase/Propagator.h"

/// includes O2Physics
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/TrackSelectionTables.h"
#include "Common/DataModel/PIDResponse.h"
#include "Common/Core/trackUtilities.h"
#include "Common/Core/RecoDecay.h"
#include "Common/Core/TrackSelection.h"
#include "Common/Core/TrackSelectionDefaults.h"
#include "Common/Core/RecoDecay.h"
#include "Common/Core/trackUtilities.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/PIDResponseTOF.h"
#include "Common/DataModel/PIDResponseTPC.h"
#include "Common/DataModel/TrackSelectionTables.h"
#include "Tools/KFparticle/KFUtilities.h"

/// includes KFParticle
#include "KFParticle.h"
#include "KFPTrack.h"
#include "KFPVertex.h"
#include "KFParticle.h"
#include "KFParticleBase.h"
#include "KFVertex.h"

Expand Down Expand Up @@ -330,22 +335,22 @@
bool isSelectedTracks(const T& track1, const T& track2)
{
/// DCA XY of the daughter tracks to the primaty vertex
if (fabs(track1.dcaXY()) > d_dcaXYTrackPV) {

Check failure on line 338 in Tools/KFparticle/qaKFParticle.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
histos.fill(HIST("DZeroCandTopo/Selections"), 6.f);
return false;
}
/// DCA XY of the daughter tracks to the primaty vertex
if (fabs(track2.dcaXY()) > d_dcaXYTrackPV) {

Check failure on line 343 in Tools/KFparticle/qaKFParticle.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
histos.fill(HIST("DZeroCandTopo/Selections"), 6.f);
return false;
}
/// DCA Z of the daughter tracks to the primaty vertex
if (fabs(track1.dcaZ()) > d_dcaZTrackPV) {

Check failure on line 348 in Tools/KFparticle/qaKFParticle.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
histos.fill(HIST("DZeroCandTopo/Selections"), 7.f);
return false;
}
/// DCA Z of the daughter tracks to the primaty vertex
if (fabs(track2.dcaZ()) > d_dcaZTrackPV) {

Check failure on line 353 in Tools/KFparticle/qaKFParticle.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
histos.fill(HIST("DZeroCandTopo/Selections"), 7.f);
return false;
}
Expand Down Expand Up @@ -457,15 +462,15 @@
{
switch (particle) {
case kPiPlus: {
if ((track.pt() <= ptPidTofMinPi) && track.hasTPC() && (abs(track.tpcNSigmaPi()) < nSigmaTpcMaxPi)) {

Check failure on line 465 in Tools/KFparticle/qaKFParticle.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return true;
} else if ((track.pt() > ptPidTofMinPi) && track.hasTPC() && !track.hasTOF() && (abs(track.tpcNSigmaPi()) < nSigmaTpcMaxPi)) {

Check failure on line 467 in Tools/KFparticle/qaKFParticle.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return true;
} else if ((track.pt() > ptPidTofMinPi) && !track.hasTPC() && track.hasTOF() && (abs(track.tofNSigmaPi()) < nSigmaTofMaxPi)) {

Check failure on line 469 in Tools/KFparticle/qaKFParticle.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return true;
} else if ((track.pt() > ptPidTofMinPi) && track.hasTPC() && track.hasTOF()) {
float CombinednSigma = 1. / sqrt(2) * sqrt((track.tpcNSigmaPi() * track.tpcNSigmaPi()) + (track.tofNSigmaPi() * track.tofNSigmaPi()));

Check failure on line 472 in Tools/KFparticle/qaKFParticle.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
if (abs(CombinednSigma) < nSigmaCombMaxPi) {

Check failure on line 473 in Tools/KFparticle/qaKFParticle.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return true;
} else {
return false;
Expand All @@ -476,7 +481,7 @@
break;
}
case kKPlus: {
if ((track.pt() <= ptPidTofMinKa) && track.hasTPC() && (abs(track.tpcNSigmaKa()) < nSigmaTpcMaxKa)) {

Check failure on line 484 in Tools/KFparticle/qaKFParticle.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return true;
} else if ((track.pt() > ptPidTofMinKa) && track.hasTPC() && !track.hasTOF() && (abs(track.tpcNSigmaKa()) < nSigmaTpcMaxKa)) {
return true;
Expand Down
31 changes: 18 additions & 13 deletions Tools/KFparticle/qaKFParticleLc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,43 @@
///

#include "Tools/KFparticle/qaKFParticleLc.h"

#include "TableHelper.h"

#include <CCDB/BasicCCDBManager.h>
#include <string>

#include <TDatabasePDG.h>
#include <TPDGCode.h>
#include "TableHelper.h"

#include <string>

/// includes O2
#include "DataFormatsParameters/GRPMagField.h"
#include "DataFormatsParameters/GRPObject.h"
#include "DetectorsBase/GeometryManager.h"
#include "DetectorsBase/Propagator.h"
#include "Framework/AnalysisDataModel.h"
#include "Framework/AnalysisTask.h"
#include "Framework/HistogramRegistry.h"
#include "Framework/AnalysisDataModel.h"
#include "Framework/runDataProcessing.h"
#include "ReconstructionDataFormats/DCA.h"
#include "ReconstructionDataFormats/Track.h"
#include "DataFormatsParameters/GRPObject.h"
#include "DataFormatsParameters/GRPMagField.h"
#include "DetectorsBase/GeometryManager.h"
#include "DetectorsBase/Propagator.h"

/// includes O2Physics
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/TrackSelectionTables.h"
#include "Common/DataModel/PIDResponse.h"
#include "Common/Core/trackUtilities.h"
#include "Common/Core/RecoDecay.h"
#include "Common/Core/TrackSelection.h"
#include "Common/Core/TrackSelectionDefaults.h"
#include "Common/Core/RecoDecay.h"
#include "Common/Core/trackUtilities.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/PIDResponseTOF.h"
#include "Common/DataModel/PIDResponseTPC.h"
#include "Common/DataModel/TrackSelectionTables.h"
#include "Tools/KFparticle/KFUtilities.h"

/// includes KFParticle
#include "KFParticle.h"
#include "KFPTrack.h"
#include "KFPVertex.h"
#include "KFParticle.h"
#include "KFParticleBase.h"
#include "KFVertex.h"

Expand Down
Loading