|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "CLHEP/Units/SystemOfUnits.h"
19 m_typeName(
"LVL1JetElement")
22 declareInterface<IDataRetriever>(
this);
25 "Storegate key for Level-1 Jet Elements");
35 const t_JECollection* JEVector;
40 return StatusCode::SUCCESS;
42 int noJE = JEVector->size();
50 t_JECollection::const_iterator
it ;
52 for(
it = JEVector->begin(); it < JEVector->
end(); ++
it ){
55 eta.push_back(
DataType((*it)->eta()));
56 phi.push_back(
DataType((*it)->phi()));
61 myDataMap[
"energy"] =
energy;
62 myDataMap[
"phi"] = phi;
63 myDataMap[
"eta"] = eta;
71 std::string emptyStr =
"";
72 return FormatTool->AddToEvent(
dataTypeName(), emptyStr, &myDataMap);
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.
virtual std::string dataTypeName() const
Return the name of the data type.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
bool msgLvl(const MSG::Level lvl) const
std::map< std::string, DataVect > DataMap
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
LVL1JetElementRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
std::string m_sgKey
The storegate key for the JetElements.