Loading [MathJax]/jax/output/SVG/config.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
36 return StatusCode::SUCCESS;
40 for (
const std::string&
key :
keys) {
53 return StatusCode::SUCCESS;
73 DataVect logLhRatio; logLhRatio.reserve(tauCont->
size());
77 DataVect trackLinkCount; trackLinkCount.reserve(tauCont->
size());
78 DataVect isTauString; isTauString.reserve(tauCont->
size());
88 for (; tauItr != tauItrE; ++tauItr) {
92 phi.emplace_back(
DataType((*tauItr)->phi()));
93 eta.emplace_back(
DataType((*tauItr)->eta()));
97 logLhRatio.emplace_back(
DataType( 1. ));
100 isTauString.emplace_back(
DataType(
"xAOD_tauJet_withoutQuality" ));
109 #ifndef XAODTAU_VERSIONS_TAUTRACK_V1_H
110 const std::vector< ElementLink< xAOD::TrackParticleContainer > > tpLinks = (*tauItr)->trackLinks();
116 unsigned int tp_size = tpLinks.size();
117 numTracks.emplace_back(
DataType( tp_size ));
118 trackLinkCount.emplace_back(
DataType( tp_size ));
120 for(
unsigned int tp = 0;
tp<tp_size; ++
tp)
128 <<
", collection : " << tpl.
key()
129 <<
", Tracks : " <<
tp <<
" out of " << tp_size <<
", own count: " << trkCnt++);
144 DataMap[
"numTracks"] = numTracks;
146 DataMap[
"logLhRatio"] = logLhRatio;
149 DataMap[
"trackLinkCount"] = trackLinkCount;
150 DataMap[
"isTauString"] = isTauString;
154 if ((numTracks.size()) != 0){
156 double NTracksPerVertex = tracks.size()*1./numTracks.size();
157 std::string
tag =
"trackIndex multiple=\"" +
DataType(NTracksPerVertex).toString()+
"\"";
159 tag =
"trackKey multiple=\"" +
DataType(NTracksPerVertex).toString()+
"\"";
177 std::vector<std::string>
keys = {};
195 std::vector<std::string> allKeys;
199 for(
const std::string&
key : allKeys){
202 if(it2 !=
keys.end())
continue;
char data[hepevt_bytes_allocation_ATLAS]
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.
sgkey_t key() const
Get the key that we reference, as a hash.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
For each Tau collections retrieve basic parameters.
const DataMap getData(const xAOD::TauJetContainer *)
Return the name of the data type that is generated by this retriever.
std::map< std::string, DataVect > DataMap
Gaudi::Property< bool > m_doWriteAllCollections
Gaudi::Property< std::string > m_tracksName
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Gaudi::Property< std::string > m_priorityKey
Gaudi::Property< std::vector< std::string > > m_otherKeys
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< ElementLink< xAOD::TrackParticleContainer > > trackParticleLinks(const xAOD::TauJet *tau, xAOD::TauJetParameters::TauTrackFlag flag=xAOD::TauJetParameters::TauTrackFlag::classifiedCharged)
Gaudi::Property< bool > m_doWriteHLT
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.
double charge(const T &p)
xAODTauRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
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)
index_type index() const
Get the index of the element inside of its container.
@ isolFrac
Get isolation fraction.
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
const std::vector< std::string > getKeys()
Gets the StoreGate keys for the desired containers.
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.