Skip to content

Commit c3f3995

Browse files
Jinhyun ParkJinhyun Park
authored andcommitted
Adjust helper function arguement
1 parent 85c75c3 commit c3f3995

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

PWGHF/TableProducer/treeCreatorToXiPiQa.cxx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,8 @@ struct HfTreeCreatorToXiPiQa {
632632
}
633633
}
634634

635-
template <double massCharmBaryon, typename T>
636-
void fillParticle(const T& particle)
635+
template <typename T>
636+
void fillParticle(const T& particle, double massCharmBaryon)
637637
{
638638
rowCandidateParticles(RecoDecay::m(particle.pVector(), particle.e()),
639639
particle.pt(),
@@ -838,7 +838,7 @@ struct HfTreeCreatorToXiPiQa {
838838
if (fillGenTable) {
839839
rowCandidateParticles.reserve(mcParticles.size());
840840
for (const auto& particle : mcParticles) {
841-
fillParticle<o2::constants::physics::MassXiC0>(particle);
841+
fillParticle(particle, o2::constants::physics::MassXiC0);
842842
}
843843
}
844844
}
@@ -864,7 +864,7 @@ struct HfTreeCreatorToXiPiQa {
864864
if (fillGenTable) {
865865
rowCandidateParticles.reserve(mcParticles.size());
866866
for (const auto& particle : mcParticles) {
867-
fillParticle<o2::constants::physics::MassOmegaC0>(particle);
867+
fillParticle(particle, o2::constants::physics::MassOmegaC0);
868868
}
869869
}
870870
}
@@ -890,7 +890,7 @@ struct HfTreeCreatorToXiPiQa {
890890
if (fillGenTable) {
891891
rowCandidateParticles.reserve(mcParticles.size());
892892
for (const auto& particle : mcParticles) {
893-
fillParticle<o2::constants::physics::MassXiC0>(particle);
893+
fillParticle(particle, o2::constants::physics::MassXiC0);
894894
}
895895
}
896896
}
@@ -916,7 +916,7 @@ struct HfTreeCreatorToXiPiQa {
916916
if (fillGenTable) {
917917
rowCandidateParticles.reserve(mcParticles.size());
918918
for (const auto& particle : mcParticles) {
919-
fillParticle<o2::constants::physics::MassXiC0>(particle);
919+
fillParticle(particle, o2::constants::physics::MassXiC0);
920920
}
921921
}
922922
}
@@ -942,7 +942,7 @@ struct HfTreeCreatorToXiPiQa {
942942
if (fillGenTable) {
943943
rowCandidateParticles.reserve(mcParticles.size());
944944
for (const auto& particle : mcParticles) {
945-
fillParticle<o2::constants::physics::MassXiC0>(particle);
945+
fillParticle(particle, o2::constants::physics::MassXiC0);
946946
}
947947
}
948948
}
@@ -968,7 +968,7 @@ struct HfTreeCreatorToXiPiQa {
968968
if (fillGenTable) {
969969
rowCandidateParticles.reserve(mcParticles.size());
970970
for (const auto& particle : mcParticles) {
971-
fillParticle<o2::constants::physics::MassXiC0>(particle);
971+
fillParticle(particle, o2::constants::physics::MassXiC0);
972972
}
973973
}
974974
}
@@ -994,7 +994,7 @@ struct HfTreeCreatorToXiPiQa {
994994
if (fillGenTable) {
995995
rowCandidateParticles.reserve(mcParticles.size());
996996
for (const auto& particle : mcParticles) {
997-
fillParticle<o2::constants::physics::MassOmegaC0>(particle);
997+
fillParticle(particle, o2::constants::physics::MassOmegaC0);
998998
}
999999
}
10001000
}
@@ -1031,7 +1031,7 @@ struct HfTreeCreatorToXiPiQa {
10311031
if (fillGenTable) {
10321032
rowCandidateParticles.reserve(mcParticles.size());
10331033
for (const auto& particle : mcParticles) {
1034-
fillParticle<o2::constants::physics::MassXiC0>(particle);
1034+
fillParticle(particle, o2::constants::physics::MassXiC0);
10351035
}
10361036
}
10371037
}
@@ -1057,7 +1057,7 @@ struct HfTreeCreatorToXiPiQa {
10571057
if (fillGenTable) {
10581058
rowCandidateParticles.reserve(mcParticles.size());
10591059
for (const auto& particle : mcParticles) {
1060-
fillParticle<o2::constants::physics::MassXiC0>(particle);
1060+
fillParticle(particle, o2::constants::physics::MassXiC0);
10611061
}
10621062
}
10631063
}
@@ -1083,7 +1083,7 @@ struct HfTreeCreatorToXiPiQa {
10831083
if (fillGenTable) {
10841084
rowCandidateParticles.reserve(mcParticles.size());
10851085
for (const auto& particle : mcParticles) {
1086-
fillParticle<o2::constants::physics::MassXiC0>(particle);
1086+
fillParticle(particle, o2::constants::physics::MassXiC0);
10871087
}
10881088
}
10891089
}
@@ -1109,7 +1109,7 @@ struct HfTreeCreatorToXiPiQa {
11091109
if (fillGenTable) {
11101110
rowCandidateParticles.reserve(mcParticles.size());
11111111
for (const auto& particle : mcParticles) {
1112-
fillParticle<o2::constants::physics::MassXiC0>(particle);
1112+
fillParticle(particle, o2::constants::physics::MassXiC0);
11131113
}
11141114
}
11151115
}

0 commit comments

Comments
 (0)