Skip to content

Commit 8295313

Browse files
committed
fix requested changes + missing header for code-checker
1 parent 4990761 commit 8295313

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#include <Framework/AnalysisHelpers.h>
4848
#include <Framework/AnalysisTask.h>
4949
#include <Framework/Array2D.h>
50+
#include <Framework/Concepts.h>
5051
#include <Framework/Configurable.h>
5152
#include <Framework/HistogramRegistry.h>
5253
#include <Framework/HistogramSpec.h>
@@ -68,6 +69,7 @@
6869
#include <algorithm>
6970
#include <array>
7071
#include <cmath>
72+
#include <cstddef>
7173
#include <cstdint>
7274
#include <map>
7375
#include <set>
@@ -169,7 +171,7 @@ struct PhotonConversionBuilder {
169171
Configurable<double> d_bz_input{"d_bz", -999, "bz field, -999 is automatic"};
170172
Configurable<int> useMatCorrType{"useMatCorrType", 0, "0: none, 1: TGeo, 2: LUT"};
171173
Configurable<int> modeTrackPropagation{"modeTrackPropagation", 0, "0: use real track propagation, including material, 1: use fast approximation using only geometry, 2: Use real track propagation and make comparison to fast propagation (only for debugging and testing)"};
172-
Configurable<int> deduplicationMode{"deduplicationMode", 0, "0: Pairwise deduplication, 1: Based on Greedy matching (best score wins), 2: Based on Group matching (crossed pairs are both kept), 3: Keep all V0s"};
174+
Configurable<int> deduplicationMode{"deduplicationMode", 0, "0: Pairwise deduplication, 1: Based on Greedy matching (best score wins), 2: Based on Group matching (crossed pairs are both kept), 3: Keep all V0s, our default in the config is mode 0, however if a wrong configuration is used, the default will be mode 1 (Greedy matching) to avoid crashes"};
173175
Configurable<float> deduplicationScoreWeight{"deduplicationScoreWeight", 0.5f, "0.:only pca goes into the score, 1: only cosPA goes itno score, any number in between is a mix of pca and cosPA"};
174176
Configurable<bool> cfgDedupTruthMaps{"cfgDedupTruthMaps", true, "fill the fine (dEta, dPhi, q) truth maps in MC"};
175177
Configurable<int> dedupMaxGroupSize{"dedupMaxGroupSize", 12, "group matching (mode 2): conflict groups up to this size are solved exactly, larger ones greedily (capped at 16)"};
@@ -1530,7 +1532,7 @@ struct PhotonConversionBuilder {
15301532
}
15311533
}
15321534

1533-
template <typename TTracks, typename TMCParticles>
1535+
template <o2::soa::is_table TTracks, o2::soa::is_table TMCParticles>
15341536
void fillDedupTruthDiagnostics(TTracks const& tracks, TMCParticles const& mcparticles, DedupDiag const& diag)
15351537
{
15361538
const int nCand = static_cast<int>(diag.snapshot.size());

PWGEM/PhotonMeson/Utils/PCMUtilities.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ enum V0TruthClass {
226226
/// \param track track with an MC label
227227
/// \param mcparticles the full McParticles table
228228
/// \return index of the mother if it is a photon, -1 otherwise
229-
template <typename TTrack, typename TMCParticles>
229+
template <o2::soa::is_iterator TTrack, o2::soa::is_table TMCParticles>
230230
inline int64_t getPhotonMotherId(TTrack const& track, TMCParticles const& mcparticles)
231231
{
232232
if (!track.has_mcParticle()) {
@@ -248,7 +248,7 @@ inline int64_t getPhotonMotherId(TTrack const& track, TMCParticles const& mcpart
248248
/// \param motherPos photon mother of the positive leg, -1 if none
249249
/// \param motherEle photon mother of the negative leg, -1 if none
250250
/// \return kV0True, kV0CrossLegFake or kV0OtherFake
251-
template <typename TTrack, typename TMCParticles>
251+
template <o2::soa::is_iterator TTrack, o2::soa::is_table TMCParticles>
252252
inline V0TruthClass classifyV0Truth(TTrack const& pos, TTrack const& ele, TMCParticles const& mcparticles,
253253
int64_t& motherPos, int64_t& motherEle)
254254
{

0 commit comments

Comments
 (0)