File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,8 +153,8 @@ class OTFParticle
153153 int getMotherIndexStop () const { return mIndicesMother [1 ]; }
154154 int getDaughterIndexStart () const { return mIndicesDaughter [0 ]; }
155155 int getDaughterIndexStop () const { return mIndicesDaughter [1 ]; }
156- std::array<int , 2 > getMothers () const { return mIndicesMother ; }
157- std::array<int , 2 > getDaughters () const { return mIndicesDaughter ; }
156+ const std::array<int , 2 >& getMothers () const { return mIndicesMother ; }
157+ const std::array<int , 2 >& getDaughters () const { return mIndicesDaughter ; }
158158 std::span<const int > getMotherSpan () const { return hasMothers () ? std::span<const int >(mIndicesMother .data (), 2 ) : std::span<const int >(); }
159159
160160 // Checks
@@ -176,7 +176,7 @@ class OTFParticle
176176 void setBitOn (DecayerBits bit) { mBits .set (static_cast <size_t >(bit), true ); }
177177 void setBitOff (DecayerBits bit) { mBits .set (static_cast <size_t >(bit), false ); }
178178
179- std::bitset<8 > getBits () const { return mBits ; }
179+ const std::bitset<8 >& getBits () const { return mBits ; }
180180 uint8_t getBitsValue () const { return static_cast <uint8_t >(mBits .to_ulong ()); }
181181 void setBits (std::bitset<8 > bits) { mBits = bits; }
182182
You can’t perform that action at this time.
0 commit comments