Skip to content

Commit 94cc5cb

Browse files
committed
Proto simplification of LUTs
1 parent ba707ed commit 94cc5cb

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

ALICE3/DataModel/OTFLUT.h

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
///
13+
/// \file OTFLUT.h
14+
/// \since 23/02/2026
15+
/// \author Jesper & Nicolò
16+
/// \brief Set of tables for ALICE 3 tracker
17+
///
18+
19+
#ifndef ALICE3_DATAMODEL_OTFLUT_H_
20+
#define ALICE3_DATAMODEL_OTFLUT_H_
21+
22+
#include "ALICE3/Core/DelphesO2TrackSmearer.h"
23+
24+
#include "DataFormatsTOF/CalibLHCphaseTOF.h"
25+
#include "Framework/AnalysisDataModel.h"
26+
27+
using namespace o2;
28+
using namespace o2::framework;
29+
using namespace o2::framework::expressions;
30+
31+
namespace o2::aod
32+
{
33+
namespace otf::lut
34+
{
35+
36+
// lutHeader_t* mLUTHeader[nLUTs] = {nullptr};
37+
// lutEntry_t***** mLUTEntry[nLUTs] = {nullptr};
38+
39+
DECLARE_SOA_CCDB_COLUMN(LUTHeader, lutHeader, lutHeader_t, "TOF/Calib/LHCphase"); //!
40+
// DECLARE_SOA_CCDB_COLUMN(LUTHeader, lutHeader, o2::dataformats::CalibLHCphaseTOF, "TOF/Calib/LHCphase"); //!
41+
42+
} // namespace otf::lut
43+
44+
DECLARE_SOA_TIMESTAMPED_TABLE(TOFCalibrationObjects, aod::Timestamps, o2::aod::timestamp::Timestamp, 1, "TOFCALIB", //!
45+
otf::lut::LUTHeader);
46+
} // namespace o2::aod
47+
48+
#endif // ALICE3_DATAMODEL_OTFLUT_H_

ALICE3/TableProducer/OTF/onTheFlyDetectorGeometryProvider.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
///
1818

1919
#include "ALICE3/Core/FastTracker.h"
20+
#include "ALICE3/DataModel/OTFLUT.h"
2021

2122
#include <CCDB/BasicCCDBManager.h>
2223
#include <Framework/AnalysisTask.h>
@@ -33,6 +34,7 @@ struct OnTheFlyDetectorGeometryProvider {
3334
o2::framework::Configurable<std::vector<std::string>> detectorConfiguration{"detectorConfiguration",
3435
std::vector<std::string>{"$O2PHYSICS_ROOT/share/alice3/a3geometry_v3.ini"},
3536
"Paths of the detector geometry configuration files"};
37+
o2::framework::Produces<o2::aod::TOFCalibrationObjects> tofCalibObjects;
3638
o2::framework::Service<o2::ccdb::BasicCCDBManager> ccdb;
3739
void init(o2::framework::InitContext&)
3840
{

0 commit comments

Comments
 (0)