Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
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");
83 <<
" to xAOD::CaloClusterContainer#"
89 return StatusCode::SUCCESS;
113 for(
size_t iKey = 0; iKey <
nKeys; ++iKey ) {
119 if( !
evtStore()->contains< CaloClusterContainer >( aodName ) ) {
121 <<
" not found. Ignored." );
124 if(
evtStore()->contains< xAOD::CaloClusterContainer >( xaodName ) ) {
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 ) {
174 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
std::vector< std::string > m_aodContainerNames
The keys of the input CaloClusterContainer.
Container class for CaloCellLink.
Const iterator class for DataVector/DataList.
virtual StatusCode execute()
Function executing the algorithm.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Storable container for CaloCluster.
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Current CaloClusterCellLinkContainer
std::vector< size_t > vec
#define ATH_MSG_VERBOSE(x)
ToolHandle< xAODMaker::ICaloClusterCnvTool > m_cnvTool
Connection to the converter tool.
ClusterCreator(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
virtual StatusCode initialize()
Function initialising the algorithm.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual const auxid_set_t & getDynamicAuxIDs() const override
Get the types(names) of variables created dynamically.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
Description of a calorimeter cluster.
bit_t size() const
Count the number of 1 bits in the set.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
Auxiliary container for calorimeter cluster containers.
Helpers for checking error return status codes and reporting errors.
CaloClusterAuxContainer_v2 CaloClusterAuxContainer
Define the latest version of the calorimeter cluster auxiliary container.
std::ostream & operator<<(std::ostream &lhs, const TestGaudiProperty &rhs)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
#define REPORT_MESSAGE(LVL)
Report a message.
std::vector< std::string > m_xaodContainerNames
The keys for the output xAOD::CaloClusterContainer.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
bool m_keySet
True if keys set by jobO.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.