12#include "CaloDetDescr/CaloDetDescrElement.h"
27using Athena::Units::GeV;
39 return StatusCode::SUCCESS;
58 return StatusCode::SUCCESS;
73 DataVect energyVec; energyVec.reserve(cellContainer->
size());
83 if( !(*it1)->badcell() )
continue;
86 energyGeV = (*it1)->energy()*(1./
GeV);
88 idVec.emplace_back( (Identifier::value_type)(*it1)->ID().get_compact() );
89 phi.emplace_back((*it1)->phi());
90 eta.emplace_back((*it1)->eta());
95 const auto nEntries =
phi.size();
99 DataMap[
"id"] = std::move(idVec);
100 DataMap[
"energy"] = std::move(energyVec);
114 m_sub.emplace_back(2);
116 m_sub.emplace_back(3);
121 m_sub.emplace_back(0);
123 m_sub.emplace_back(5);
129 m_sub.emplace_back(1);
131 m_sub.emplace_back(4);
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
char data[hepevt_bytes_allocation_ATLAS]
Wrapper to avoid constant divisions when using units.
Container class for CaloCell.
CaloCellContainer::const_iterator beginConstCalo(CaloCell_ID::SUBCALO caloNum) const
get const iterators on cell of just one calo
CaloCellContainer::const_iterator endConstCalo(CaloCell_ID::SUBCALO caloNum) const
DataModel_detail::const_iterator< DataVector > const_iterator
size_type size() const noexcept
Returns the number of elements in the collection.
SG::ReadHandleKey< CaloCellContainer > m_sgKey
Gaudi::Property< bool > m_doBadTile
const CaloCell_ID * m_calocell_id
void calcTILELayerSub(Identifier &)
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool) override
Retrieve all the data.
virtual std::string dataTypeName() const override
Return the name of the data type.
virtual StatusCode initialize() override
Default AthAlgTool methods.
Gaudi::Property< bool > m_tile
const DataMap getBadTileData(const CaloCellContainer *cellContainer)
Retrieve Tile bad cell location and details.
Gaudi::Property< int > m_cellEnergyPrec
virtual bool isValid() override final
Can the handle be successfully dereferenced?
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
std::map< std::string, DataVect > DataMap
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.