38 return StatusCode::SUCCESS;
42 return StatusCode::SUCCESS;
49 if(
sc.isFailure() || !truthCollection) {
51 return StatusCode::FAILURE;
63 auto Classify =
m_classifier->particleTruthClassifier( p );
71 return StatusCode::SUCCESS;
DataVector adapter that acts like it holds const pointers.
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
ATLAS-specific HepMC functions.
Create collection of true muons in StoreGate, based on analogous code in TauD3PDMaker.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
DataVector adapter that acts like it holds const pointers.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
ToolHandle< IMCTruthClassifier > m_classifier
TruthMuonsToSG(const std::string &name, ISvcLocator *pSvcLocator)
SGKeyResolver m_resolver
Helper to resolve SG key for input collection.
std::string m_truthMuonContainerKey
std::string m_truthContainerKey
Block filler tool for noisy FEB information.
bool isPhoton(const T &p)
bool isStable(const T &p)
Identify if the particle is stable, i.e. has not decayed.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
TruthParticle_v1 TruthParticle
Typedef to implementation.
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.