9#include "CLHEP/Units/SystemOfUnits.h"
21 declareInterface<IDataRetriever>(
this);
37 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
"No LVL1MuonROIs found in SG " <<
endmsg;
38 return StatusCode::SUCCESS;
40 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
"Found LVL1MuonROIs in SG ! " <<
endmsg;
42 int noRois = muonROIs->
size();
46 DataVect roiWord; roiWord.reserve(noRois);
47 DataVect thrNumber; thrNumber.reserve(noRois);
48 DataVect thrName; thrName.reserve(noRois);
49 DataVect thrValue; thrValue.reserve(noRois);
50 DataVect energy; energy.reserve(noRois);
57 for (; itMU != itMUe; ++itMU)
62 roiWord.push_back(
DataType( (*itMU)->getRoI()) );
63 thrNumber.push_back(
DataType( (*itMU)->getThrNumber()));
65 thrName.push_back(
DataType(
"n_a" ));
69 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
"xAOD MuonROI #" << counter++
70 <<
", eta: " << (*itMU)->eta() <<
", phi: " << (*itMU)->phi() <<
endmsg;
75 const auto nPhi =
phi.size();
76 myDataMap[
"phi"] = std::move(
phi);
77 myDataMap[
"eta"] = std::move(
eta);
78 myDataMap[
"energy"] = energy;
79 myDataMap[
"roiWord"] = std::move(roiWord);
80 myDataMap[
"thrNumber"] = std::move(thrNumber);
81 myDataMap[
"thrName"] = std::move(thrName);
82 myDataMap[
"thrValue"] = std::move(thrValue);
83 myDataMap[
"energy"] = std::move(energy);
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
ServiceHandle< StoreGateSvc > & evtStore()
bool msgLvl(const MSG::Level lvl) const
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
xAODMuonROIRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
const std::string m_typeName
The data type that is generated by this retriever.
virtual std::string dataTypeName() const
Return the name of the data type.
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.
MuonRoIContainer_v1 MuonRoIContainer