Skip to content

Commit 9e04009

Browse files
authored
Merge 8783339 into sapling-pr-archive-ehellbar
2 parents ef82092 + 8783339 commit 9e04009

File tree

106 files changed

+3813
-723
lines changed

Some content is hidden

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

106 files changed

+3813
-723
lines changed

Common/DCAFitter/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ o2_add_library(DCAFitter
2222
O2::DetectorsBase)
2323

2424
o2_target_root_dictionary(DCAFitter
25-
HEADERS include/DCAFitter/HelixHelper.h
26-
include/DCAFitter/DCAFitterN.h
25+
HEADERS include/DCAFitter/DCAFitterN.h
2726
include/DCAFitter/FwdDCAFitterN.h)
2827

2928
if (OpenMP_CXX_FOUND)

Common/DCAFitter/include/DCAFitter/DCAFitterN.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#ifndef _ALICEO2_DCA_FITTERN_
1818
#define _ALICEO2_DCA_FITTERN_
1919

20-
#include "DCAFitter/HelixHelper.h"
20+
#include "ReconstructionDataFormats/HelixHelper.h"
2121
#include "DetectorsBase/Propagator.h"
2222
#include "MathUtils/Cartesian.h"
2323
#include "ReconstructionDataFormats/Track.h"

Common/DCAFitter/include/DCAFitter/FwdDCAFitterN.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "MathUtils/Cartesian.h"
2121
#include "ReconstructionDataFormats/TrackFwd.h"
2222
#include "ReconstructionDataFormats/Track.h"
23-
#include "DCAFitter/HelixHelper.h"
23+
#include "ReconstructionDataFormats/HelixHelper.h"
2424
#include <TRandom.h>
2525
#include "DetectorsBase/Propagator.h"
2626
#include "DetectorsBase/GeometryManager.h"

Common/DCAFitter/src/DCAFitterLinkDef.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
#pragma link C++ class o2::vertexing::DCAFitterN < 2, o2::track::TrackParCov> + ;
1919
#pragma link C++ class o2::vertexing::DCAFitterN < 3, o2::track::TrackParCov> + ;
2020

21-
#pragma link C++ class o2::track::TrackAuxPar + ;
22-
#pragma link C++ class o2::track::CrossInfo + ;
23-
2421
#pragma link C++ function o2::vertexing::DCAFitter2::process(const o2::track::TrackParCov&, const o2::track::TrackParCov&);
2522
#pragma link C++ function o2::vertexing::DCAFitter3::process(const o2::track::TrackParCov&, const o2::track::TrackParCov&, const o2::track::TrackParCov&);
2623

Common/Field/include/Field/MagFieldFast.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class MagFieldFast
5757
bool Field(const math_utils::Point3D<double> xyz, double bxyz[3]) const;
5858
bool GetBcomp(EDim comp, const double xyz[3], double& b) const;
5959
bool GetBcomp(EDim comp, const float xyz[3], float& b) const;
60-
bool GetBcomp(EDim comp, const math_utils::Point3D<float> xyz, double& b) const;
60+
bool GetBcomp(EDim comp, const math_utils::Point3D<double> xyz, double& b) const;
6161
bool GetBcomp(EDim comp, const math_utils::Point3D<float> xyz, float& b) const;
6262

6363
bool GetBx(const double xyz[3], double& bx) const { return GetBcomp(kX, xyz, bx); }
@@ -66,6 +66,8 @@ class MagFieldFast
6666
bool GetBy(const float xyz[3], float& by) const { return GetBcomp(kY, xyz, by); }
6767
bool GetBz(const double xyz[3], double& bz) const { return GetBcomp(kZ, xyz, bz); }
6868
bool GetBz(const float xyz[3], float& bz) const { return GetBcomp(kZ, xyz, bz); }
69+
bool GetBz(const math_utils::Point3D<double> xyz, double& bz) const { return GetBcomp(kZ, xyz, bz); }
70+
bool GetBz(const math_utils::Point3D<float> xyz, float& bz) const { return GetBcomp(kZ, xyz, bz); }
6971
void setFactorSol(float v = 1.f) { mFactorSol = v; }
7072
float getFactorSol() const { return mFactorSol; }
7173

Common/Field/src/MagFieldFast.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ bool MagFieldFast::GetBcomp(EDim comp, const double xyz[3], double& b) const
145145
}
146146

147147
//_______________________________________________________________________
148-
bool MagFieldFast::GetBcomp(EDim comp, const math_utils::Point3D<float> xyz, double& b) const
148+
bool MagFieldFast::GetBcomp(EDim comp, const math_utils::Point3D<double> xyz, double& b) const
149149
{
150150
// get field
151151
int zSeg, rSeg, quadrant;

Common/Utils/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ o2_target_root_dictionary(CommonUtils
5151
include/CommonUtils/IRFrameSelector.h
5252
include/CommonUtils/DebugStreamer.h)
5353

54+
# Extra dictionaries only needed if tests are built
55+
if(BUILD_TESTING)
56+
o2_add_library(CommonUtilsTest
57+
SOURCES src/ConfigurableParamTest.cxx
58+
PUBLIC_LINK_LIBRARIES O2::CommonUtils)
59+
o2_target_root_dictionary(CommonUtilsTest
60+
HEADERS include/CommonUtils/ConfigurableParamTest.h)
61+
endif()
62+
5463
o2_add_test(TreeStream
5564
COMPONENT_NAME CommonUtils
5665
LABELS utils
@@ -87,6 +96,12 @@ o2_add_test(EnumFlags
8796
SOURCES test/testEnumFlags.cxx
8897
PUBLIC_LINK_LIBRARIES O2::CommonUtils)
8998

99+
o2_add_test(ConfigurableParam
100+
COMPONENT_NAME CommonUtils
101+
LABELS utils
102+
SOURCES test/testConfigurableParam.cxx
103+
PUBLIC_LINK_LIBRARIES O2::CommonUtilsTest)
104+
90105
o2_add_executable(treemergertool
91106
COMPONENT_NAME CommonUtils
92107
SOURCES src/TreeMergerTool.cxx
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
#ifndef COMMON_CONFIGURABLE_PARAM_TEST_H_
13+
#define COMMON_CONFIGURABLE_PARAM_TEST_H_
14+
15+
#include "CommonUtils/ConfigurableParam.h"
16+
#include "CommonUtils/ConfigurableParamHelper.h"
17+
18+
namespace o2::conf::test
19+
{
20+
struct TestParam : public o2::conf::ConfigurableParamHelper<TestParam> {
21+
enum TestEnum : uint8_t {
22+
A,
23+
B,
24+
C
25+
};
26+
27+
int iValue{42};
28+
float fValue{3.14};
29+
double dValue{3.14};
30+
bool bValue{true};
31+
unsigned uValue{1};
32+
long lValue{1};
33+
unsigned long ulValue{1};
34+
long long llValue{1};
35+
unsigned long long ullValue{1};
36+
std::string sValue = "default";
37+
int iValueProvenanceTest{0};
38+
TestEnum eValue = TestEnum::C;
39+
int caValue[3] = {0, 1, 2};
40+
41+
O2ParamDef(TestParam, "TestParam");
42+
};
43+
} // namespace o2::conf::test
44+
45+
#endif

0 commit comments

Comments
 (0)