Skip to content

Commit 558f67d

Browse files
committed
add missing library
1 parent 4ab91f7 commit 558f67d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

PWGLF/TableProducer/Nuspex/coalescenceTreeProducer.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include <Math/Vector3D.h>
4141
#include <Math/Vector4D.h>
4242
#include <TH1.h>
43+
#include <TPDGCode.h>
4344
#include <TTree.h>
4445

4546
#include <algorithm>
@@ -574,7 +575,7 @@ struct CoalescenceTreeProducer {
574575
std::vector<Particle> const& neutrons,
575576
std::vector<Particle> const& antiNeutrons) const
576577
{
577-
int minimumSizeContainer = 2;
578+
constexpr std::size_t minimumSizeContainer = 2;
578579
return (protons.size() >= minimumSizeContainer && !neutrons.empty()) ||
579580
(antiProtons.size() >= minimumSizeContainer && !antiNeutrons.empty());
580581
}
@@ -584,7 +585,7 @@ struct CoalescenceTreeProducer {
584585
std::vector<Particle> const& neutrons,
585586
std::vector<Particle> const& antiNeutrons) const
586587
{
587-
int minimumSizeContainer = 2;
588+
constexpr std::size_t minimumSizeContainer = 2;
588589
return (!protons.empty() && neutrons.size() >= minimumSizeContainer) ||
589590
(!antiProtons.empty() && antiNeutrons.size() >= minimumSizeContainer);
590591
}

0 commit comments

Comments
 (0)