Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
39 return StatusCode::SUCCESS;
43 for (
const std::string&
key :
keys) {
56 return StatusCode::SUCCESS;
86 <<
" with " << NVtx <<
" entries");
88 x.reserve(
x.size()+NVtx);
89 y.reserve(
y.size()+NVtx);
90 z.reserve(
z.size()+NVtx);
93 primVxCand.reserve(primVxCand.size()+NVtx);
95 numTracks.reserve(numTracks.size()+NVtx);
96 tracks.reserve(tracks.size()+NVtx);
103 for ( ; VertexItr != cont->
end(); ++VertexItr) {
106 << (*VertexItr)->y()/
cm <<
", z[GeV] = " << (*VertexItr)->z()/
cm
107 <<
", vertexType = " << (*VertexItr)->vertexType()
108 <<
", chiSquared = " << (*VertexItr)->chiSquared()
109 <<
", numberDoF = " << (*VertexItr)->numberDoF());
121 if ((*VertexItr)->vertexType() == 1 ){
122 primVxCand.emplace_back( 1 );
124 primVxCand.emplace_back( 0 );
132 if ( (*VertexItr)->numberDoF() != 0 ){
133 chi2val = (*VertexItr)->chiSquared()/(*VertexItr)->numberDoF() ;
143 const std::vector< ElementLink< xAOD::TrackParticleContainer > > tpLinks = (*VertexItr)->trackParticleLinks();
146 unsigned int tp_size = tpLinks.size();
147 numTracks.emplace_back(
DataType( tp_size ));
149 for(
unsigned int tp = 0;
tp<tp_size; ++
tp)
154 <<
", collection : " << tpl.
key()
155 <<
", Tracks : " <<
tp <<
" out of " << tp_size <<
", own count: " << trkCnt++);
157 if ( tpl.
index() < 1000 ){
173 DataMap[
"primVxCand"] = primVxCand;
175 DataMap[
"numTracks"] = numTracks;
180 if ((numTracks.size()) != 0){
182 double NTracksPerVertex = tracks.size()*1./numTracks.size();
183 std::string
tag =
"tracks multiple=\"" +
DataType(NTracksPerVertex).toString()+
"\"";
197 std::vector<std::string>
keys = {};
222 std::vector<std::string> allKeys;
228 for(
const std::string&
key : allKeys){
231 if(it2 !=
keys.end())
continue;
char data[hepevt_bytes_allocation_ATLAS]
Gaudi::Property< std::string > m_tracksName
Const iterator class for DataVector/DataList.
Gaudi::Property< bool > m_doWriteAllCollections
Gaudi::Property< std::string > m_secondaryVertexKey
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.
Gaudi::Property< std::string > m_primaryVertexKey
std::map< std::string, DataVect > DataMap
const std::vector< std::string > getKeys()
Gets the StoreGate keys for the desired containers.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
double chi2(TH1 *h0, TH1 *h1)
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
const DataMap getData(const xAOD::VertexContainer *, const std::string &key)
Puts the variables into a DataMap.
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.
Gaudi::Property< std::vector< std::string > > m_otherKeys
#define ATH_MSG_WARNING(x)
xAODVertexRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
index_type index() const
Get the index of the element inside of its container.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
For each Vertex collections retrieve basic parameters.
Gaudi::Property< bool > m_doWriteHLT
BASE::size_type size_type
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.
Gaudi::Property< bool > m_doWriteV0