|
ATLAS Offline Software
|
Go to the documentation of this file.
21 m_sgKeyFavourite (
"LArClusterEM")
24 declareInterface<IDataRetriever>(
this);
27 "Collection to be first in output, shown in Atlantis without switching");
29 "Other collections to be retrieved. If list left empty, all available retrieved");
40 return StatusCode::SUCCESS;
71 std::vector<std::string> allkeys;
73 for (
const auto&
key : allkeys) {
80 std::string::size_type position =
key.find(
"HLTAutoKey",0);
113 return StatusCode::SUCCESS;
136 int noClu = ccc->
size();
140 for (
const auto cluster : *ccc) {
141 phi.emplace_back(cluster->phi());
142 eta.emplace_back(cluster->eta());
143 et.emplace_back(cluster->et()*(1./
GeV));
144 idVec.emplace_back( ++
id );
147 numCellsVec.emplace_back(
numCells );
150 for (
const auto cell : *cluster) {
151 cells.push_back(
cell->ID().get_compact());
155 std::string tagCells;
157 tagCells =
"cells multiple=\"" +
DataType(noCells/(noClu*1.0)).toString()+
"\"";
159 tagCells =
"cells multiple=\"1.0\"";
164 DataMap[
"phi"] = std::move(phi);
165 DataMap[
"eta"] = std::move(eta);
168 DataMap[
"numCells"] = std::move(numCellsVec);
169 DataMap[
"id"] = std::move(idVec);
173 <<
" retrieved with " <<
nEntries <<
" entries" );
char data[hepevt_bytes_allocation_ATLAS]
Extra patterns decribing particle interation process.
std::vector< std::string > m_otherKeys
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.
const std::string & key() const
Return the StoreGate ID for the referenced object.
std::map< std::string, DataVect > DataMap
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
CaloClusterRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
const DataMap getData(const xAOD::CaloClusterContainer *)
Retrieve basic parameters, mainly four-vectors.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
Default, invalid implementation of ClassID_traits.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
uint32_t CLID
The Class ID type.
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.
Wrapper to avoid constant divisions when using units.
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
#define ATH_MSG_WARNING(x)
StatusCode initialize()
Default AthAlgTool methods.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_sgKeyFavourite
size_type size() const noexcept
Returns the number of elements in the collection.
virtual std::string dataTypeName() const
Return the name of the data type.