ATLAS Offline Software
TIDAVertexBuilder.h
Go to the documentation of this file.
1 /* emacs: this is -*- c++ -*- */
11 #ifndef TIDA_VERTEX_BUILDER_H
12 #define TIDA_VERTEX_BUILDER_H
13 
15 
17 #include "xAODTracking/Vertex.h"
20 
21 
23 
24 public:
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 
47 private:
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
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
TIDAVertexBuilder::select
static std::vector< TIDA::Vertex > select(const xAOD::VertexContainer *xAODVertices, const std::vector< TIDA::Track * > *trackCollection=0, bool useType0=false, bool require_tracks=true)
Definition: TIDAVertexBuilder.cxx:13
TIDAVertexBuilder::getTrackId
static unsigned long getTrackId(const xAOD::TrackParticle *track)
Definition: TIDAVertexBuilder.cxx:111
TIDAVertex.h
TIDAVertexBuilder
Definition: TIDAVertexBuilder.h:22
TIDAVertexBuilder::~TIDAVertexBuilder
~TIDAVertexBuilder()
Definition: TIDAVertexBuilder.h:30
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
Vertex.h
TIDA::Vertex
Definition: TIDAVertex.h:23
TrackParticle.h
python.PyAthena.v
v
Definition: PyAthena.py:154
VertexContainer.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
TIDAVertexBuilder::TIDAVertexBuilder
TIDAVertexBuilder()
Definition: TIDAVertexBuilder.h:27
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
TIDAVertexBuilder::selectVertex
static TIDA::Vertex selectVertex(const xAOD::Vertex *v)
Definition: TIDAVertexBuilder.cxx:92
TrackParticleContainer.h