![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "CaloGeoHelpers/CaloSampling.h"
22 m_typeName(
"Cluster"),
23 m_sgKeyFavourite(
"egammaClusters")
27 declareInterface<IDataRetriever>(
this);
30 "Collection to be first in output, shown in Atlantis without switching");
32 "Other collections to be retrieved. If list left empty, all available retrieved");
51 if (
sc.isFailure() ) {
65 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
66 "Unable to retrieve iterator for AODCaloCluster collection" <<
endmsg;
78 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Collection " <<
iterator.key() <<
" not found in SG " <<
endmsg;
86 std::vector<std::string>::const_iterator keyIter;
89 if (!
sc.isFailure()) {
93 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Collection " << (*keyIter) <<
" not found in SG " <<
endmsg;
101 return StatusCode::SUCCESS;
126 std::string
label=
"";
129 float eInSample = 0.;
130 float eInSampleFull = 0.;
132 float rawemfrac = 0.;
136 std::string tagCells;
137 tagCells =
"cells multiple=\"1.0\"";
140 for (; itr != ccc->
end(); ++itr) {
157 emfrac = eInSample/eInSampleFull;
160 if ( emfrac > 1.0 ) emfrac = 1.;
161 if ( emfrac < 0.0 ) emfrac = 0.;
165 label =
"AllMeV_SumEMSampl=" +
DataType( eInSample ).toString() +
166 "_SumAllSampl=" +
DataType( eInSampleFull ).toString() +
167 "_calcEMFrac=" +
DataType( rawemfrac ).toString()+
168 "_outEMFrac=" +
DataType( emfrac ).toString();
169 }
else{
label =
"n_a"; }
173 labelVec.push_back(
label );
190 <<
" ,e=" << (*itr)->e()/
GeV <<
", et=";
192 <<
", phi=" << (*itr)->phi() <<
endmsg;
JetConstituentVector::iterator iterator
xAODCaloClusterRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
char data[hepevt_bytes_allocation_ATLAS]
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
Extra patterns decribing particle interation process.
Const iterator class for DataVector/DataList.
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
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.
bool msgLvl(const MSG::Level lvl) const
std::map< std::string, DataVect > DataMap
virtual std::string dataTypeName() const
Return the name of the data type.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const DataMap getData(const xAOD::CaloClusterContainer *)
Retrieve basic parameters, mainly four-vectors.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string m_sgKeyFavourite
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Wrapper to avoid constant divisions when using units.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
std::vector< std::string > m_otherKeys
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.