 |
ATLAS Offline Software
|
Go to the documentation of this file.
30 return StatusCode::SUCCESS;
57 return StatusCode::SUCCESS;
86 x.reserve(
x.size()+NVtx);
87 y.reserve(
y.size()+NVtx);
88 z.reserve(
z.size()+NVtx);
91 primVxCand.reserve(primVxCand.size()+NVtx);
93 numTracks.reserve(numTracks.size()+NVtx);
94 tracks.reserve(tracks.size()+NVtx);
101 for ( ; VertexItr != cont->
end(); ++VertexItr) {
104 << (*VertexItr)->y()/
cm <<
", z[GeV] = " << (*VertexItr)->z()/
cm
105 <<
", vertexType = " << (*VertexItr)->vertexType()
106 <<
", chiSquared = " << (*VertexItr)->chiSquared()
107 <<
", numberDoF = " << (*VertexItr)->numberDoF());
115 if ((*VertexItr)->vertexType() == 1 ){
116 primVxCand.emplace_back( 1 );
118 primVxCand.emplace_back( 0 );
126 if ( (*VertexItr)->numberDoF() != 0 ){
127 chi2val = (*VertexItr)->chiSquared()/(*VertexItr)->numberDoF() ;
137 const std::vector< ElementLink< xAOD::TrackParticleContainer > > tpLinks = (*VertexItr)->trackParticleLinks();
140 unsigned int tp_size = tpLinks.size();
141 numTracks.emplace_back(
DataType( tp_size ));
143 for(
unsigned int tp = 0;
tp<tp_size; ++
tp)
148 <<
", collection : " << tpl.
key()
149 <<
", Tracks : " <<
tp <<
" out of " << tp_size <<
", own count: " << trkCnt++);
151 if ( tpl.
index() < 1000 ){
167 DataMap[
"primVxCand"] = primVxCand;
169 DataMap[
"numTracks"] = numTracks;
174 if ((numTracks.size()) != 0){
176 double NTracksPerVertex = tracks.size()*1./numTracks.size();
177 std::string
tag =
"tracks multiple=\"" +
DataType(NTracksPerVertex).toString()+
"\"";
char data[hepevt_bytes_allocation_ATLAS]
Gaudi::Property< std::string > m_tracksName
Const iterator class for DataVector/DataList.
const DataMap getData(const xAOD::VertexContainer *)
Puts the variables into a DataMap.
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.
std::map< std::string, DataVect > DataMap
::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.
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.
SG::ReadHandleKeyArray< xAOD::VertexContainer > m_keys
#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.
BASE::size_type size_type
size_type size() const noexcept
Returns the number of elements in the collection.
virtual StatusCode initialize()
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.