⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
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
1 change: 0 additions & 1 deletion PWGUD/Core/UDHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "PWGUD/Core/UPCHelpers.h"

#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/PIDResponse.h"
#include "Common/DataModel/TrackSelectionTables.h"

#include "CommonConstants/LHCConstants.h"
Expand All @@ -28,7 +27,7 @@
#include "DataFormatsFT0/Digit.h"
#include "Framework/Logger.h"

#include "TLorentzVector.h"

Check failure on line 30 in PWGUD/Core/UDHelpers.h

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.

#include <bitset>
#include <vector>
Expand Down Expand Up @@ -763,7 +762,7 @@
bool isPythiaCDE(T MCparts)
{
for (const auto& mcpart : MCparts) {
if (mcpart.pdgCode() == 9900110) {

Check failure on line 765 in PWGUD/Core/UDHelpers.h

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
return true;
}
}
Expand All @@ -779,9 +778,9 @@
if (MCparts.size() < 3) {
return false;
} else {
if (MCparts.iteratorAt(0).pdgCode() != 443013)

Check failure on line 781 in PWGUD/Core/UDHelpers.h

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
return false;
if (std::abs(MCparts.iteratorAt(1).pdgCode()) != 13)

Check failure on line 783 in PWGUD/Core/UDHelpers.h

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
return false;
if (MCparts.iteratorAt(2).pdgCode() != -MCparts.iteratorAt(1).pdgCode())
return false;
Expand Down Expand Up @@ -823,11 +822,11 @@
if (MCparts.size() < 6) {
return false;
} else {
if (MCparts.iteratorAt(0).pdgCode() != 2212)

Check failure on line 825 in PWGUD/Core/UDHelpers.h

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
return false;
if (MCparts.iteratorAt(1).pdgCode() != 2212)

Check failure on line 827 in PWGUD/Core/UDHelpers.h

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
return false;
if (MCparts.iteratorAt(2).pdgCode() != 2212)

Check failure on line 829 in PWGUD/Core/UDHelpers.h

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
return false;
if (MCparts.iteratorAt(3).pdgCode() != 2212)
return false;
Expand Down Expand Up @@ -868,13 +867,13 @@
// -----------------------------------------------------------------------------
// Invariant mass of GRANIITTI generated event
template <typename T>
TLorentzVector ivmGraniittiCDE(T MCparts)

Check failure on line 870 in PWGUD/Core/UDHelpers.h

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
{
TLorentzVector ivm = TLorentzVector(0., 0., 0., 0.);

Check failure on line 872 in PWGUD/Core/UDHelpers.h

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.

// is this a GRANIITTI generated event?
if (isGraniittiCDE(MCparts)) {
TLorentzVector lvtmp;

Check failure on line 876 in PWGUD/Core/UDHelpers.h

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.

for (int ii = 7; ii < MCparts.size(); ii++) {
auto mcPart = MCparts.iteratorAt(ii);
Expand Down
9 changes: 5 additions & 4 deletions PWGUD/DataModel/SGTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
#ifndef PWGUD_DATAMODEL_SGTABLES_H_
#define PWGUD_DATAMODEL_SGTABLES_H_

#include <vector>
#include <cmath>
#include "Common/DataModel/TrackSelectionTables.h"

#include "Framework/ASoA.h"
#include "Framework/AnalysisDataModel.h"
#include "Framework/DataTypes.h"
#include "MathUtils/Utils.h"
#include "Common/DataModel/PIDResponse.h"
#include "Common/DataModel/TrackSelectionTables.h"

#include <cmath>
#include <vector>

namespace o2::aod
{
Expand Down
3 changes: 2 additions & 1 deletion PWGUD/DataModel/UDTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
#ifndef PWGUD_DATAMODEL_UDTABLES_H_
#define PWGUD_DATAMODEL_UDTABLES_H_

#include "Common/DataModel/PIDResponse.h"
#include "Common/DataModel/PIDResponseTOF.h"
#include "Common/DataModel/PIDResponseTPC.h"
#include "Common/DataModel/TrackSelectionTables.h"

#include "Framework/ASoA.h"
Expand Down
10 changes: 6 additions & 4 deletions Tutorials/PWGUD/UDTutorial_01.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
// \author Paul Buehler, paul.buehler@oeaw.ac.at
// \since April 2023

#include "Framework/runDataProcessing.h"
#include "PWGUD/Core/UDHelpers.h"
#include "PWGUD/DataModel/UDTables.h"

#include "Common/DataModel/PIDResponseTOF.h"

#include "Framework/AnalysisTask.h"
#include "Framework/runDataProcessing.h"

#include "TVector3.h"
#include "Common/DataModel/PIDResponse.h"
#include "PWGUD/DataModel/UDTables.h"
#include "PWGUD/Core/UDHelpers.h"

using namespace o2;
using namespace o2::framework;
Expand Down
8 changes: 4 additions & 4 deletions Tutorials/PWGUD/UDTutorial_02a.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
// \author Paul Buehler, paul.buehler@oeaw.ac.at
// \since April 2023

#include "Framework/runDataProcessing.h"
#include "PWGUD/Core/UDHelpers.h"
#include "PWGUD/DataModel/UDTables.h"

#include "Framework/AnalysisTask.h"
#include "Framework/runDataProcessing.h"

#include "TDatabasePDG.h"
#include "TLorentzVector.h"
#include "Common/DataModel/PIDResponse.h"
#include "PWGUD/DataModel/UDTables.h"
#include "PWGUD/Core/UDHelpers.h"

using namespace o2;
using namespace o2::framework;
Expand Down
11 changes: 5 additions & 6 deletions Tutorials/PWGUD/UDTutorial_02b.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
// \author Paul Buehler, paul.buehler@oeaw.ac.at
// \since April 2023

#include "Framework/runDataProcessing.h"
#include "Framework/AnalysisTask.h"

#include "Common/DataModel/PIDResponse.h"
#include "PWGUD/DataModel/UDTables.h"
#include "PWGUD/Core/UDHelpers.h"
#include "PWGUD/Core/DGPIDSelector.h"
#include "PWGUD/Core/UDHelpers.h"
#include "PWGUD/DataModel/UDTables.h"

#include "Framework/AnalysisTask.h"
#include "Framework/runDataProcessing.h"

using namespace o2;
using namespace o2::framework;
Expand Down
12 changes: 7 additions & 5 deletions Tutorials/PWGUD/UDTutorial_03a.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
// \author Paul Buehler, paul.buehler@oeaw.ac.at
// \since October 2023

#include "Framework/runDataProcessing.h"
#include "PWGUD/Core/UDHelpers.h"

#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/PIDResponseTPC.h"
#include "Common/DataModel/TrackSelectionTables.h"

#include "Framework/AnalysisTask.h"
#include "Framework/runDataProcessing.h"

#include "TDatabasePDG.h"
#include "TLorentzVector.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/TrackSelectionTables.h"
#include "Common/DataModel/PIDResponse.h"
#include "PWGUD/Core/UDHelpers.h"

using namespace o2;
using namespace o2::framework;
Expand Down
12 changes: 7 additions & 5 deletions Tutorials/PWGUD/UDTutorial_03b.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
// \author Paul Buehler, paul.buehler@oeaw.ac.at
// \since October 2023

#include "Framework/runDataProcessing.h"
#include "PWGUD/Core/UDHelpers.h"

#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/PIDResponseTPC.h"
#include "Common/DataModel/TrackSelectionTables.h"

#include "Framework/AnalysisTask.h"
#include "Framework/runDataProcessing.h"

#include "TDatabasePDG.h"
#include "TLorentzVector.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/TrackSelectionTables.h"
#include "Common/DataModel/PIDResponse.h"
#include "PWGUD/Core/UDHelpers.h"

using namespace o2;
using namespace o2::framework;
Expand Down
Loading