|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef CALOTOWER_MAX_CELL_COUNT
13 #define CALOTOWER_MAX_CELL_COUNT 200000
19 , m_inputClusterContainerKey(
"CaloCalTopoClusters")
30 return StatusCode::SUCCESS;
36 if(cellToTower.empty()) {
38 return StatusCode::FAILURE;
45 if (!caloTowerContainer.
isValid())
46 return StatusCode::FAILURE;
48 std::bitset< CALOTOWER_MAX_CELL_COUNT> addedCellsMap;
53 ATH_MSG_ERROR(
"Cluster without cell links found in collection: " << inputClusterContainer.name());
54 return StatusCode::FAILURE;
64 const auto& c2ts=cellToTower[
cellHash];
67 (*caloTowerContainer)[c2t.m_towerIdx]->addEnergy(
cell->e()*c2t.m_weight);
72 return StatusCode::SUCCESS;
76 {
return StatusCode::SUCCESS; }
virtual ~CaloTowerxAODFromClusters()
Baseclass destructor.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const CellToTowerVec & getIndexCache(const EventContext &ctx) const
CaloTowerxAODFromClusters(const std::string &name, ISvcLocator *pSvcLocator)
Default algorithm constructor.
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink,...
Description of a calorimeter cluster.
std::vector< std::vector< cellToTower_t > > CellToTowerVec
virtual StatusCode initialize() override
Initialize algorithm.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::WriteHandle< xAOD::CaloTowerContainer > makeContainer(const EventContext &ctx) const
Intialize m_cellToTower cache.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode finalize() override
Finalize algorithm.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClusterContainerKey
virtual StatusCode execute(const EventContext &) const override
Execute algorithm.
Data object for each calorimeter readout cell.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...