Skip to content

Commit beb2dde

Browse files
author
Prottay Das
committed
simplified derived data model with task to speed up the calibration of zdc
1 parent d20cdae commit beb2dde

File tree

5 files changed

+1058
-0
lines changed

5 files changed

+1058
-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+
/// email: prottay.das@cern.ch
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)