ATLAS Offline Software
Loading...
Searching...
No Matches
TIDAVertexBuilder.h
Go to the documentation of this file.
1/* emacs: this is -*- c++ -*- */
10
11#ifndef TIDA_VERTEX_BUILDER_H
12#define TIDA_VERTEX_BUILDER_H
13
15
17#include "xAODTracking/Vertex.h"
20
21
23
24public:
25
26 // default constructor
28
29 // default destructor
31
32 // select() methods convert containers of xAOD::Vertex into vector of TIDA::Vertex
33 // If require_tracks=true, only vertices with at least one track are kept
34 // If useType0 is set to True, vertices of type 0 are added to the collection
35 static std::vector<TIDA::Vertex> select( const xAOD::VertexContainer* xAODVertices,
36 const std::vector<TIDA::Track*>* trackCollection=0,
37 bool useType0=false,
38 bool require_tracks=true );
39
40
41 static std::vector<TIDA::Vertex> select( xAOD::VertexContainer::const_iterator itr,
43 const std::vector<TIDA::Track*>* trackCollection=0,
44 bool useType0=false,
45 bool require_tracks=true );
46
47private:
48
49 // internal methods for select() methods
50 static TIDA::Vertex selectVertex( const xAOD::Vertex* v );
51
52 static unsigned long getTrackId( const xAOD::TrackParticle* track );
53
54}; // class TIDAVertexBuilder
55
56#endif // TIDA_VERTEX_BUILDER_H
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
static std::vector< TIDA::Vertex > select(const xAOD::VertexContainer *xAODVertices, const std::vector< TIDA::Track * > *trackCollection=0, bool useType0=false, bool require_tracks=true)
static TIDA::Vertex selectVertex(const xAOD::Vertex *v)
static unsigned long getTrackId(const xAOD::TrackParticle *track)
TrackParticle_v1 TrackParticle
Reference the current persistent version:
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.