Skip to content

Commit b5699e6

Browse files
authored
[PWGEM/Dilepton] update treeCreatorElectronMLDDA.cxx for ITSsa (#11718)
1 parent b102b16 commit b5699e6

File tree

2 files changed

+172
-133
lines changed

2 files changed

+172
-133
lines changed

PWGEM/Dilepton/DataModel/lmeeMLTables.h

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,48 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#include <vector>
13-
#include "Framework/AnalysisDataModel.h"
14-
#include "Common/DataModel/PIDResponse.h"
12+
#include "Common/DataModel/Centrality.h"
1513
#include "Common/DataModel/EventSelection.h"
16-
#include "Common/DataModel/TrackSelectionTables.h"
1714
#include "Common/DataModel/Multiplicity.h"
18-
#include "Common/DataModel/Centrality.h"
15+
#include "Common/DataModel/PIDResponse.h"
16+
#include "Common/DataModel/TrackSelectionTables.h"
17+
18+
#include "Framework/AnalysisDataModel.h"
19+
20+
#include <vector>
1921

2022
#ifndef PWGEM_DILEPTON_DATAMODEL_LMEEMLTABLES_H_
2123
#define PWGEM_DILEPTON_DATAMODEL_LMEEMLTABLES_H_
2224

2325
namespace o2::aod
2426
{
2527

26-
namespace pwgem::dilepton
28+
namespace pwgem::dilepton::ml
2729
{
28-
enum class PID_Label : int {
29-
kUnDef = -1,
30+
enum class PID_Label : uint8_t {
3031
kElectron = 0,
3132
kMuon = 1,
3233
kPion = 2,
3334
kKaon = 3,
3435
kProton = 4,
3536
}; // this can be used for eID.
3637

37-
enum class Track_Type : int {
38+
enum class Track_Type : uint8_t {
3839
kPrimary = 0,
3940
kSecondary = 1,
4041
}; // this can be used for selecting electron from primary or photon conversion.
4142

42-
} // namespace pwgem::dilepton
43+
} // namespace pwgem::dilepton::ml
4344

4445
namespace emprimarytrack
4546
{
46-
DECLARE_SOA_COLUMN(CollisionId, collisionId, int); //!
47-
DECLARE_SOA_COLUMN(PIDLabel, pidlabel, int); //!
48-
DECLARE_SOA_COLUMN(TrackType, tracktype, int); //!
49-
DECLARE_SOA_COLUMN(TPCNClsFound, tpcNClsFound, int); //!
50-
DECLARE_SOA_COLUMN(TPCNClsCrossedRows, tpcNClsCrossedRows, int); //!
51-
DECLARE_SOA_COLUMN(IsForValidation, isForValidation, bool); //!
47+
// DECLARE_SOA_COLUMN(CollisionId, collisionId, int); //!
48+
DECLARE_SOA_COLUMN(PIDLabel, pidlabel, uint8_t); //!
49+
DECLARE_SOA_COLUMN(TrackType, tracktype, uint8_t); //!
50+
DECLARE_SOA_COLUMN(TPCNClsFound, tpcNClsFound, uint8_t); //!
51+
DECLARE_SOA_COLUMN(TPCNClsCrossedRows, tpcNClsCrossedRows, uint8_t); //!
52+
DECLARE_SOA_COLUMN(IsForValidation, isForValidation, bool); //!
53+
DECLARE_SOA_COLUMN(Sign, sign, short); //!
5254
DECLARE_SOA_DYNAMIC_COLUMN(P, p, [](float pt, float eta) -> float { return pt * std::cosh(eta); });
5355
DECLARE_SOA_DYNAMIC_COLUMN(MeanClusterSizeITS, meanClusterSizeITS, [](uint32_t itsClusterSizes) -> float {
5456
int total_cluster_size = 0, nl = 0;
@@ -84,8 +86,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(MeanClusterSizeITSob, meanClusterSizeITSob, [](uint32
8486

8587
// reconstructed track information
8688
DECLARE_SOA_TABLE(EMPrimaryTracks, "AOD", "EMPTRACK", //!
87-
o2::soa::Index<>, emprimarytrack::CollisionId, collision::PosZ, collision::NumContrib, evsel::NumTracksInTimeRange, evsel::SumAmpFT0CInTimeRange,
88-
track::Pt, track::Eta, track::Phi, track::Tgl, track::Signed1Pt,
89+
o2::soa::Index<>, collision::PosZ, collision::NumContrib, evsel::NumTracksInTimeRange, evsel::SumAmpFT0CInTimeRange,
90+
track::Pt, track::Eta, track::Phi, track::Tgl, emprimarytrack::Sign,
8991
track::DcaXY, track::DcaZ, track::CYY, track::CZZ, track::CZY,
9092
track::TPCNClsFindable, emprimarytrack::TPCNClsFound, emprimarytrack::TPCNClsCrossedRows,
9193
track::TPCChi2NCl, track::TPCInnerParam,

0 commit comments

Comments
 (0)