15 return StatusCode::SUCCESS;
22 if (msgLvl(MSG::DEBUG)){
23 const EventContext& ctx = Gaudi::Hive::currentContext();
27 return StatusCode::SUCCESS;
33 ATH_MSG_INFO(
"Initializing Fast Simulation Model FatrasG4");
41 const EventContext& ctx = Gaudi::Hive::currentContext();
61 if (msgLvl(MSG::DEBUG)) {
76 return StatusCode::FAILURE;
86 for (
const auto&
hit : pixelHits) {pixelHandle->push_back(
hit);}
87 for (
const auto&
hit : sctHits) {sctHandle->push_back(
hit);}
89 ATH_MSG_DEBUG(
"Pixel container size = " << pixelHandle->size());
93 if (msgLvl(MSG::VERBOSE)) {
95 for (
const SiHit&
hit : *pixelHandle) {
96 const auto& start =
hit.localStartPosition();
97 const auto& end =
hit.localEndPosition();
98 int barcode =
hit.particleLink().barcode();
101 <<
" Edep(MeV)=" <<
hit.energyLoss()
112 for (
const SiHit&
hit : *sctHandle) {
113 const auto& start =
hit.localStartPosition();
114 const auto& end =
hit.localEndPosition();
115 int barcode =
hit.particleLink().barcode();
118 <<
" Edep(MeV)=" <<
hit.energyLoss()
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_VERBOSE(x,...)
#define ATH_MSG_INFO(x,...)
virtual StatusCode BeginOfAthenaEvent(HitCollectionMap &) override
Begin of an athena event - do anything that needs to be done at the beginning of each athena event.
StatusCode initializeFastSim() override
Construct and setup the fast simulation model.
virtual StatusCode EndOfAthenaEvent(HitCollectionMap &) override
End of an athena event - do any tidying up required at the end of each athena event.
G4Region * getRegion() const
Small wrapper around hit collection map to facilitate accessing the hit collection.
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
bool isPresent() const
Is the referenced object present in SG?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
virtual bool isValid() override final
Can the handle be successfully dereferenced?