|
ATLAS Offline Software
|
Go to the documentation of this file.
27 return StatusCode::SUCCESS;
32 return StatusCode::SUCCESS;
40 auto output = std::make_unique<xAOD::BaseContainer>();
41 auto outputAux = std::make_unique<xAOD::AuxContainerBase>();
42 output->setStore(outputAux.get());
45 for (
auto coll: *pixelSPContainer ) {
46 pixSize += coll->size();
49 for (
auto coll: *SCTSPContainer ) {
50 SCTSize += coll->size();
53 auto goodNumberOfSpacePoints = [
this, SCTSize, pixSize](){
59 auto goodNumberOfTracks = [
this, &context]() {
64 if ( goodNumberOfSpacePoints() and goodNumberOfTracks() ) {
74 const PixelID *pixelID =
nullptr;
75 const SCT_ID *stripID =
nullptr;
81 for (
auto coll: *pixelSPContainer ) {
82 for (
auto sp: *coll ) {
91 auto[hashId1, hashId2] = sp->elementIdList();
92 module1(*
item) = hashId1;
93 module2(*
item) = hashId2;
99 for (
auto coll: *SCTSPContainer ) {
100 for (
auto sp: *coll ) {
109 auto[hashId1, hashId2] = sp->elementIdList();
110 module1(*
item) = hashId1;
111 module2(*
item) = hashId2;
120 <<
" " << zAcc(*
output->at(
i)) );
126 ATH_CHECK( outputHandle.record(std::move(
output), std::move(outputAux)));
128 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_tracksKey
Base class for elements of a container that can have aux data.
SpacePointCopier(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< size_t > m_maxTotalSP
const std::vector< int > & totList() const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
virtual StatusCode initialize() override
Gaudi::Property< size_t > m_maxSCTSP
Gaudi::Property< size_t > m_maxPixSP
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< SpacePointContainer > m_pixelSPKey
Gaudi::Property< size_t > m_maxTracks
Helper class to provide type-safe access to aux data.
SG::WriteHandleKey< xAOD::BaseContainer > m_outputKey
virtual StatusCode finalize() override
virtual ~SpacePointCopier() override
Helper class to provide constant type-safe access to aux data.
SG::ReadHandleKey< SpacePointContainer > m_SCTSPKey
virtual StatusCode execute(const EventContext &context) const override