ATLAS Offline Software
Loading...
Searching...
No Matches
ActsEMBremCollectionBuilder.cxx File Reference

Go to the source code of this file.

Functions

int summaryValueInt (const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, int deflt=-999)
 return the summary value for a TrackParticle or default value (-999) (to be used mostly in python where uint8_t is converted to char and the Tracking does not provide unprotected methods)

Function Documentation

◆ summaryValueInt()

int xAOD::EgammaHelpers::summaryValueInt ( const xAOD::TrackParticle & tp,
const xAOD::SummaryType & info,
int deflt = -999 )

return the summary value for a TrackParticle or default value (-999) (to be used mostly in python where uint8_t is converted to char and the Tracking does not provide unprotected methods)

Definition at line 87 of file EgammaxAODHelpers.cxx.

175 {
176 uint8_t dummy(0);
177 return (tp.summaryValue(dummy, info) ? dummy : deflt);
178}