12#include "CaloDetDescr/CaloDetDescrElement.h"
27using Athena::Units::GeV;
42 declareInterface<IDataRetriever>(
this);
59 return StatusCode::SUCCESS;
78 return StatusCode::SUCCESS;
93 DataVect energyVec; energyVec.reserve(cellContainer->
size());
102 for(;it1!=it2;++it1){
103 if( !(*it1)->badcell() )
continue;
106 energyGeV = (*it1)->energy()*(1./
GeV);
108 idVec.emplace_back( (Identifier::value_type)(*it1)->ID().get_compact() );
109 phi.emplace_back((*it1)->phi());
110 eta.emplace_back((*it1)->eta());
115 const auto nEntries =
phi.size();
119 DataMap[
"id"] = std::move(idVec);
120 DataMap[
"energy"] = std::move(energyVec);
134 m_sub.emplace_back(2);
136 m_sub.emplace_back(3);
141 m_sub.emplace_back(0);
143 m_sub.emplace_back(5);
149 m_sub.emplace_back(1);
151 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.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
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
virtual std::string dataTypeName() const
Return the name of the data type.
const CaloCell_ID * m_calocell_id
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
void calcTILELayerSub(Identifier &)
BadTileRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
StatusCode initialize()
Default AthAlgTool methods.
const DataMap getBadTileData(const CaloCellContainer *cellContainer)
Retrieve Tile bad cell location and details.
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.