|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include "CaloDetDescr/CaloDetDescrElement.h"
32 m_calocell_id(nullptr)
35 declareInterface<IDataRetriever>(
this);
37 declareInterface<IDataRetriever>(
this);
58 return StatusCode::SUCCESS;
81 return StatusCode::SUCCESS;
111 ATH_MSG_ERROR(
"in getBadLArData(),Could not get LArOnlineID!" );
118 if( !(*it1)->badcell() )
continue;
120 HWIdentifier LArhwid =
cabling->createSignalChannelIDFromHash((*it1)->caloDDE()->calo_hash());
121 energyGeV = (*it1)->energy()*(1./
GeV);
122 if (energyGeV == 0) energyGeV = 0.001;
126 phi.emplace_back((*it1)->phi());
127 eta.emplace_back((*it1)->eta());
129 feedThrough.emplace_back(onlineId->
feedthrough(LArhwid));
130 slot.emplace_back(onlineId->
slot(LArhwid));
135 DataMap[
"phi"] = std::move(phi);
136 DataMap[
"eta"] = std::move(eta);
138 DataMap[
"id"] = std::move(idVec);
140 DataMap[
"feedThrough"] = std::move(feedThrough);
141 DataMap[
"slot"] = std::move(slot);
144 <<
" retrieved with " <<
nEntries <<
" entries" );
char data[hepevt_bytes_allocation_ATLAS]
Const iterator class for DataVector/DataList.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
CaloCellContainer::const_iterator beginConstCalo(CaloCell_ID::SUBCALO caloNum) const
get const iterators on cell of just one calo
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
const DataMap getBadLArData(const CaloCellContainer *cellContainer)
Retrieve LAr bad cell location and details.
const CaloCell_ID * m_calocell_id
const std::string & key() const
Return the StoreGate ID for the referenced object.
std::map< std::string, DataVect > DataMap
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
setRawEt setRawPhi nCells
BadLArRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
std::vector< HWIdentifier >::iterator it1
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
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.
StatusCode initialize(bool used=true)
Wrapper to avoid constant divisions when using units.
SG::ReadHandleKey< CaloCellContainer > m_sgKey
for properties
Container class for CaloCell.
virtual std::string dataTypeName() const
Return the name of the data type.
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
#define ATH_MSG_WARNING(x)
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
CaloCellContainer::const_iterator endConstCalo(CaloCell_ID::SUBCALO caloNum) const
unsigned long long value_type
size_type size() const noexcept
Returns the number of elements in the collection.
StatusCode initialize()
Default AthAlgTool methods.