Skip to content

Commit 3d01061

Browse files
committed
changing to nullptr
1 parent c53c55b commit 3d01061

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

L1Trigger/Phase2L1ParticleFlow/src/NNVtxAssoc.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ bool NNVtxAssoc::TTTrackNetworkSelector(const PFRegionEmu& region, T& t, const l
4545
ap_ufixed<22, 9> dZEmulation_rescale = dZ;
4646

4747
// Deal with this template class using 2 different objects (t) which have different calls to their PFTracks:
48-
const l1t::PFTrack* srcTrack = NULL;
48+
const l1t::PFTrack* srcTrack = nullptr;
4949
if constexpr (std::is_same_v<T, const l1ct::TkObjEmu>)
5050
srcTrack = t.src;
5151
else if constexpr (std::is_same_v<T, const l1ct::PFChargedObjEmu>)
@@ -59,10 +59,7 @@ bool NNVtxAssoc::TTTrackNetworkSelector(const PFRegionEmu& region, T& t, const l
5959
inputAssoc.tensor<float, 2>()(0, 3) = dZEmulation_rescale.to_double();
6060

6161
// Run Association Network:
62-
tensorflow::run(associationSesh_,
63-
{{"NNvtx_track_association:0", inputAssoc}},
64-
{"Identity:0"},
65-
&outputAssoc);
62+
tensorflow::run(associationSesh_, {{"NNvtx_track_association:0", inputAssoc}}, {"Identity:0"}, &outputAssoc);
6663

6764
double NNOutput = (double)outputAssoc[0].tensor<float, 2>()(0, 0);
6865
double NNOutput_exp = 1.0 / (1.0 + exp(-1.0 * (NNOutput)));

0 commit comments

Comments
 (0)