ATLAS Offline Software
Loading...
Searching...
No Matches
TrackHistograms.cxx File Reference
#include "TrackHistograms.h"
#include "GaudiKernel/ITHistSvc.h"
#include "AsgMessaging/Check.h"
#include "xAODBase/IParticle.h"
#include "xAODTracking/TrackParticle.h"
#include "xAODEgamma/EgammaxAODHelpers.h"
#include "TH1D.h"
#include "TProfile.h"
Include dependency graph for TrackHistograms.cxx:

Go to the source code of this file.

Functions

float summaryValueFloat (const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, float deflt=-999.)
 return the summary value for a TrackParticle or default value (-999)
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

◆ summaryValueFloat()

return the summary value for a TrackParticle or default value (-999)

Definition at line 90 of file EgammaxAODHelpers.cxx.

182 {
183 float dummy(0);
184 return (tp.summaryValue(dummy, info) ? dummy : deflt);
185}
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.

◆ summaryValueInt()

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}