11#include "CaloEvent/CaloClusterContainer.h"
23 const std::vector< T >&
vec ) {
26 for(
size_t i = 0;
i <
vec.size(); ++
i ) {
28 if( i < (
vec.size() - 1 ) ) {
43 m_cnvTool(
"xAODMaker::CaloClusterCnvTool/CaloClusterCnvTool", this ) {
64 <<
"Job properties 'AODContainerNames' and 'xAODContainerNames' "
65 <<
"have unequal lenght! ("
68 return StatusCode::FAILURE;
74 ATH_MSG_INFO(
"Will convert all CaloClusterContainers in the event");
80 for (
size_t i=0;i<nKeys;++i) {
83 <<
" to xAOD::CaloClusterContainer#"
89 return StatusCode::SUCCESS;
113 for(
size_t iKey = 0; iKey < nKeys; ++iKey ) {
121 <<
" not found. Ignored." );
126 <<
" exists already. No conversion done" );
136 const std::string ccclc_name = xaodName +
"_links";
148 xaod->setStore(
aux );
149 ATH_MSG_DEBUG(
"Recorded xAOD clusters with key: " << xaodName );
155 for(
unsigned i = 0 ; itr != end; ++itr, ++i ) {
167 <<
aux->getDynamicAuxIDs().size() );
174 return StatusCode::SUCCESS;
#define ATH_MSG_VERBOSE(x)
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current CaloClusterCellLinkContainer
std::vector< size_t > vec
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE(LVL)
Report a message.
#define CHECK(...)
Evaluate an expression and check for errors.
std::ostream & operator<<(std::ostream &lhs, const TestGaudiProperty &rhs)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
Container class for CaloCellLink.
Storable container for CaloCluster.
ClusterCreator(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
std::vector< std::string > m_xaodContainerNames
The keys for the output xAOD::CaloClusterContainer.
ToolHandle< xAODMaker::ICaloClusterCnvTool > m_cnvTool
Connection to the converter tool.
virtual StatusCode execute()
Function executing the algorithm.
virtual StatusCode initialize()
Function initialising the algorithm.
bool m_keySet
True if keys set by jobO.
std::vector< std::string > m_aodContainerNames
The keys of the input CaloClusterContainer.
DataModel_detail::const_iterator< DataVector > const_iterator
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
CaloClusterAuxContainer_v2 CaloClusterAuxContainer
Define the latest version of the calorimeter cluster auxiliary container.