|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
    5 #ifndef ISF_BASESIMULATIONG4SVC_H 
    6 #define ISF_BASESIMULATIONG4SVC_H 1 
   14 #include <GaudiKernel/StatusCode.h> 
   26 class IParticleBroker;
 
   43                               std::shared_ptr<HitCollectionMap>) = 0;
 
   54                                     std::shared_ptr<HitCollectionMap> hitCollections,
 
   62                       << 
"Starting simulation of particle: " << 
part);
 
   63       if (this->
simulate(*
part, mcEventCollection, hitCollections).isFailure()) {
 
   67                         << 
"   -> particle : " << *
part);
 
   68         sc = StatusCode::FAILURE;
 
   78     return StatusCode::FAILURE;
 
   91     return StatusCode::FAILURE;
 
   96 #endif  //> !ISF_BASESIMULATIONSVC_H 
  
virtual StatusCode simulate(ISFParticle &, McEventCollection *, std::shared_ptr< HitCollectionMap >)=0
Simulation call for individual particles.
Small wrapper around hit collection map to facilitate accessing the hit collection.
BaseSimulationSvc()
Default constructor.
virtual StatusCode simulateVector(const ISFParticleVector &particles, McEventCollection *mcEventCollection, std::shared_ptr< HitCollectionMap > hitCollections, McEventCollection *)
Simulation call for vectors of particles.
#define ATH_MSG_VERBOSE(x)
virtual StatusCode releaseEvent() override
Release Event chain - in case of an end-of event action is needed.
virtual StatusCode setupEvent() override
Setup Event chain - in case of a begin-of event action is needed.
virtual StatusCode releaseEvent(HitCollectionMap &)=0
Release Event chain - in case of an end-of event action is needed.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< ISF::ISFParticle * > ISFParticleVector
ISFParticle vector.
Gaudi::Property< std::string > m_screenOutputPrefix
Screen output refinement.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
virtual ~BaseSimulationG4Svc()=default
Destructor.
virtual StatusCode simulate(ISFParticle &, McEventCollection *) override
Simulation call for individual particles.
const std::string & simSvcDescriptor() override
Return the simulation service descriptor.
#define ATH_MSG_WARNING(x)
virtual StatusCode simulateVector(const ISFParticleVector &, McEventCollection *, McEventCollection *) override
Simulation call for vectors of particles.
virtual StatusCode setupEvent(HitCollectionMap &)=0
Setup Event chain - in case of a begin-of event action is needed.