Skip to content

Commit 6cf398f

Browse files
prottayCMTProttay Das
andauthored
[PWGLF] simplified derived data model with task to speed up the calibration process (AliceO2Group#14206)
Co-authored-by: Prottay Das <[email protected]>
1 parent 18f9565 commit 6cf398f

File tree

5 files changed

+1060
-0
lines changed

5 files changed

+1060
-0
lines changed

PWGLF/DataModel/ZDCCalTables.h

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
12+
/// \file ZDCCalTables.h
13+
///
14+
/// author: prottay das 07/09/2024
15+
16+
17+
#ifndef PWGLF_DATAMODEL_ZDCCALTABLES_H_
18+
#define PWGLF_DATAMODEL_ZDCCALTABLES_H_
19+
20+
#include "Common/Core/RecoDecay.h"
21+
#include "Common/DataModel/PIDResponse.h"
22+
#include "Common/DataModel/TrackSelectionTables.h"
23+
24+
#include "Framework/AnalysisDataModel.h"
25+
26+
#include <cmath>
27+
28+
namespace o2::aod
29+
{
30+
namespace zdccaltable
31+
{
32+
DECLARE_SOA_COLUMN(TriggerEventZDC, triggerEventZDC, bool);
33+
DECLARE_SOA_COLUMN(TriggerEventRunNo, triggerEventRunNo, int);
34+
DECLARE_SOA_COLUMN(Cent, cent, float);
35+
DECLARE_SOA_COLUMN(Vx, vx, float);
36+
DECLARE_SOA_COLUMN(Vy, vy, float);
37+
DECLARE_SOA_COLUMN(Vz, vz, float);
38+
DECLARE_SOA_COLUMN(ZnaC, znaC, float);
39+
DECLARE_SOA_COLUMN(ZncC, zncC, float);
40+
DECLARE_SOA_COLUMN(ZnaE0, znaE0, float);
41+
DECLARE_SOA_COLUMN(ZnaE1, znaE1, float);
42+
DECLARE_SOA_COLUMN(ZnaE2, znaE2, float);
43+
DECLARE_SOA_COLUMN(ZnaE3, znaE3, float);
44+
DECLARE_SOA_COLUMN(ZncE0, zncE0, float);
45+
DECLARE_SOA_COLUMN(ZncE1, zncE1, float);
46+
DECLARE_SOA_COLUMN(ZncE2, zncE2, float);
47+
DECLARE_SOA_COLUMN(ZncE3, zncE3, float);
48+
} // namespace zdccaltable
49+
DECLARE_SOA_TABLE(ZDCCalTables, "AOD", "ZDCCALTABLE",
50+
zdccaltable::TriggerEventZDC,
51+
zdccaltable::TriggerEventRunNo,
52+
zdccaltable::Cent,
53+
zdccaltable::Vx,
54+
zdccaltable::Vy,
55+
zdccaltable::Vz,
56+
zdccaltable::ZnaC,
57+
zdccaltable::ZncC,
58+
zdccaltable::ZnaE0,
59+
zdccaltable::ZnaE1,
60+
zdccaltable::ZnaE2,
61+
zdccaltable::ZnaE3,
62+
zdccaltable::ZncE0,
63+
zdccaltable::ZncE1,
64+
zdccaltable::ZncE2,
65+
zdccaltable::ZncE3);
66+
using ZDCCalTable = ZDCCalTables::iterator;
67+
} // namespace o2::aod
68+
#endif // PWGLF_DATAMODEL_ZDCCALTABLES_H_

PWGLF/TableProducer/Common/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ o2physics_add_dpl_workflow(spvector
2020
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsVertexing
2121
COMPONENT_NAME Analysis)
2222

23+
o2physics_add_dpl_workflow(zdcvector
24+
SOURCES zdcvector.cxx
25+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsVertexing
26+
COMPONENT_NAME Analysis)
27+
2328
o2physics_add_dpl_workflow(tpcpid
2429
SOURCES lfTPCPID.cxx
2530
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore

0 commit comments

Comments
 (0)