Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "CaloGeoHelpers/CaloSampling.h"
36 return StatusCode::SUCCESS;
40 for (
const std::string&
key :
keys) {
53 return StatusCode::SUCCESS;
82 float eInSampleFull = 0.;
89 tagCells =
"cells multiple=\"1.0\"";
92 for (; itr != ccc->
end(); ++itr) {
109 emfrac = eInSample/eInSampleFull;
112 if ( emfrac > 1.0 ) emfrac = 1.;
113 if ( emfrac < 0.0 ) emfrac = 0.;
117 label =
"AllMeV_SumEMSampl=" +
DataType( eInSample ).toString() +
118 "_SumAllSampl=" +
DataType( eInSampleFull ).toString() +
119 "_calcEMFrac=" +
DataType( rawemfrac ).toString()+
120 "_outEMFrac=" +
DataType( emfrac ).toString();
121 }
else{
label =
"n_a"; }
125 labelVec.emplace_back(
label );
131 phi.emplace_back(
DataType((*itr)->phi()));
132 eta.emplace_back(
DataType((*itr)->eta()));
136 idVec.emplace_back(
DataType( ++
id ));
139 <<
" ,e=" << (*itr)->e()/
GeV <<
", et="
140 << (*itr)->et()/
GeV <<
", eta=" << (*itr)->eta()
141 <<
", phi=" << (*itr)->phi());
154 <<
" retrieved with " << phi.size() <<
" entries");
163 std::vector<std::string>
keys = {};
181 std::vector<std::string> allKeys;
185 for(
const std::string&
key : allKeys){
188 if(it2 !=
keys.end())
continue;
Gaudi::Property< bool > m_doWriteAllCollections
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.
std::string find(const std::string &s)
return a remapped string
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
const std::vector< std::string > getKeys()
Gets the StoreGate keys for the desired containers.
Gaudi::Property< bool > m_doWriteHLT
#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.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const DataMap getData(const xAOD::CaloClusterContainer *)
Puts the variables into a DataMap.
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< std::vector< std::string > > m_otherKeys
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)
Gaudi::Property< std::string > m_priorityKey
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.