Skip to content

Commit b06b8ca

Browse files
syano0822Satoshi Yano
andauthored
[Common] MC information fuction is added into Common/TableProducer/match-mft-m… (AliceO2Group#9004)
Co-authored-by: Satoshi Yano <[email protected]>
1 parent e4eea18 commit b06b8ca

File tree

4 files changed

+1688
-656
lines changed

4 files changed

+1688
-656
lines changed
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
#ifndef COMMON_DATAMODEL_MATCHMFTMUONDATA_H_
12+
#define COMMON_DATAMODEL_MATCHMFTMUONDATA_H_
13+
#include "Framework/AnalysisDataModel.h"
14+
#endif // COMMON_DATAMODEL_MATCHMFTMUONDATA_H_
15+
16+
namespace o2::aod
17+
{
18+
namespace matching_params
19+
{
20+
// matching parameters
21+
DECLARE_SOA_COLUMN(DeltaPt, mDeltaPt, float);
22+
DECLARE_SOA_COLUMN(DeltaEta, mDeltaEta, float);
23+
DECLARE_SOA_COLUMN(DeltaPhi, mDeltaPhi, float);
24+
DECLARE_SOA_COLUMN(DeltaX, mDeltaX, float);
25+
DECLARE_SOA_COLUMN(DeltaY, mDeltaY, float);
26+
DECLARE_SOA_COLUMN(GMuonPt, mGMuonPt, float);
27+
DECLARE_SOA_COLUMN(GMuonEta, mGMuonEta, float);
28+
DECLARE_SOA_COLUMN(PairQ, mPairQ, int16_t);
29+
DECLARE_SOA_COLUMN(IsCorrectMatch, mIsCorrectMatch, bool);
30+
} // namespace matching_params
31+
32+
DECLARE_SOA_TABLE(MatchParams, "AOD", "MATCHING",
33+
matching_params::GMuonPt,
34+
matching_params::GMuonEta,
35+
matching_params::PairQ,
36+
matching_params::DeltaPt,
37+
matching_params::DeltaX,
38+
matching_params::DeltaY,
39+
matching_params::DeltaEta,
40+
matching_params::DeltaPhi,
41+
matching_params::IsCorrectMatch);
42+
43+
namespace tag_matching_params
44+
{
45+
// matching parameters
46+
DECLARE_SOA_COLUMN(DeltaPt, mDeltaPt, float);
47+
DECLARE_SOA_COLUMN(DeltaEta, mDeltaEta, float);
48+
DECLARE_SOA_COLUMN(DeltaPhi, mDeltaPhi, float);
49+
DECLARE_SOA_COLUMN(DeltaX, mDeltaX, float);
50+
DECLARE_SOA_COLUMN(DeltaY, mDeltaY, float);
51+
DECLARE_SOA_COLUMN(GMuonPt, mGMuonPt, float);
52+
DECLARE_SOA_COLUMN(GMuonEta, mGMuonEta, float);
53+
DECLARE_SOA_COLUMN(PairQ, mPairQ, int16_t);
54+
DECLARE_SOA_COLUMN(IsCorrectMatch, mIsCorrectMatch, bool);
55+
} // namespace tag_matching_params
56+
57+
DECLARE_SOA_TABLE(TagMatchParams, "AOD", "TAGMATCHING",
58+
tag_matching_params::GMuonPt,
59+
tag_matching_params::GMuonEta,
60+
tag_matching_params::PairQ,
61+
tag_matching_params::DeltaPt,
62+
tag_matching_params::DeltaX,
63+
tag_matching_params::DeltaY,
64+
tag_matching_params::DeltaEta,
65+
tag_matching_params::DeltaPhi,
66+
tag_matching_params::IsCorrectMatch);
67+
68+
namespace probe_matching_params
69+
{
70+
// matching parameters
71+
DECLARE_SOA_COLUMN(DeltaPt, mDeltaPt, float);
72+
DECLARE_SOA_COLUMN(DeltaEta, mDeltaEta, float);
73+
DECLARE_SOA_COLUMN(DeltaPhi, mDeltaPhi, float);
74+
DECLARE_SOA_COLUMN(DeltaX, mDeltaX, float);
75+
DECLARE_SOA_COLUMN(DeltaY, mDeltaY, float);
76+
DECLARE_SOA_COLUMN(TagGMuonPt, mTagGMuonPt, float);
77+
DECLARE_SOA_COLUMN(GMuonPt, mGMuonPt, float);
78+
DECLARE_SOA_COLUMN(GMuonEta, mGMuonEta, float);
79+
DECLARE_SOA_COLUMN(PairQ, mPairQ, int16_t);
80+
DECLARE_SOA_COLUMN(IsCorrectMatch, mIsCorrectMatch, bool);
81+
} // namespace probe_matching_params
82+
83+
DECLARE_SOA_TABLE(ProbeMatchParams, "AOD", "PROBEMATCHING",
84+
probe_matching_params::TagGMuonPt,
85+
probe_matching_params::GMuonPt,
86+
probe_matching_params::GMuonEta,
87+
probe_matching_params::PairQ,
88+
probe_matching_params::DeltaPt,
89+
probe_matching_params::DeltaX,
90+
probe_matching_params::DeltaY,
91+
probe_matching_params::DeltaEta,
92+
probe_matching_params::DeltaPhi,
93+
probe_matching_params::IsCorrectMatch);
94+
95+
namespace mix_matching_params
96+
{
97+
// matching parameters
98+
DECLARE_SOA_COLUMN(DeltaPt, mDeltaPt, float);
99+
DECLARE_SOA_COLUMN(DeltaEta, mDeltaEta, float);
100+
DECLARE_SOA_COLUMN(DeltaPhi, mDeltaPhi, float);
101+
DECLARE_SOA_COLUMN(DeltaX, mDeltaX, float);
102+
DECLARE_SOA_COLUMN(DeltaY, mDeltaY, float);
103+
DECLARE_SOA_COLUMN(GMuonPt, mGMuonPt, float);
104+
DECLARE_SOA_COLUMN(GMuonEta, mGMuonEta, float);
105+
DECLARE_SOA_COLUMN(PairQ, mPairQ, int16_t);
106+
DECLARE_SOA_COLUMN(IsCorrectMatch, mIsCorrectMatch, bool);
107+
} // namespace mix_matching_params
108+
109+
DECLARE_SOA_TABLE(MixMatchParams, "AOD", "MIXMATCHING",
110+
mix_matching_params::GMuonPt,
111+
mix_matching_params::GMuonEta,
112+
mix_matching_params::PairQ,
113+
mix_matching_params::DeltaPt,
114+
mix_matching_params::DeltaX,
115+
mix_matching_params::DeltaY,
116+
mix_matching_params::DeltaEta,
117+
mix_matching_params::DeltaPhi,
118+
mix_matching_params::IsCorrectMatch);
119+
120+
namespace muon_pair
121+
{
122+
// matching parameters
123+
DECLARE_SOA_COLUMN(Mass, mMass, float);
124+
DECLARE_SOA_COLUMN(Pt, mPt, float);
125+
DECLARE_SOA_COLUMN(Rap, mRap, float);
126+
DECLARE_SOA_COLUMN(PairQ, mPairQ, int16_t);
127+
} // namespace muon_pair
128+
129+
DECLARE_SOA_TABLE(MuonPair, "AOD", "MUONPAIR",
130+
muon_pair::PairQ,
131+
muon_pair::Mass,
132+
muon_pair::Pt,
133+
muon_pair::Rap);
134+
135+
} // namespace o2::aod

Common/TableProducer/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,8 @@ o2physics_add_dpl_workflow(mftmch-matching-data
134134
SOURCES match-mft-mch-data.cxx
135135
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::DetectorsBase O2Physics::AnalysisCCDB O2Physics::PWGDQCore O2Physics::EventFilteringUtils
136136
COMPONENT_NAME Analysis)
137+
138+
o2physics_add_dpl_workflow(mftmch-matching-data-mc
139+
SOURCES match-mft-mch-data-mc.cxx
140+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::DetectorsBase O2Physics::AnalysisCCDB O2Physics::PWGDQCore O2Physics::EventFilteringUtils
141+
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)