33 return StatusCode::SUCCESS;
46 return StatusCode::SUCCESS;
51 if (proxy->isConst()) {
57 auto store = std::make_unique<xAOD::MuonAuxContainer>();
58 muons->setStore (store.get());
59 for (
const xAOD::Muon* oldMuon : *originalMuons) {
62 *muons->
back() = *oldMuon;
74 for (
auto muon: *muons){
79 return StatusCode::SUCCESS;
89 muon.setP4(tp->pt(), tp->eta(), tp->phi());
94 truthParticleLinkAcc (
muon) = truthParticleLinkAcc (*tp);
95 truthTypeAcc (
muon) = truthTypeAcc (*tp);
96 truthOriginAcc (
muon) = truthOriginAcc (*tp);
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Helper class to provide type-safe access to aux data.
Helpers for checking error return status codes and reporting errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const T * back() const
Access the last element in the collection as an rvalue.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Helper class to provide type-safe access to aux data.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
void fixMuon(xAOD::Muon &muon) const
virtual StatusCode execute()
Function executing the algorithm.
virtual StatusCode initialize()
Function initialising the algorithm.
MuonAODFixAlg(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
std::string m_containerName
The key for the output xAOD::CaloClusterContainer.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Muon_v1 Muon
Reference the current persistent version:
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".