2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5 * @file CaloIdCnv/CaloIDHelper_IDDetDescrCnv.icc
6 * @author scott snyder <snyder@bnl.gov>
8 * @brief Common code for creating calo ID helpers in the detector store.
12#include "AthenaKernel/StorableConversions.h"
13#include "AthenaKernel/errorcheck.h"
20 * @brief Helper function to actually create a new helper.
21 * @param svcloc Gaudi service locator.
22 * @param helperKey The StoreGate key of the helper being created.
23 * @param idhelper[out] Set to the created helper.
25 * The default implementation just does @c new with the default constructor;
26 * however, this function may be overridden for specific types.
29StatusCode make_CaloIDHelper (ISvcLocator* /*svcloc*/,
30 const std::string& /*helperKey*/,
34 return StatusCode::SUCCESS;
39 * @brief Return the CLID of the class we create.
40 * Required by the converter infrastructure.
43CLID CaloIDHelper_IDDetDescrCnv_T<T>::classID()
45 return ClassID_traits<T>::ID();
51 * @param svcloc Gaudi service locator.
54CaloIDHelper_IDDetDescrCnv_T<T>::CaloIDHelper_IDDetDescrCnv_T
56 : CaloIDHelper_IDDetDescrCnv (classID(), svcloc)
62 * @brief Create the helper object.
63 * @param helperKey StoreGate key of the helper.
64 * @param idhelper[out] Set to a pointer to the new helper.
65 * @param pObj[out] Set to a reference to the created helper.
69CaloIDHelper_IDDetDescrCnv_T<T>::createHelper (const std::string& helperKey,
74 //make_CaloIDHelper can only return StatusCode::SUCCESS
75 make_CaloIDHelper (serviceLocator(), helperKey, helper).ignore();
77 pObj = SG::asStorable(helper);
78 return StatusCode::SUCCESS;
82} // namespace CaloIdCnv