forked from AliceO2Group/O2Physics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJetSubstructure.h
More file actions
131 lines (106 loc) · 8.36 KB
/
JetSubstructure.h
File metadata and controls
131 lines (106 loc) · 8.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
///
/// \brief Table definitions for hf jet substrucuture observables
///
/// \author Nima Zardoshti
#ifndef PWGJE_DATAMODEL_JETSUBSTRUCTURE_H_
#define PWGJE_DATAMODEL_JETSUBSTRUCTURE_H_
#include <cmath>
#include "Framework/AnalysisDataModel.h"
#include "PWGJE/DataModel/EMCALClusters.h"
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
#include "PWGJE/DataModel/Jet.h"
using namespace o2::analysis;
// Defines the jet substrcuture table definition
#define JETSUBSTRUCTURE_TABLE_DEF(_jet_type_, _name_, _description_) \
namespace _name_##substructure \
{ \
DECLARE_SOA_INDEX_COLUMN(_jet_type_, jet); \
DECLARE_SOA_DYNAMIC_COLUMN(Dummy##_jet_type_, dummy##_jet_type_, \
[]() -> int { return 0; }); \
} \
DECLARE_SOA_TABLE(_jet_type_##Substructure, "AOD", _description_, _name_##substructure::_jet_type_##Id, jetsubstructure::Zg, jetsubstructure::Rg, jetsubstructure::Nsd, _name_##substructure::Dummy##_jet_type_<>);
// Defines the jet substrcuture hf output table definition
#define JETSUBSTRUCTUREOUTPUT_TABLE_DEF(_jet_type_, _name_, _description_) \
namespace _name_##substructureoutput \
{ \
DECLARE_SOA_DYNAMIC_COLUMN(Dummy##_jet_type_, dummy##_jet_type_, \
[]() -> int { return 0; }); \
} \
DECLARE_SOA_TABLE(_jet_type_##SubstructureOutput, "AOD", _description_, jetsubstructureoutput::JetPt, jetsubstructureoutput::JetPhi, jetsubstructureoutput::JetEta, jetsubstructureoutput::JetNConstituents, \
jetsubstructure::Zg, jetsubstructure::Rg, jetsubstructure::Nsd, _name_##substructureoutput::Dummy##_jet_type_<>);
// Defines the jet substrcuture hf output table definition
#define JETSUBSTRUCTUREOUTPUTHF_TABLE_DEF(_jet_type_, _name_, _description_) \
namespace _name_##substructurehfoutput \
{ \
DECLARE_SOA_DYNAMIC_COLUMN(Dummy##_jet_type_, dummy##_jet_type_, \
[]() -> int { return 0; }); \
} \
DECLARE_SOA_TABLE(_jet_type_##SubstructureOutput, "AOD", _description_, jetsubstructureoutput::JetPt, jetsubstructureoutput::JetPhi, jetsubstructureoutput::JetEta, jetsubstructureoutput::JetNConstituents, \
jetsubstructurehfoutput::CandPt, jetsubstructurehfoutput::CandPhi, jetsubstructurehfoutput::CandEta, jetsubstructurehfoutput::CandY, jetsubstructurehfoutput::CandInvMass, jetsubstructurehfoutput::CandBarInvMass, \
jetsubstructure::Zg, jetsubstructure::Rg, jetsubstructure::Nsd, _name_##substructurehfoutput::Dummy##_jet_type_<>);
namespace o2::aod
{
namespace jetsubstructure
{ //!
DECLARE_SOA_COLUMN(Zg, zg, float); //!
DECLARE_SOA_COLUMN(Rg, rg, float); //!
DECLARE_SOA_COLUMN(Nsd, nsd, float); //!
} // namespace jetsubstructure
namespace jetsubstructureoutput
{
DECLARE_SOA_COLUMN(JetPt, jetPt, float); //!
DECLARE_SOA_COLUMN(JetPhi, jetPhi, float); //!
DECLARE_SOA_COLUMN(JetEta, jetEta, float); //!
DECLARE_SOA_COLUMN(JetNConstituents, jetNConstituents, float); //!
DECLARE_SOA_COLUMN(CandPt, candPt, float); //!
DECLARE_SOA_COLUMN(CandPhi, candPhi, float); //!
DECLARE_SOA_COLUMN(CandEta, candEta, float); //!
DECLARE_SOA_COLUMN(CandY, candY, float); //!
DECLARE_SOA_COLUMN(CandInvMass, candInvMasss, float); //!
DECLARE_SOA_COLUMN(CandBarInvMass, candBarInvMasss, float); //!
} // namespace jetsubstructureoutput
namespace jetsubstructurehfoutput
{
DECLARE_SOA_COLUMN(CandPt, candPt, float); //!
DECLARE_SOA_COLUMN(CandPhi, candPhi, float); //!
DECLARE_SOA_COLUMN(CandEta, candEta, float); //!
DECLARE_SOA_COLUMN(CandY, candY, float); //!
DECLARE_SOA_COLUMN(CandInvMass, candInvMasss, float); //!
DECLARE_SOA_COLUMN(CandBarInvMass, candBarInvMasss, float); //!
} // namespace jetsubstructurehfoutput
JETSUBSTRUCTURE_TABLE_DEF(Jet, jet, "JETSS");
JETSUBSTRUCTUREOUTPUT_TABLE_DEF(Jet, jet, "JETSSO");
JETSUBSTRUCTURE_TABLE_DEF(MCDetectorLevelJet, mcdetectorleveljet, "JETMCDETSS");
JETSUBSTRUCTUREOUTPUT_TABLE_DEF(MCDetectorLevelJet, mcdetectorleveljet, "JETMCDETSSO");
JETSUBSTRUCTURE_TABLE_DEF(MCParticleLevelJet, mcparticleleveljet, "JETMCPARTSS");
JETSUBSTRUCTUREOUTPUT_TABLE_DEF(MCParticleLevelJet, mcparticleleveljet, "JETMCPARTSSO");
JETSUBSTRUCTURE_TABLE_DEF(D0Jet, D0jet, "D0JETSS");
JETSUBSTRUCTUREOUTPUTHF_TABLE_DEF(D0Jet, D0jet, "D0JETSSO");
JETSUBSTRUCTURE_TABLE_DEF(D0MCDJet, D0mcdjet, "D0JETMCDETSS");
JETSUBSTRUCTUREOUTPUTHF_TABLE_DEF(D0MCDJet, D0mcdjet, "D0JETMCDETSSO");
JETSUBSTRUCTURE_TABLE_DEF(D0MCPJet, D0mcpjet, "D0JETMCPARTSS");
JETSUBSTRUCTUREOUTPUTHF_TABLE_DEF(D0MCPJet, D0mcpjet, "D0JETMCPARTSSO");
JETSUBSTRUCTURE_TABLE_DEF(LcJet, Lcjet, "LcJETSS");
JETSUBSTRUCTUREOUTPUTHF_TABLE_DEF(LcJet, Lcjet, "LcJETSSO");
JETSUBSTRUCTURE_TABLE_DEF(LcMCDJet, Lcmcdjet, "LcJETMCDETSS");
JETSUBSTRUCTUREOUTPUTHF_TABLE_DEF(LcMCDJet, Lcmcdjet, "LcJETMCDETSSO");
JETSUBSTRUCTURE_TABLE_DEF(LcMCPJet, Lcmcpjet, "LcJETMCPARTSS");
JETSUBSTRUCTUREOUTPUTHF_TABLE_DEF(LcMCPJet, Lcmcpjet, "LcJETMCPARTSSO");
JETSUBSTRUCTURE_TABLE_DEF(BPlJet, BPljet, "BPLJETSS");
JETSUBSTRUCTUREOUTPUTHF_TABLE_DEF(BPlJet, BPljet, "BPLJETOut");
JETSUBSTRUCTURE_TABLE_DEF(BPlMCDJet, BPlMCDjet, "BPLJETMCDETSS");
JETSUBSTRUCTUREOUTPUTHF_TABLE_DEF(BPlMCDJet, BPlmcdjet, "BPLJETMCDETSSO");
JETSUBSTRUCTURE_TABLE_DEF(BPlMCPJet, BPlmcpjet, "BPLJETMCPARTSS");
JETSUBSTRUCTUREOUTPUTHF_TABLE_DEF(BPlMCPJet, BPlmcpjet, "BPLJETMCPARTSSO");
} // namespace o2::aod
#endif // PWGJE_DATAMODEL_JETSUBSTRUCTURE_H_