Skip to content

Commit c2bd877

Browse files
authored
Merge 4e90ae6 into sapling-pr-archive-ktf
2 parents eb5b0b5 + 4e90ae6 commit c2bd877

File tree

115 files changed

+2627
-450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+2627
-450
lines changed

CCDB/include/CCDB/BasicCCDBManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ T* CCDBManagerInstance::getSpecificForRun(std::string const& path, int runNumber
333333
auto [start, stop] = getRunDuration(runNumber);
334334
if (start < 0 || stop < 0) {
335335
if (mFatalWhenNull) {
336-
reportFatal(std::string("Failed to get run duration for run ") + std::to_string(runNumber));
336+
reportFatal(std::string("Failed to get run duration for run ") + std::to_string(runNumber) + std::string(" from CCDB"));
337337
}
338338
return nullptr;
339339
}

Common/Constants/include/CommonConstants/PhysicsConstants.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ enum Pdg {
5252
kDS1 = 10433,
5353
kDS2Star = 435,
5454
kDStar = 413,
55+
kDStar0 = 423,
5556
kChiC1 = 20443,
5657
kJPsi = 443,
5758
kLambdaB0 = 5122,
@@ -101,6 +102,7 @@ constexpr double MassDSStar = 2.1122;
101102
constexpr double MassDS1 = 2.53511;
102103
constexpr double MassDS2Star = 2.5691;
103104
constexpr double MassDStar = 2.01026;
105+
constexpr double MassDStar0 = 2.00685;
104106
constexpr double MassChiC1 = 3.51067;
105107
constexpr double MassJPsi = 3.0969;
106108
constexpr double MassLambdaB0 = 5.6196;

Common/Constants/include/CommonConstants/make_pdg_header.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class Pdg(Enum):
107107
kDS1 = 10433
108108
kDS2Star = 435
109109
kDStar = 413
110+
kDStar0 = 423
110111
kChiC1 = 20443
111112
kJPsi = 443
112113
kLambdaB0 = 5122

Common/MathUtils/include/MathUtils/detail/basicMath.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ GPUdi() int nint(double x)
113113
template <>
114114
GPUdi() bool finite(double x)
115115
{
116+
#ifdef __FAST_MATH__
117+
return false;
118+
#else
116119
return std::isfinite(x);
120+
#endif
117121
}
118122
template <>
119123
GPUdi() double log(double x)

DataFormats/Detectors/CTP/src/CTPRateFetcher.cxx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ double CTPRateFetcher::fetchNoPuCorr(o2::ccdb::BasicCCDBManager* ccdb, uint64_t
4646
LOG(info) << "Trying different class";
4747
ret = fetchCTPratesClassesNoPuCorr(timeStamp, "CMTVX-NONE");
4848
if (ret < 0) {
49-
LOG(fatal) << "None of the classes used for lumi found";
49+
LOG(error) << "None of the classes used for lumi found";
50+
return -1.;
5051
}
5152
}
5253
return ret;
@@ -245,17 +246,19 @@ void CTPRateFetcher::setupRun(int runNumber, o2::ccdb::BasicCCDBManager* ccdb, u
245246
return;
246247
}
247248
mRunNumber = runNumber;
248-
LOG(info) << "Setting up CTP scalers for run " << mRunNumber;
249+
LOG(info) << "Setting up CTP scalers for run " << mRunNumber << " and timestamp : " << timeStamp;
249250
auto ptrLHCIFdata = ccdb->getSpecific<parameters::GRPLHCIFData>("GLO/Config/GRPLHCIF", timeStamp);
250251
if (ptrLHCIFdata == nullptr) {
251-
LOG(fatal) << "GRPLHCIFData not in database, timestamp:" << timeStamp;
252+
LOG(error) << "GRPLHCIFData not in database, timestamp:" << timeStamp;
253+
return;
252254
}
253255
mLHCIFdata = *ptrLHCIFdata;
254256
std::map<string, string> metadata;
255257
metadata["runNumber"] = std::to_string(mRunNumber);
256258
auto ptrConfig = ccdb->getSpecific<ctp::CTPConfiguration>("CTP/Config/Config", timeStamp, metadata);
257259
if (ptrConfig == nullptr) {
258-
LOG(fatal) << "CTPRunConfig not in database, timestamp:" << timeStamp;
260+
LOG(error) << "CTPRunConfig not in database, timestamp:" << timeStamp;
261+
return;
259262
}
260263
mConfig = *ptrConfig;
261264
if (initScalers) {
@@ -264,7 +267,7 @@ void CTPRateFetcher::setupRun(int runNumber, o2::ccdb::BasicCCDBManager* ccdb, u
264267
mScalers = *ptrScalers;
265268
mScalers.convertRawToO2();
266269
} else {
267-
LOG(fatal) << "CTPRunScalers not in database, timestamp:" << timeStamp;
270+
LOG(error) << "CTPRunScalers not in database, timestamp:" << timeStamp;
268271
}
269272
}
270273
}

DataFormats/Detectors/FIT/FDD/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
o2_add_library(DataFormatsFDD
1313
SOURCES src/RawEventData.cxx
14+
src/RecPoint.cxx
1415
src/CTF.cxx
1516
src/LookUpTable.cxx
1617
PUBLIC_LINK_LIBRARIES O2::FDDBase

DataFormats/Detectors/FIT/FDD/include/DataFormatsFDD/RecPoint.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file RecPoint.h
12+
/// \file RecPoint.h
1313
/// \brief Definition of the FDD RecPoint class
14+
1415
#ifndef ALICEO2_FDD_RECPOINT_H
1516
#define ALICEO2_FDD_RECPOINT_H
1617

@@ -42,6 +43,7 @@ struct ChannelDataFloat {
4243
}
4344

4445
void print() const;
46+
bool operator==(const ChannelDataFloat&) const = default;
4547

4648
ClassDefNV(ChannelDataFloat, 1);
4749
};
@@ -80,6 +82,9 @@ class RecPoint
8082
int getFirstEntry() const { return mRef.getFirstEntry(); }
8183
int getEntriesInCurrentBC() const { return mRef.getEntries(); }
8284

85+
void print() const;
86+
bool operator==(const RecPoint&) const = default;
87+
8388
private:
8489
o2::dataformats::RangeReference<int, int> mRef;
8590
o2::InteractionRecord mIntRecord;
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright 2019-2024 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 RecPoint.cxx
13+
/// \brief Implementation of the FDD RecPoint class
14+
/// \author Andreas Molander [email protected]
15+
16+
#include "DataFormatsFDD/RecPoint.h"
17+
#include "Framework/Logger.h"
18+
19+
using namespace o2::fdd;
20+
21+
void ChannelDataFloat::print() const
22+
{
23+
LOG(info) << "ChannelDataFloat data:";
24+
LOG(info) << "Channel ID: " << mPMNumber << ", Time (ps): " << mTime << ", Charge (ADC): " << mChargeADC << ", QTC chain: " << adcId;
25+
}
26+
27+
void RecPoint::print() const
28+
{
29+
LOG(info) << "RecPoint data:";
30+
LOG(info) << "Collision times: A: " << getCollisionTimeA() << ", C: " << getCollisionTimeC();
31+
LOG(info) << "Ref first: " << mRef.getFirstEntry() << ", Ref entries: " << mRef.getEntries();
32+
LOG(info) << "Triggers: " << mTriggers.print();
33+
}

DataFormats/Detectors/FIT/FT0/include/DataFormatsFT0/RecPoints.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ struct ChannelDataFloat {
4747
}
4848

4949
void print() const;
50+
bool operator==(const ChannelDataFloat&) const = default;
5051

5152
ClassDefNV(ChannelDataFloat, 1);
5253
};
@@ -74,8 +75,6 @@ class RecPoints
7475
}
7576
~RecPoints() = default;
7677

77-
void print() const;
78-
7978
short getCollisionTime(int side) const { return mCollisionTime[side]; }
8079
short getCollisionTimeMean() const { return getCollisionTime(TimeMean); }
8180
short getCollisionTimeA() const { return getCollisionTime(TimeA); }
@@ -96,6 +95,9 @@ class RecPoints
9695
gsl::span<const ChannelDataFloat> getBunchChannelData(const gsl::span<const ChannelDataFloat> tfdata) const;
9796
short static constexpr sDummyCollissionTime = 32767;
9897

98+
void print() const;
99+
bool operator==(const RecPoints&) const = default;
100+
99101
private:
100102
std::array<short, 4> mCollisionTime = {sDummyCollissionTime,
101103
sDummyCollissionTime,

DataFormats/Detectors/FIT/FT0/src/RecPoints.cxx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,22 @@
2121

2222
using namespace o2::ft0;
2323

24+
void ChannelDataFloat::print() const
25+
{
26+
printf(" ChID% d | CFDtime=%f | QTCampl=%f QTC chain %d\n", ChId, CFDTime, QTCAmpl, ChainQTC);
27+
}
28+
2429
gsl::span<const ChannelDataFloat> RecPoints::getBunchChannelData(const gsl::span<const ChannelDataFloat> tfdata) const
2530
{
2631
// extract the span of channel data for this bunch from the whole TF data
2732
return ref.getEntries() ? gsl::span<const ChannelDataFloat>(tfdata).subspan(ref.getFirstEntry(), ref.getEntries()) : gsl::span<const ChannelDataFloat>();
2833
}
2934

30-
void ChannelDataFloat::print() const
35+
void RecPoints::print() const
3136
{
32-
33-
printf(" ChID% d | CFDtime=%f | QTCampl=%f QTC chain %d\n", ChId, CFDTime, QTCAmpl, ChainQTC);
37+
LOG(info) << "RecPoint data:";
38+
LOG(info) << "Collision times: mean: " << getCollisionTimeMean() << ", A: " << getCollisionTimeA() << ", C: " << getCollisionTimeC();
39+
LOG(info) << "Vertex: " << getVertex();
40+
LOG(info) << "Ref first: " << ref.getFirstEntry() << ", Ref entries: " << ref.getEntries();
41+
LOG(info) << "Triggers: " << mTriggers.print();
3442
}

0 commit comments

Comments
 (0)