Skip to content

Commit 6aa65f0

Browse files
authored
PWGHF: Update tutorial (AliceO2Group#7897)
1 parent e5f881a commit 6aa65f0

File tree

7 files changed

+397
-109
lines changed

7 files changed

+397
-109
lines changed

Tutorials/PWGHF/DataModelMini.h

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

12-
/// \file task-mini.cxx
12+
/// \file DataModelMini.h
1313
/// \brief Mini version of the HF analysis chain
1414
///
1515
/// \author Vít Kučera <[email protected]>, Inha University
@@ -28,7 +28,7 @@ DECLARE_SOA_COLUMN(IsSelProng, isSelProng, bool); //! prong selection flag
2828
} // namespace hf_seltrack
2929

3030
// Track selection table
31-
DECLARE_SOA_TABLE(HfSelTrack, "AOD", "HFSELTRACK", //! track selection table
31+
DECLARE_SOA_TABLE(HfTSelTrack, "AOD", "HFTSELTRACK", //! track selection table
3232
hf_seltrack::IsSelProng);
3333

3434
namespace hf_track_index
@@ -39,7 +39,7 @@ DECLARE_SOA_INDEX_COLUMN_FULL(Prong1, prong1, int, Tracks, "_1"); //! prong 1
3939
} // namespace hf_track_index
4040

4141
// Track index skim table
42-
DECLARE_SOA_TABLE(HfTrackIndexProng2, "AOD", "HFTRACKIDXP2", //! table with prongs indices
42+
DECLARE_SOA_TABLE(HfT2Prongs, "AOD", "HFT2PRONG", //! table with prongs indices
4343
hf_track_index::Prong0Id,
4444
hf_track_index::Prong1Id);
4545

@@ -79,12 +79,12 @@ DECLARE_SOA_EXPRESSION_COLUMN(Pz, pz, //! pz of candidate
7979
float, 1.f * pzProng0 + 1.f * pzProng1);
8080
DECLARE_SOA_DYNAMIC_COLUMN(M, m, //! invariant mass of candidate
8181
[](float px0, float py0, float pz0, float px1, float py1, float pz1, const std::array<double, 2>& m) -> float { return RecoDecay::m(std::array{std::array{px0, py0, pz0}, std::array{px1, py1, pz1}}, m); });
82-
DECLARE_SOA_DYNAMIC_COLUMN(CPA, cpa, //! cosine of pointing angle of candidate
82+
DECLARE_SOA_DYNAMIC_COLUMN(Cpa, cpa, //! cosine of pointing angle of candidate
8383
[](float xVtxP, float yVtxP, float zVtxP, float xVtxS, float yVtxS, float zVtxS, float px, float py, float pz) -> float { return RecoDecay::cpa(std::array{xVtxP, yVtxP, zVtxP}, std::array{xVtxS, yVtxS, zVtxS}, std::array{px, py, pz}); });
8484
} // namespace hf_cand_prong2
8585

8686
// Candidate table
87-
DECLARE_SOA_TABLE(HfCandProng2Base, "AOD", "HFCANDP2BASE", //! 2-prong candidate table
87+
DECLARE_SOA_TABLE(HfTCand2ProngBase, "AOD", "HFTCAND2PBASE", //! 2-prong candidate table
8888
hf_cand_prong2::CollisionId,
8989
collision::PosX, collision::PosY, collision::PosZ,
9090
hf_cand_prong2::XSecondaryVertex, hf_cand_prong2::YSecondaryVertex, hf_cand_prong2::ZSecondaryVertex,
@@ -98,14 +98,14 @@ DECLARE_SOA_TABLE(HfCandProng2Base, "AOD", "HFCANDP2BASE", //! 2-prong candidate
9898
/* dynamic columns */
9999
hf_cand_prong2::M<hf_cand_prong2::PxProng0, hf_cand_prong2::PyProng0, hf_cand_prong2::PzProng0, hf_cand_prong2::PxProng1, hf_cand_prong2::PyProng1, hf_cand_prong2::PzProng1>,
100100
/* dynamic columns that use candidate momentum components */
101-
hf_cand_prong2::CPA<collision::PosX, collision::PosY, collision::PosZ, hf_cand_prong2::XSecondaryVertex, hf_cand_prong2::YSecondaryVertex, hf_cand_prong2::ZSecondaryVertex, hf_cand_prong2::Px, hf_cand_prong2::Py, hf_cand_prong2::Pz>,
101+
hf_cand_prong2::Cpa<collision::PosX, collision::PosY, collision::PosZ, hf_cand_prong2::XSecondaryVertex, hf_cand_prong2::YSecondaryVertex, hf_cand_prong2::ZSecondaryVertex, hf_cand_prong2::Px, hf_cand_prong2::Py, hf_cand_prong2::Pz>,
102102
hf_cand_prong2::Pt<hf_cand_prong2::Px, hf_cand_prong2::Py>);
103103

104104
// Extended table with expression columns that can be used as arguments of dynamic columns
105-
DECLARE_SOA_EXTENDED_TABLE_USER(HfCandProng2Ext, HfCandProng2Base, "HFCANDP2EXT", //! extension table for the 2-prong candidate table
105+
DECLARE_SOA_EXTENDED_TABLE_USER(HfTCand2ProngExt, HfTCand2ProngBase, "HFTCAND2PEXT", //! extension table for the 2-prong candidate table
106106
hf_cand_prong2::Px, hf_cand_prong2::Py, hf_cand_prong2::Pz);
107107

108-
using HfCandProng2 = HfCandProng2Ext;
108+
using HfTCand2Prong = HfTCand2ProngExt;
109109

110110
namespace hf_selcandidate_d0
111111
{
@@ -115,7 +115,7 @@ DECLARE_SOA_COLUMN(IsSelD0bar, isSelD0bar, int); //! selection flag for D0 bar
115115
} // namespace hf_selcandidate_d0
116116

117117
// Candidate selection table
118-
DECLARE_SOA_TABLE(HfSelCandidateD0, "AOD", "HFSELCANDD0", //! table with D0 selection flags
118+
DECLARE_SOA_TABLE(HfTSelD0, "AOD", "HFTSELD0", //! table with D0 selection flags
119119
hf_selcandidate_d0::IsSelD0,
120120
hf_selcandidate_d0::IsSelD0bar);
121121
} // namespace o2::aod

Tutorials/PWGHF/dpl-config_skim.json

Lines changed: 76 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,103 @@
11
{
22
"internal-dpl-clock": "",
33
"internal-dpl-aod-reader": {
4+
"aod-file-private": "AO2D.root",
5+
"aod-max-io-rate": "0",
46
"time-limit": "0",
57
"orbit-offset-enumeration": "0",
68
"orbit-multiplier-enumeration": "0",
79
"start-value-enumeration": "0",
810
"end-value-enumeration": "-1",
9-
"step-value-enumeration": "1",
10-
"aod-file": "AO2D.root"
11+
"step-value-enumeration": "1"
1112
},
1213
"internal-dpl-aod-spawner": "",
1314
"bc-converter": "",
1415
"timestamp-task": {
16+
"fatalOnInvalidTimestamp": "false",
1517
"verbose": "false",
1618
"rct-path": "RCT/Info/RunInformation",
1719
"orbit-reset-path": "CTP/Calib/OrbitReset",
1820
"ccdb-url": "http://alice-ccdb.cern.ch",
19-
"isRun2MC": "false"
21+
"isRun2MC": "-1"
2022
},
2123
"tracks-extra-converter": "",
22-
"zdc-converter": "",
24+
"tracks-extra-spawner": "",
2325
"track-propagation": {
2426
"ccdb-url": "http://alice-ccdb.cern.ch",
2527
"lutPath": "GLO/Param/MatLUT",
2628
"geoPath": "GLO/Config/GeometryAligned",
2729
"grpmagPath": "GLO/Config/GRPMagField",
2830
"mVtxPath": "GLO/Calib/MeanVertex",
2931
"minPropagationDistance": "83.0999985",
32+
"useTrackTuner": "false",
33+
"fillTrackTunerTable": "false",
34+
"trackTunerParams": "debugInfo=0|updateTrackDCAs=1|updateTrackCovMat=1|updateCurvature=0|updateCurvatureIU=0|updatePulls=0|isInputFileFromCCDB=1|pathInputFile=Users/m/mfaggin/test/inputsTrackTuner/PbPb2022|nameInputFile=trackTuner_DataLHC22sPass5_McLHC22l1b2_run529397.root|pathFileQoverPt=Users/h/hsharma/qOverPtGraphs|nameFileQoverPt=D0sigma_Data_removal_itstps_MC_LHC22b1b.root|usePvRefitCorrections=0|qOverPtMC=-1.|qOverPtData=-1.",
35+
"axisPtQA": {
36+
"values": [
37+
"0",
38+
"0",
39+
"0.1",
40+
"0.2",
41+
"0.3",
42+
"0.4",
43+
"0.5",
44+
"0.6",
45+
"0.7",
46+
"0.8",
47+
"0.9",
48+
"1",
49+
"1.1",
50+
"1.2",
51+
"1.3",
52+
"1.4",
53+
"1.5",
54+
"1.6",
55+
"1.7",
56+
"1.8",
57+
"1.9",
58+
"2",
59+
"2.2",
60+
"2.4",
61+
"2.6",
62+
"2.8",
63+
"3",
64+
"3.2",
65+
"3.4",
66+
"3.6",
67+
"3.8",
68+
"4",
69+
"4.4",
70+
"4.8",
71+
"5.2",
72+
"5.6",
73+
"6",
74+
"6.5",
75+
"7",
76+
"7.5",
77+
"8",
78+
"9",
79+
"10",
80+
"11",
81+
"12",
82+
"13",
83+
"14",
84+
"15",
85+
"17",
86+
"19",
87+
"21",
88+
"23",
89+
"25",
90+
"30",
91+
"35",
92+
"40",
93+
"50"
94+
]
95+
},
3096
"processStandard": "false",
31-
"processCovariance": "true"
97+
"processStandardWithPID": "false",
98+
"processCovarianceMc": "false",
99+
"processCovariance": "true",
100+
"processCovarianceWithPID": "false"
32101
},
33102
"track-selection": {
34103
"isRun3": "true",
@@ -42,12 +111,12 @@
42111
"etaMin": "-0.8",
43112
"etaMax": "0.8"
44113
},
45-
"hf-track-index-skim-creator-tag-sel-tracks": {
114+
"hf-skim-creator-mini-tag-sel-tracks": {
46115
"ptTrackMin": "0.3",
47116
"etaTrackMax": "0.8",
48117
"dcaTrackMin": "0.0025"
49118
},
50-
"hf-track-index-skim-creator": {
119+
"hf-skim-creator-mini": {
51120
"magneticField": "5",
52121
"propagateToPCA": "true",
53122
"useAbsDCA": "false",

0 commit comments

Comments
 (0)