 |
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "CaloGeoHelpers/CaloSampling.h"
26 return StatusCode::SUCCESS;
54 return StatusCode::SUCCESS;
83 float eInSampleFull = 0.;
90 tagCells =
"cells multiple=\"1.0\"";
93 for (; itr != ccc->
end(); ++itr) {
110 emfrac = eInSample/eInSampleFull;
113 if ( emfrac > 1.0 ) emfrac = 1.;
114 if ( emfrac < 0.0 ) emfrac = 0.;
118 label =
"AllMeV_SumEMSampl=" +
DataType( eInSample ).toString() +
119 "_SumAllSampl=" +
DataType( eInSampleFull ).toString() +
120 "_calcEMFrac=" +
DataType( rawemfrac ).toString()+
121 "_outEMFrac=" +
DataType( emfrac ).toString();
122 }
else{
label =
"n_a"; }
126 labelVec.emplace_back(
label );
132 phi.emplace_back(
DataType((*itr)->phi()));
133 eta.emplace_back(
DataType((*itr)->eta()));
137 idVec.emplace_back(
DataType( ++
id ));
140 <<
" ,e=" << (*itr)->e()/
GeV <<
", et="
141 << (*itr)->et()/
GeV <<
", eta=" << (*itr)->eta()
142 <<
", phi=" << (*itr)->phi());
155 <<
" retrieved with " << phi.size() <<
" entries");
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)
For each cluster collection retrieve basic parameters.
Extra patterns decribing particle interation process.
Const iterator class for DataVector/DataList.
SG::ReadHandleKeyArray< xAOD::CaloClusterContainer > m_keys
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
#define ATH_MSG_VERBOSE(x)
std::map< std::string, DataVect > DataMap
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
const DataMap getData(const xAOD::CaloClusterContainer *)
Puts the variables into a DataMap.
virtual StatusCode initialize()
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
#define ATH_MSG_WARNING(x)
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.