|
ATLAS Offline Software
|
Go to the documentation of this file.
25 return StatusCode::SUCCESS;
35 if (!inputContainer.
isValid()) {
36 ATH_MSG_ERROR(
"Could not get pileup PixelClusterContainer " << inputContainer.
name() <<
" from store " << inputContainer.
store());
37 return StatusCode::FAILURE;
39 ATH_MSG_DEBUG(
"Found pileup PixelClusterContainer " << inputContainer.
name() <<
" in store " << inputContainer.
store());
44 if (!outputContainer.
isValid()) {
45 ATH_MSG_ERROR(
"Could not record output PixelClusterContainer " << outputContainer.
name() <<
" to store " << outputContainer.
store());
46 return StatusCode::FAILURE;
48 ATH_MSG_DEBUG(
"Recorded output PixelClusterContainer container " << outputContainer.
name() <<
" in store " << outputContainer.
store());
52 newCol->setIdentifier(
col->identify());
54 newCol->push_back(std::make_unique<InDet::PixelCluster>(*clus));
56 ATH_CHECK(outputContainer->addCollection(newCol,newCol->identifyHash()));
58 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...
CopyPixelClusterContainer(const std::string &name, ISvcLocator *pSvcLocator)
const std::string & name() const
Return the StoreGate ID for the referenced object.
virtual StatusCode initialize() override
#define ATH_MSG_VERBOSE(x)
SG::WriteHandleKey< InDet::PixelClusterContainer > m_outputKey
SG::ReadHandleKey< InDet::PixelClusterContainer > m_inputKey
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.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string store() const
Return the name of the store holding the object we are proxying.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode execute(const EventContext &ctx) const override
virtual bool isValid() override final
Can the handle be successfully dereferenced?
size_type wafer_hash_max(void) const
const PixelID * m_idHelper
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Trk::PrepRawDataCollection< PixelCluster > PixelClusterCollection