ATLAS Offline Software
Loading...
Searching...
No Matches
egammaSelectedTrackCopy.cxx File Reference
#include "egammaSelectedTrackCopy.h"
#include "AthenaKernel/errorcheck.h"
#include "CaloDetDescr/CaloDetDescrManager.h"
#include "FourMomUtils/P4Helpers.h"
#include "GaudiKernel/EventContext.h"
#include "StoreGate/ReadHandle.h"
#include "StoreGate/WriteHandle.h"
#include "egammaUtils/CandidateMatchHelpers.h"
#include "xAODCaloEvent/CaloCluster.h"
#include "xAODCaloEvent/CaloClusterContainer.h"
#include "xAODEgamma/EgammaxAODHelpers.h"
#include "xAODTracking/TrackParticle.h"
#include "xAODTracking/TrackParticleContainer.h"
#include <algorithm>
#include <cmath>
#include <memory>
#include <vector>

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}